Merge point

From PlcWiki

Revision as of 10:40, 1 August 2012 by David (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Personal tools