Questa è una vecchia versione del documento!
Comando luci scale da 2 punti con pulsanti per accensione, tempo massimo di accensione e brevissimo spegnimento a 1/3 e 2/3 del tempo (preavviso spegnimento luci)
"OUT1":
{
"io_logic": 1,
"direction": "output",
"io_type": "digital",
"default_startup_value": 0,
"inverted": 1,
"filter": 127,
"time_refresh": 3000,
"n_refresh_on": 1,
"n_refresh_off": 1,
"enable": 1,
"plc_function": "timer",
"plc_timer_n_transitions": 6, // 6 transizioni in totale ON/OFF di cui 3 ON da 10 secondi e 3 da 2 decimi di secondo
"plc_mode_timer": 1, // innesca su fronte ON
"plc_xor_input": 3, // inverte l'ingresso IO1 e IO2 così innesca su fronte OFF
"plc_time_on": 1000, // tempo ON di 10 secondi (1000 centesini di secondo)
"plc_time_off": 20, // tempo OFF di 2 decimi di secondo
"plc_linked_board_id_io_logic": ["4-11", "4-12"], // inverte lo stato degli ingressi
"name": "OUT1",
"description": "Lampadine",
"dtype": "Switch"
},
"IO1":
{
"io_logic": 11,
"direction": "input",
"io_type": "digital",
"pullup": 1,
"filter": 200,
"time_refresh": 3000,
"n_refresh_on": 1,
"n_refresh_off": 1,
"enable": 1,
"name": "IO1",
"description": "Ingresso IO1",
"dtype": "Switch"
},
"IO2":
{
"io_logic": 12,
"direction": "input",
"io_type": "digital",
"pullup": 1,
"filter": 20,
"time_refresh": 3000,
"n_refresh_on": 1,
"n_refresh_off": 1,
"enable": 1,
"name": "IO2",
"description": "Ingresso IO2",
"dtype": "Switch"
},
Potresti lasciare un commento se ti fossi autenticato.