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
nand [21/05/2019 18:21] – adminnand [04/02/2020 12:09] (versione attuale) – admin
Linea 1: Linea 1:
 ====== PLC funzione: nand ====== ====== PLC funzione: nand ======
  
-L'uscita è invertita rispetto alla funzione **and**+//**"nand" PLC function**//
  
-Funzione **nand** con 2 ingressi:+**Funzione PLC "nand"** 
 + 
 +^IN1^IN2^OUT^ 
 +|0|0|1| 
 +|0|1|1| 
 +|1|0|1| 
 +|1|1|0| 
 + 
 +//Example of "nand" function with 2 inputs and maximum time ON// 
 + 
 +Esempio di funzione "nand" con 2 ingressi e tempo massimo ON
 <code> <code>
-"OUT2": { +        "IO3": { 
-    "io_logic": 1, +            "enable": 1, 
-    "direction": "output", +            "logic_io": 3, 
-    "io_type": "digital", +            "device_type": "DIGITAL_IN_PULLUP", 
-    "default_startup_value": 1, +            "default_startup_filter_value": 1, 
-    "inverted": 1, +            "time_refresh": 600, 
-    "filter": 127, +            "filter": 20, 
-    "time_refresh": 30, +            "inverted": 0, 
-    "n_refresh_on": 1, +            "name": "pulsante1", 
-    "n_refresh_off": 1, +            "description": "pulsante1" 
-    "enable": 1, +        }, 
-    "plc_function": "nand", +        "IO4": { 
-    "plc_linked_board_id_io_logic": [ +            "enable": 1, // I/O enable 
-        "4-11", +            "logic_io": 4, // Logic reference (ID) of each I/O 
-        "4-12" +            "device_type": "DIGITAL_IN_PULLUP", 
-    ], +            "default_startup_filter_value": 1, // Preset filter state 
-    "name": "OUT2", +            "time_refresh": 600, // Refresh data into BUS 
-    "description": "RELE2", +            "filter": 20, 
-    "dtype": "Switch" +            "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, // 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": "nand", // PLC function 
 +            "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": 5, // 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~~
 +
  • nand.1558455695.txt.gz
  • Ultima modifica: 09/08/2019 17:58
  • (modifica esterna)