Comando luci scale da 3 punti con pulsanti per accensione, tempo massimo di accensione e somma del tempo se comando a luce ON (utile per moltiplicare di tot volte il termpo di accensione preimpostato)

Si definiscono 3 ingressi e un uscita digitale con la funzione PLC associata “timer” e modalità timer con innesco su fronte ON con somma del timer ad ogni fronte ON e misura dei tempi in secondi . Nell'esempio l'OUT2 con io_logic 1 è comandata dalgli ingressi IO1, IO2, IO3

"IO1": {
    "enable": 1,
    "logic_io": 11,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 200,
    "time_refresh": 3000,
    "name": "IO1",
    "description": "Ingresso IO1"
},
"IO2": {
    "enable": 1,
    "logic_io": 12,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 20,
    "time_refresh": 3000,
    "name": "IO2",
    "description": "Ingresso IO2"
},
"IO3": {
    "enable": 1,
    "logic_io": 13,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 20,
    "time_refresh": 3000,
    "name": "IO3",
    "description": "Ingresso IO3"
},
"OUT2": {
    "enable": 1,
    "logic_io": 1,
    "device_type": "DIGITAL_OUT",
    "default_startup_value": 1,
    "inverted": 1,
    "filter": 127,
    "time_refresh": 3000,
    "plc_function": "timer",
    "plc_mode_timer": 161,  // 0b10100001  b5: 1 somma il tempo timer al tempo residuo ogni volta che c'è un fronte ON
    "plc_timer_n_transitions": 2,
    "plc_time_on": 60,
    "plc_time_off": 0,
    "plc_linked_board_id_io_logic": ["4-11", "4-12", "4-13"],
    "name": "OUT2",
    "description": "RELE2"
}

1416 person(s) visited this page until now.

Potresti lasciare un commento se ti fossi autenticato.
  • case_23.txt
  • Ultima modifica: 03/02/2020 11:56
  • da admin