InputSignal
From PlcWiki
Example of an InputSignal operation using a serial communication (RS232)
Device configuration
workplace.device.spona_checker = yes workplace.device.spona_checker.settings.tty = /dev/ttyS1 workplace.device.spona_checker.settings.type = serial workplace.device.spona_checker.settings.speed = 9600 workplace.device.spona_checker.settings.sentence_delim = 10 workplace.device.spona_checker.settings.ignore_null = yes workplace.device.spona_checker.settings.log_file = /usr/local/plc/log/spona_checker.log workplace.device.spona_checker.settings.debug_mode = yes workplace.device.spona_checker.event.rack_entry = "^LOCK" workplace.device.spona_checker.event.rack_entry.byte = 0 workplace.device.spona_checker.event.rack_entry.bit = 0 workplace.device.spona_checker.command.report_ok = "UNLOCK" workplace.ProductFinishedDevice = spona_checker
Operation configuration
operation.Kontrola_Spony.Type = InputSignal operation.Kontrola_Spony.Index = 3 operation.Kontrola_Spony.Device = spona_checker operation.Kontrola_Spony.ToleranceOverPlan = 1 operation.Kontrola_Spony.Tool = 0 operation.Kontrola_Spony.Default = 1 operation.Kontrola_Spony.WindowTitle = Kontrola spony operation.Kontrola_Spony.ToDoMessage = .ek.m na kontrolu spony operation.Kontrola_Spony.SNStore = No operation.Kontrola_Spony.NoWindow = No #operation.Kontrola_Spony.Buffer.Enabled = Yes #operation.Kontrola_Spony.Buffer.Delay = 20