test_nio_gt_eq_n

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_gt_eq_n [09/08/2019 15:58] – modifica esterna 127.0.0.1test_nio_gt_eq_n [04/02/2020 11:18] (versione attuale) – admin
Linea 1: Linea 1:
 ====== PLC function "test_noi_>=n" - Funzione PLC "test_nio_>=_n" ====== ====== PLC function "test_noi_>=n" - Funzione PLC "test_nio_>=_n" ======
  
-//**Output 1 if number of inputs at 1 >= n**//+//**Output 1 if number of inputs at 1 >= n**// (max 8 inputs)
  
-**Uscita 1 se numero di ingressi a 1 >= n**+**Uscita 1 se numero di ingressi a 1 >= n** (massimo 8 ingressi)
  
-"test_nio_>=_n" Numero IO per settare uscita a 1 (da 1 a 8)+ 
 +L'uscita OUT1 sarà 1 quando almeno 2 dei 3 ingressi previsti sono a livello logico 1:
  
 <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_>=_n", +    "logic_io": 12, 
-    "plc_params": 1, // numero minimo di ingressi a 1 per uscita = 1 +    "device_type": "DIGITAL_IN_PULLUP",
-    "plc_linked_board_id_io_logic": ["4-11", "4-12", "4-13"], +
-    "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": +    "enable": 1, 
-{ +    "logic_io": 13, 
-    "io_logic": 13, +    "device_type": "DIGITAL_IN_PULLUP", 
-    "direction": "input", +    "filter": 200,
-    "io_type": "digital", +
-    "pullup": 1, +
-    "filter": 20,+
     "time_refresh": 3000,     "time_refresh": 3000,
-    "n_refresh_on": 1, +    "name": "IO3", 
-    "n_refresh_off": 1,+    "description": "Ingresso IO3" 
 +}, 
 +"IO4": {
     "enable": 1,     "enable": 1,
 +    "logic_io": 14,
 +    "device_type": "DIGITAL_IN_PULLUP",
 +    "filter": 200,
 +    "time_refresh": 3000,
     "name": "IO4",     "name": "IO4",
-    "description": "IO analogico", +    "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_>=_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"
 +}
 </code> </code>
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
 +
  
  • test_nio_gt_eq_n.1565366308.txt.gz
  • Ultima modifica: 09/08/2019 15:58
  • da 127.0.0.1