Questa è una vecchia versione del documento!
Comando lampada da un punto con interruttore
Si definiscono un ingresso e un uscita digitale con la funzione PLC associata “equal”. Nell'esempio l'OUT2 con logic_io 5 è comandata dall'ingresso IO1 con logic_io 4 della stessa board
"IO1": {
"enable": 1, // I/O enable
"logic_io": 4, // Logic reference (ID) of each I/O
"device_type": "DIGITAL_IN_PULLUP",
"default_startup_filter_value": 0, // Preset filter state
"time_refresh": 600, // Refresh data into BUS
"filter": 20,
"inverted": 0,
"name": "pulsante1",
"description": "pulsante1"
},
"OUT2": {
"enable": 1, // I/O enable
"logic_io": 5, // Logic reference (ID) of each I/O
"device_type": "DIGITAL_OUT",
"default_startup_value": 0, // if omitted: default = 0
"time_refresh": 300, // Time in sec/10, if omitted: default = 3000 (300 seconds)
"filter": 20, // if omitted: default = 20
"plc_preset_input": 0, // Preset data byte input until communication arrive, if omitted: default = 0
"plc_function": "equal", // PLC function
"plc_linked_board_id_logic_io": [ // PLC inputs
"*-4"
],
"plc_time_unit": 1, // Time unit (1: 1 second - 0.1 - 0.01 - 2.5)
"plc_tmax_on": 5, // Max time output ON, if omitted: default = 65635 (infinite)
"plc_delay_on_off": 2, // Delay ON->OFF, if omitted: default = 0
"plc_delay_off_on": 1, // Delay OFF->ON, if omitted: default = 0
"name": "OUT RELE",
"description": "OUT RELE"
}
Potresti lasciare un commento se ti fossi autenticato.