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
toggle_on_off [21/05/2019 13:51] – creata admintoggle_on_off [04/02/2020 11:16] (versione attuale) – admin
Linea 1: Linea 1:
-Inverte lo stato dell'uscita ad ogni transizione di uno dei 4 ingressi associati+====== PLC function "toggle_on_off" - Funzione PLC toggle_on_off ====== 
 + 
 +//**Toggle the output state at each transition of an input with maximum time ON**// 
 + 
 +**Inverte lo stato dell'uscita ad ogni transizione di un ingresso con tempo massimo ON** 
 <code> <code>
-"OUT2": { +"IO3": {
-    "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,     "enable": 1,
-    "plc_function": "toggle_on_off", +    "logic_io": 3, 
-    "plc_linked_board_id_io_logic": [ +    "device_type": "DIGITAL_IN_PULLUP", 
-        "4-11", +    "default_startup_filter_value": 0, 
-        "4-12", +    "time_refresh": 600, 
-        "4-13", +    "filter": 20, 
-        "4-14"+    "inverted": 0, 
 +    "name": "pulsante1", 
 +    "description": "pulsante1" 
 +}, 
 +"IO4": { 
 +    "enable": 1, // I/O enable 
 +    "logic_io": 4, // Logic reference (ID) of each I/O 
 +    "device_type": "DIGITAL_IN_PULLUP", 
 +    "default_startup_filter_value": 0, // Preset filter state 
 +    "time_refresh": 600, // Refresh data into BUS 
 +    "filter": 20, 
 +    "inverted": 0, 
 +    "name": "pulsante2", 
 +    "description": "pulsante2" 
 +}, 
 +"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": 20, // if omitted: default = 20 
 +    "plc_preset_input": 0, // Preset data byte input until arrive communication, if omitted: default = 0 
 +    "plc_function": "toggle_on_off", // PLC function 
 +    "plc_linked_board_id_logic_io": [ // PLC inputs 
 +        "*-3", 
 +        "*-4"
     ],     ],
-    "name": "OUT2", +    "plc_time_unit": 1, // Time unit (1: 1 second - 0.1 - 0.01 - 2.5) 
-    "description": "RELE2", +    "plc_tmax_on": 2, // Max time output ON, if omitted: default = 65635 (infinite) 
-    "dtype": "Switch" +    "name": "OUT RELE", 
-},                    +    "description": "OUT RELE" 
 +}
 </code> </code>
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
 +
  • toggle_on_off.1558446669.txt.gz
  • Ultima modifica: 09/08/2019 15:58
  • (modifica esterna)