Questa è una vecchia versione del documento!


PLC function "test_noi_>=n" - Funzione PLC "test_nio_>=_n"

Output 1 if number of inputs at 1 >= n (max 8 inputs)

Uscita 1 se numero di ingressi a 1 >= n (massimo 8 ingressi)

L'uscita OUT1 sarà 1 quando almeno 2 ingressi sono a livello logico 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": 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": "IO4",
    "description": "IIngresso 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": "test_nio_>=_n",
    "plc_params": 2, // numero minimo di ingressi a 1 per uscita = 1
    "plc_linked_board_id_logic_io": [
        "*-12",
        "*-13",
        "*-14"
    ],
    "name": "OUT1",
    "description": "Uscita 1"
}
Potresti lasciare un commento se ti fossi autenticato.
  • test_nio_gt_eq_n.1570720157.txt.gz
  • Ultima modifica: 10/10/2019 15:09
  • da admin