Comando lampada da 3 punti con pulsanti in toggle

Si definiscono 3 ingressi e un uscita digitale con la funzione “toggle_off”. Nell'esempio l'OUT2 con io_logic 1 è comandata dalgli ingressi IO1, IO2 e IO3. Viene usato la funzione “toggle_off” anzichè “toggle_on” perché gli ingressi sono impostati con “pullup” a 1.

"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": "toggle_off",
    "plc_linked_board_id_io_logic": ["4-11", "4-12", "4-13"],
    "name": "OUT2",
    "description": "RELE2"
}

1236 person(s) visited this page until now.