[Ka...] Posted June 23 Share Posted June 23 Hello Is it possible to change the sequence in the autorun pallet using PCM? I have a pallet with 100 positions, operator load 55 parts in pallet position 2-56, the operator selects all used positions manually by clicking but never cares about the sequence, just selects the correct icons. On the operator account is not possible to turn on a different method of entry (like a loop) I want to change the sequence to: 2,56,3,4,5,......,55 lower number, highest Number, all other growing I know how to read actual sequences and sort them as required. S=chr(34) First=getRecordHead("firstpalletlocationnumber") Actual=getRecordHead("palletlocationnumber") if First==Actual then Last=getRecordHead("lastpalletlocationnumber") addToFile("C:\temp\pre.txt","Last="+S+Last+S) Sequence=getRecordHead("palletlocationnumberselection") if Sequence=="" then Sequence="1" First="1" Last="1" endif //sorting part removed to reduce syntax i=0 repeat i=i+1 PalletNo=strElement(i,",",Sequence) until PalletNo=="" PalletNo=i-1 if PalletNo>2 then SequenceN=""+PalletNo[1]+","+PalletNo[PalletNo] for i=2 to PalletNo-1 SequenceN=SequenceN+","+PalletNo next i addToFile("C:\temp\pre.txt","SequenceN="+S+SequenceN+S) endif endif But how to send this information to Calypso to run in this sequence? Many thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in