Merge point

From PlcWiki

Revision as of 14:35, 31 July 2012 by David (Talk | contribs)
Jump to: navigation, search
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 = [[:]]
Personal tools