Questa è una vecchia versione del documento!


Funzione PLC: ntest_nio_into_n

Setta l'uscita a 0 se il numero degli ingressi a 1 è compreso nei limiti impostati (estremi compresi).

"IO2": {
    "enable": 1,
    "logic_io": 12,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 200,
    "time_refresh": 3000,
    "name": "IO2",
    "description": "Ingresso IO2"
},
"IO3": {
    "enable": 1,
    "logic_io": 13,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 200,
    "time_refresh": 3000,
    "name": "IO3",
    "description": "Ingresso IO3"
},
"IO4": {
    "enable": 1,
    "logic_io": 14,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 200,
    "time_refresh": 3000,
    "name": "IO4",
    "description": "Ingresso IO4"
},        
"OUT1": {
    "enable": 1,
    "logic_io": 4,
    "device_type": "DIGITAL_OUT",
    "filter": 200,
    "time_refresh": 3000,
    "default_startup_value": 0,
    "inverted": 0,
    "plc_function": "ntest_nio_into_n", // setta uscita a 1 se il numero degli ingressi è compreso nei limiti impostati (estremi compresi)
    "plc_params": [1,2], // lista [estremo inferiore,estremo superiore]
    "plc_linked_board_id_logic_io": [
        "*-12",
        "*-13",
        "*-14"
    ],
    "name": "OUT1",
    "description": "Uscita 1"
}
Potresti lasciare un commento se ti fossi autenticato.
  • ntest_nio_into_n.1571069655.txt.gz
  • Ultima modifica: 14/10/2019 16:14
  • da admin