Scanner as a PLC device
From PlcWiki
(Difference between revisions)
(Created page with ' workplace.ScanCOM = /dev/null workplace.device.scanner1 = yes workplace.device.scanner1.settings.type = serial workplace.device.scanner1.settings.tty = /dev/ttyS0 workplace…') |
|||
Line 8: | Line 8: | ||
workplace.device.scanner1.settings.no_delim = yes | workplace.device.scanner1.settings.no_delim = yes | ||
workplace.device.scanner1.settings.sentence_timeout = 100 | workplace.device.scanner1.settings.sentence_timeout = 100 | ||
+ | #workplace.device.scanner1.setting.sentence_delim = 10 | ||
+ | #workplace.device.scanner1.setting.ignore_delim = yes | ||
workplace.device.scanner1.settings.debug_mode = yes | workplace.device.scanner1.settings.debug_mode = yes | ||
#workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" | #workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" | ||
workplace.device.scanner1.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" | workplace.device.scanner1.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" | ||
workplace.device.scanner1.event.scannerinput.input = [[:]] | workplace.device.scanner1.event.scannerinput.input = [[:]] |
Revision as of 09:52, 24 July 2013
workplace.ScanCOM = /dev/null
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.setting.sentence_delim = 10 #workplace.device.scanner1.setting.ignore_delim = yes workplace.device.scanner1.settings.debug_mode = yes #workplace.device.scanner1.event.scannerinput = "^prefix(.+)suffix\r?\n?$" workplace.device.scanner1.event.scannerinput = "^\x02?(.+?)\x03?\r?\n?$" workplace.device.scanner1.event.scannerinput.input = [[:]]