Differenze

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

Link a questa pagina di confronto

Prossima revisione
Revisione precedente
odd [21/05/2019 13:49] – creata adminodd [04/02/2020 11:21] (versione attuale) – admin
Linea 1: Linea 1:
-**Funzione "odd" (dispari) con 4 ingressi** +====== PLC function "odd" - Funzione PLC "odd" ====== 
-L'uscita OUT2 sarà a 1 quando il numero di ingressi a livello logico 1 è dispari+ 
 +//**"odd" function. Output is 1 if the number of inputs to 1 is odd**// 
 + 
 +**Funzione "odd" (dispari). Uscita a 1 se il numero di ingressi a 1 è dispari ** 
 + 
 +//Example of "odd" function with 2 inputs and maximum time ON// 
 + 
 +Esempio di funzione "odd" con 2 ingressi e tempo massimo ON 
 <code> <code>
-"OUT2": { 
-    "io_logic": 1, 
-    "direction": "output", 
-    "io_type": "digital", 
-    "default_startup_value": 1, 
-    "inverted": 1, 
-    "filter": 127, 
-    "time_refresh": 30, 
-    "n_refresh_on": 1, 
-    "n_refresh_off": 1, 
-    "enable": 1, 
-    "plc_function": "odd", 
-    "plc_linked_board_id_io_logic": [ 
-        "4-11", 
-        "4-12", 
-        "4-13", 
-        "4-14" 
-    ], 
-    "name": "OUT2", 
-    "description": "RELE2", 
-    "dtype": "Switch" 
-}, 
-"IO1": { 
-    "io_logic": 11, 
-    "direction": "input", 
-    "io_type": "digital", 
-    "pullup": 1, 
-    "filter": 10, 
-    "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": 127, 
-    "time_refresh": 3000, 
-    "n_refresh_on": 1, 
-    "n_refresh_off": 1, 
-    "enable": 1, 
-    "name": "IO2", 
-    "description": "Ingresso IO2", 
-    "dtype": "Switch" 
-}, 
 "IO3": { "IO3": {
-    "io_logic": 13, 
-    "direction": "input", 
-    "io_type": "digital", 
-    "pullup": 1, 
-    "filter": 127, 
-    "time_refresh": 3000, 
-    "n_refresh_on": 1, 
-    "n_refresh_off": 1, 
     "enable": 1,     "enable": 1,
-    "name": "IO3", +    "logic_io": 3, 
-    "description": "Ingresso IO3", +    "device_type": "DIGITAL_IN_PULLUP", 
-    "dtype": "Switch"+    "default_startup_filter_value": 0, 
 +    "time_refresh": 600, 
 +    "filter": 50, 
 +    "inverted": 0, 
 +    "name": "pulsante1", 
 +    "description": "pulsante1"
 }, },
 "IO4": { "IO4": {
-    "io_logic": 14, +    "enable": 1, // I/O enable 
-    "direction": "input", +    "logic_io": 4, // Logic reference (ID) of each I/O 
-    "io_type": "digital", +    "device_type": "DIGITAL_IN_PULLUP", 
-    "pullup": 1, +    "default_startup_filter_value": 0, // Preset filter state 
-    "filter": 127, +    "time_refresh": 600, // Refresh data into BUS 
-    "time_refresh": 3000, +    "filter": 50, 
-    "n_refresh_on": 1, +    "inverted": 0, 
-    "n_refresh_off": 1, +    "name": "pulsante2", 
-    "enable": 1, +    "description": "pulsante2"
-    "name": "IO4", +
-    "description": "Uscita IO4", +
-    "dtype": "Switch"+
 }, },
 +"OUT2": {
 +    "enable": 1, // I/O enable
 +    "logic_io": 5, // Logic reference (ID) of each I/O
 +    "device_type": "DIGITAL_OUT",
 +    //"default_startup_value": 0,
 +    //"default_startup_filter_value": 3, // if omitted: default = 0
 +    "time_refresh": 300, // Time in sec/10, if omitted: default = 3000 (300 seconds)
 +    "filter": 100, // if omitted: default = 20
 +    "plc_preset_input": 0, // Preset data byte input until arrive communication, if omitted: default = 0
 +    "plc_function": "odd", // PLC function Dispari
 +    "plc_linked_board_id_logic_io": [ // PLC inputs
 +        "*-3",
 +        "*-4"
 +    ],
 +    "plc_time_unit": 1, // Time unit (1: 1 second - 0.1 - 0.01 - 2.5)
 +    "plc_tmax_on": 2, // Max time output ON, if omitted: default = 65635 (infinite)
 +    "name": "OUT RELE",
 +    "description": "OUT RELE"
 +}
 </code> </code>
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
 +
  • odd.1558446596.txt.gz
  • Ultima modifica: 09/08/2019 17:58
  • (modifica esterna)