Jump to content

Autorun custom incremental serial numbers with pallet


---
 Share

Recommended Posts

I am using the pallet option of autorun to measure and output results for 3 parts in a pallet fixture. I measure the 1st, 6th, and 12th part in a batch of parts. I would like to setup the autorun program such that the 6th and 12th serial numbers will be added automatically to their separate results printouts once an operator inputs the first serial number. Can this be accomplished using PCM or some global variable?
Link to comment
Share on other sites

Is it something like this you wish to accomplish?
setRecordHead("partnbinc",getRecordHead("partnbinc")+"_"+getRecordHead("palletlocationnumber"))
If you only wish to enter part number once, you need to remove that in the "Select printout header parameters". And do it like this.
if getRecordHead("palletlocationnumber") == getRecordHead("firstpalletlocationnumber")
	setRecordHead("partnbinc",inquireText("Input part no")+"_"+getRecordHead("palletlocationnumber"))
else
	setRecordHead("partnbinc",strElement(1,"_",getRecordHead("partnbinc"))+"_"+getRecordHead("palletlocationnumber"))
endif
Link to comment
Share on other sites

  • 5 weeks later...
 Share

×
×
  • Create New...