Merge point
From PlcWiki
(Difference between revisions)
(→PLCSCO) |
(→Enabling merge point functionality) |
||
(4 intermediate revisions not shown) | |||
Line 10: | Line 10: | ||
workplace.device.scanner1.settings.debug_mode = yes | workplace.device.scanner1.settings.debug_mode = yes | ||
- | + | # Name displayed in the message window, not required | |
- | '''workplace.device.scanner1.settings. | + | '''workplace.device.scanner1.settings.Name = "Auto scanner"''' |
- | '''workplace.device.scanner1.settings. | + | |
- | ''' | + | # Rescan product that was not expected when another product scanned by a different scanner is completed |
+ | '''workplace.device.scanner1.settings.RescanNOKProductIDs = yes''' | ||
+ | |||
+ | # Set conveyor ID to this value when a product scanned by this scanner is released, then restore the original setting | ||
+ | '''workplace.device.scanner1.settings.ConveyorID = 9''' | ||
+ | |||
+ | # Set conveyor destination to this value when a product scanned by this scanner is released, then restore the original setting | ||
+ | '''#workplace.device.scanner1.settings.Destination = 11''' | ||
#workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" | #workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" | ||
Line 36: | Line 43: | ||
workplace.device.scanner2.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" | workplace.device.scanner2.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" | ||
workplace.device.scanner2.event.scannerinput.input = [[:]] | workplace.device.scanner2.event.scannerinput.input = [[:]] | ||
- | |||
- | |||
- | |||
- | |||
===PLCSCO=== | ===PLCSCO=== | ||
Line 61: | Line 64: | ||
Scanning '''PLCSCO''' just displays current conveyor configuration. | Scanning '''PLCSCO''' just displays current conveyor configuration. | ||
+ | |||
+ | |||
===PLCCLSE=== | ===PLCCLSE=== |
Current revision as of 10:40, 1 August 2012
Enabling merge point functionality
workplace.device.scanner1 = yes workplace.device.scanner1.settings.type = serial workplace.device.scanner1.settings.tty = /dev/ttyS0 workplace.device.scanner1.settings.speed = 9600 workplace.device.scanner1.settings.log_file = /usr/local/plc/log/scanner1.log workplace.device.scanner1.settings.no_delim = yes workplace.device.scanner1.settings.sentence_timeout = 100 workplace.device.scanner1.settings.debug_mode = yes # Name displayed in the message window, not required workplace.device.scanner1.settings.Name = "Auto scanner" # Rescan product that was not expected when another product scanned by a different scanner is completed workplace.device.scanner1.settings.RescanNOKProductIDs = yes # Set conveyor ID to this value when a product scanned by this scanner is released, then restore the original setting workplace.device.scanner1.settings.ConveyorID = 9 # Set conveyor destination to this value when a product scanned by this scanner is released, then restore the original setting #workplace.device.scanner1.settings.Destination = 11 #workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" workplace.device.scanner1.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" workplace.device.scanner1.event.scannerinput.input = [[:]]
workplace.device.scanner2 = yes workplace.device.scanner2.settings.type = serial workplace.device.scanner2.settings.tty = /dev/ttyS1 workplace.device.scanner2.settings.speed = 9600 workplace.device.scanner2.settings.log_file = /usr/local/plc/log/scanner2.log workplace.device.scanner2.settings.no_delim = yes workplace.device.scanner2.settings.sentence_timeout = 100 workplace.device.scanner2.settings.debug_mode = yes workplace.device.scanner2.settings.Name = "Manual scanner" workplace.device.scanner2.settings.RescanNOKProductIDs = yes workplace.device.scanner2.settings.ConveyorID = 10 #workplace.device.scanner2.event.scannerinput = "^prefix(.+)suffix\r?\n?$" workplace.device.scanner2.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" workplace.device.scanner2.event.scannerinput.input = [[:]]
PLCSCO
Barcode PLCSCO (Set COnveyor) allows setting conveyor ID and conveyor destination to desired values. The format is as follows:
PLCSCO<conveyorID>.<destination>
Example:
PLCSCO4.10
If <destination> is missing, it is set to an undefined value.
The settings will be forced upon the next released product (only the next one) regardless what the scanner settings (i.e. ConveyorID and Destination) are.
After that the settings will be used only for products scanned by scanner devices without any conveyor settings.
To cancel the forced constraint, scan barcode PLCSCO-
Scanning PLCSCO just displays current conveyor configuration.
PLCCLSE
Barcode PLCCLSE means Clear Last Sequence Errors - i.e. clear all rescanned NOK product IDs.
Use it to get rid of any automatically rescanned product IDs.