Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
test_nio_into_n [21/05/2019 16:35] – admintest_nio_into_n [04/02/2020 11:12] (versione attuale) – admin
Linea 1: Linea 1:
 ====== Funzione PLC: test_nio_into_n ====== ====== Funzione PLC: test_nio_into_n ======
-Setta uscita a 1 se il numero degli ingressi è compreso nei limite impostato (estremi compresi) +Setta l'uscita a 1 se il numero degli ingressi a 1 è compreso nei limiti impostati (estremi compresi).
  
 <code> <code>
-"OUT1": { +"IO2": {
-    "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,     "enable": 1,
-    "plc_function": "test_nio_into_n", // setta uscita a 1 se il numero degli ingressi è compreso nei limite impostato (estremi compresi) +    "logic_io": 12, 
-    "plc_params": 33, // 0x21 0b00100001 b7:b4=estremo superiore, b3:b0=estremo inferiore +    "device_type": "DIGITAL_IN_PULLUP",
-    "plc_linked_board_id_io_logic": [ +
-        "4-11", +
-        "4-12", +
-        "4-13", +
-        "4-14" +
-    ], +
-    "name": "OUT1", +
-    "description": "Lampadine", +
-    "dtype": "Switch" +
-}, +
-"IO1": { +
-    "io_logic": 11, +
-    "direction": "input", +
-    "io_type": "digital", +
-    "pullup": 1,+
     "filter": 200,     "filter": 200,
     "time_refresh": 3000,     "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",     "name": "IO2",
-    "description": "Ingresso IO2", +    "description": "Ingresso IO2"
-    "dtype": "Switch"+
 }, },
 "IO3": { "IO3": {
-    "io_logic": 13, 
-    "direction": "input", 
-    "io_type": "digital", 
-    "pullup": 1, 
-    "filter": 20, 
-    "time_refresh": 3000, 
-    "n_refresh_on": 1, 
-    "n_refresh_off": 1, 
     "enable": 1,     "enable": 1,
-    "name": "IO4", +    "logic_io": 13, 
-    "description": "IO3", +    "device_type": "DIGITAL_IN_PULLUP", 
-    "dtype": "Switch"+    "filter": 200, 
 +    "time_refresh": 3000, 
 +    "name": "IO3", 
 +    "description": "Ingresso IO3"
 }, },
 "IO4": { "IO4": {
-    "io_logic": 14, 
-    "direction": "input", 
-    "io_type": "digital", 
-    "pullup": 1, 
-    "filter": 20, 
-    "time_refresh": 3000, 
-    "n_refresh_on": 1, 
-    "n_refresh_off": 1, 
     "enable": 1,     "enable": 1,
 +    "logic_io": 14,
 +    "device_type": "DIGITAL_IN_PULLUP",
 +    "filter": 200,
 +    "time_refresh": 3000,
     "name": "IO4",     "name": "IO4",
-    "description": "IO4", +    "description": "Ingresso IO4" 
-    "dtype": "Switch" +},         
-},+"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_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" 
 +}
 </code> </code>
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
 +
  • test_nio_into_n.1558456513.txt.gz
  • Ultima modifica: 09/08/2019 17:58
  • (modifica esterna)