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
or [20/06/2019 13:21] – adminor [04/02/2020 11:21] (versione attuale) – admin
Linea 1: Linea 1:
-====== Function PLC: "or" - Funzione PLC: "or" ======+====== "or" PLC Function - Funzione PLC "or" ======
  
-//"or" function btw I/O//+//**"or" function btw I/O**//
  
-Funzione **or** tra I/O +**Funzione "or" tra I/O** 
  
-//**Example of "or" function with one I/O** +^IN1^IN2^OUT^ 
-**Esempio di funzione "or" a 1 ingresso**+|0|0|0| 
 +|0|1|1| 
 +|1|0|1| 
 +|1|1|1| 
 + 
 + 
 +//Example: "or" function with one I/O// 
 + 
 +Esempio di funzione "or" a 1 ingresso con tempo massimo on impostato a 3 secondi
  
 <code> <code>
-"IO3": {+"IO4": {
     "enable": 1,     "enable": 1,
-    "logic_io": 3,+    "logic_io": 4,
     "device_type": "DIGITAL_IN_PULLUP",     "device_type": "DIGITAL_IN_PULLUP",
     "default_startup_filter_value": 1,     "default_startup_filter_value": 1,
Linea 20: Linea 28:
     "description": "pulsante"     "description": "pulsante"
 }, },
- 
 "OUT2": { "OUT2": {
     "enable": 1,     "enable": 1,
-    "logic_io": 4,+    "logic_io": 5,
     "device_type": "DIGITAL_OUT",     "device_type": "DIGITAL_OUT",
     "default_startup_filter_value": 0,     "default_startup_filter_value": 0,
Linea 31: Linea 38:
     "plc_function": "or",     "plc_function": "or",
     "plc_linked_board_id_logic_io": [     "plc_linked_board_id_logic_io": [
-        "*-3"+        "*-4"
     ],     ],
     "plc_time_unit": 1, // unità di tempo: 1 secondo     "plc_time_unit": 1, // unità di tempo: 1 secondo
-    "plc_time_on": 3, // 3 secondi di tempo massimo ON+    "plc_tmax_on": 3, // 3 secondi di tempo massimo ON
     "name": "OUT RELE",     "name": "OUT RELE",
     "description": "OUT RELE"     "description": "OUT RELE"
-},+}
 </code>             </code>            
  
-//Example "or" function with 2 inputs// +//Example: "or" function with 2 inputs and maximum time ON// 
-**Esempio "or" a 2 ingressi**+ 
 +Esempio "or" a 2 ingressi con 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": 0, 
-    "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": "or", +    "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": 0, // Preset filter state 
-    "name": "OUT2", +        "time_refresh": 600, // Refresh data into BUS 
-    "description": "RELE2", +        "filter": 20, 
-    "dtype": "Switch" +        "inverted": 0, 
-}, +        "name": "pulsante2", 
-"IO1": { +        "description": "pulsante2" 
-    "io_logic": 11, +    }, 
-    "direction": "input", +    "OUT2": { 
-    "io_type": "digital", +        "enable": 1, // I/O enable 
-    "pullup": 1, +        "logic_io": 5, // Logic reference (ID) of each I/O 
-    "filter": 10, +        "device_type": "DIGITAL_OUT", 
-    "time_refresh": 3000, +        //"default_startup_value": 0, 
-    "n_refresh_on": 1, +        //"default_startup_filter_value": 3, // if omitted: default = 0 
-    "n_refresh_off": 1, +        "time_refresh": 300, // Time in sec/10, if omitted: default = 3000 (300 seconds) 
-    "enable": 1, +        "filter": 20, // if omitted: default = 20 
-    "name": "IO1", +        "plc_preset_input": 0, // Preset data byte input until arrive communication, if omitted: default = 0 
-    "description": "Ingresso IO1", +        "plc_function": "or", // PLC function 
-    "dtype": "Switch" +        "plc_linked_board_id_logic_io": [ // PLC inputs 
-}, +            "*-3", 
-"IO2": { +            "*-4" 
-    "io_logic": 12, +        ], 
-    "direction": "input", +        "plc_time_unit": 1, // Time unit (1: 1 second - 0.1 - 0.01 - 2.5) 
-    "io_type": "digital", +        "plc_tmax_on": 2, // Max time output ON, if omitted: default = 65635 (infinite) 
-    "pullup": 1, +        "name": "OUT RELE", 
-    "filter": 127, +        "description": "OUT RELE" 
-    "time_refresh": 3000, +    }
-    "n_refresh_on": 1, +
-    "n_refresh_off": 1, +
-    "enable": 1, +
-    "name": "IO2", +
-    "description": "Ingresso IO2", +
-    "dtype": "Switch"+
 }, },
 </code>             </code>            
  
-**Esempio funzione "or" con "not" sugli ingressi:** +----
-<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": "or", +
-    "plc_linked_board_id_io_logic": [ +
-        "!4-11", // "!" permette di invertire lo stato dell'ingresso +
-        "!4-12" // "!" permette di invertire lo stato dell'ingresso +
-    ], +
-    "name": "OUT2", +
-    "description": "RELE2", +
-    "dtype": "Switch" +
-}, +
-</code>+
  
-**Esempio di funzione "or" a 2 ingressi con inversione dell'ultimo ingresso che compare nell'elenco:** +{{counter}} person(s) visited this page until now. 
-<code> + 
-"OUT2": { +~~DISCUSSION~~
-    "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": "or", +
-    "plc_linked_board_id_io_logic": [ +
-        "!4-11", // ! invertito IO 11 della scheda 4 +
-        "4-12" +
-    ], +
-    "name": "OUT2", +
-    "description": "RELE2", +
-    "dtype": "Switch" +
-}, +
-</code>           +
  
-**Esempio di funzione "or" a 2 ingressi con inversione del penultimo ingresso che compare nell'elenco:** 
-<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": "or", 
-    "plc_linked_board_id_io_logic": [ 
-        "4-11", 
-        "!4-12" 
-    ], 
-    "name": "OUT2", 
-    "description": "RELE2", 
-    "dtype": "Switch" 
-}, 
-</code>            
  • or.1561036910.txt.gz
  • Ultima modifica: 09/08/2019 15:58
  • (modifica esterna)