Jump to content

PCM script on how to palletize with multiple barcode scan


---
 Share

Recommended Posts

First off, I am self-learning pcm along the way.

I have a full program that you can select to check each process operations up to full customer print by using setRunID().  The first inspector interaction is the selection of operation and then reason for inspection from the dropdown lists. The next Inspector interaction is scanning the barcode once, all information like machine no, fixture no, sequence no. etc, were extracted from the barcode and were used in the program. This program runs with no issues.

Help is badly needed with the script on how to perform the task below, paging pcm guru’s here, please and thank you.

I need to check 2 workpieces in one run. Palletize – 2 pallet location, which I am already familiar with. The issue which I cannot get around my head is… I need to scan the two (2) workpieces at most in a single program run. How to get the scanned barcodes assigned to respective pallet locations?  And what if only one workpiece needs to be checked? The barcode contains the machine and fixture numbers.

If 2 pallet locations were used, it would need to be scanned 2 times, if only one pallet location is used, only one scan is needed. That means the number of pallet location activated determines the number of scans.

I am thinking that the barcodes needed to be saved somewhere then read and used in the program, then will delete the barcode data/file when the program ends to have a empty data/file for the next run. I am not familiar with how to execute this.

Any workflow/pcm codes suggestions for this to work is highly appreciated.

The idea is, the inspector will always put fixture 1 in pallet location 1 and pallet location 2 for fixture 2 regardless of machine number.

Ex.

Machine A – Fixture 1   - assigned to pallet location 1

Machine A – Fixture 2   - assigned to pallet location 2

Machine B – Fixture 1   - assigned to pallet location 1

Machine B – Fixture 2   - assigned to pallet location 2

 

Thank you in advance and your help is highly appreciated.

Link to comment
Share on other sites

 Share

×
×
  • Create New...