Merge point

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
(PLCSCO)
(PLCSCO)
Line 47: Line 47:
  '''PLCSCO<conveyorID>.<destination>'''
  '''PLCSCO<conveyorID>.<destination>'''
-
 
-
If <destination> is missing, it is set to undefined value.
 
Example:
Example:
  '''PLCSCO4.10'''
  '''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.
 +
 +
To cancel this forced constraint, scan barcode '''PLCSCO-'''
 +
 +
Scanning '''PLCSCO''' just displays current conveyor configuration.
===PLCCLSE===
===PLCCLSE===

Revision as of 10:18, 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

workplace.device.scanner1.settings.Name = "Auto scanner"         # Name displayed in the message window, not required
workplace.device.scanner1.settings.RescanNOKProductIDs = yes     # Rescan product that was not expected when another product scanned by a different scanner is completed
workplace.device.scanner1.settings.ConveyorID = 9                # Set conveyor ID to this value when anything is scanned by this scanner
#workplace.device.scanner1.settings.Destination = 11             # Set conveyor destination to this value when anything is scanned by this scanner
 
#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 = [[:]]


The count of scanner devices is unlimited


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.

To cancel this 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