Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
| or [21/05/2019 16:22] – admin | or [04/02/2020 11:21] (versione attuale) – admin | ||
|---|---|---|---|
| Linea 1: | Linea 1: | ||
| - | ====== Funzione PLC: or ====== | + | ====== |
| - | Funzione | + | //**"or" function btw I/O**// |
| + | |||
| + | **Funzione " | ||
| + | |||
| + | ^IN1^IN2^OUT^ | ||
| + | |0|0|0| | ||
| + | |0|1|1| | ||
| + | |1|0|1| | ||
| + | |1|1|1| | ||
| + | |||
| + | |||
| + | //Example: " | ||
| + | |||
| + | Esempio di funzione " | ||
| - | **Esempio di funzione or a 1 ingresso** | ||
| < | < | ||
| - | "OUT2": { | + | "IO4": { |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| " | " | ||
| - | "plc_function": | + | "logic_io": |
| - | "plc_linked_board_id_io_logic": | + | "device_type": |
| - | "4-11" | + | "default_startup_filter_value": 1, |
| - | | + | |
| - | "name": "OUT2", | + | "filter": |
| - | "description": "RELE2", | + | |
| - | "dtype": "Switch" | + | "name": "pulsante", |
| + | "description": "pulsante" | ||
| }, | }, | ||
| - | "IO1": { | + | "OUT2": { |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| " | " | ||
| - | "name": | + | "logic_io": |
| - | "description": "Ingresso IO1", | + | "device_type": "DIGITAL_OUT", |
| - | "dtype": | + | "default_startup_filter_value": |
| - | }, | + | |
| - | </ | + | |
| - | + | ||
| - | **Esempio " | + | |
| - | < | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| " | " | ||
| - | "inverted": | + | "time_refresh": |
| - | " | + | " |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| " | " | ||
| - | "plc_linked_board_id_io_logic": [ | + | "plc_linked_board_id_logic_io": [ |
| - | "4-11", | + | "*-4" |
| - | "4-12" | + | |
| ], | ], | ||
| - | "name": " | + | "plc_time_unit": 1, // unità di tempo: 1 secondo |
| - | " | + | "plc_tmax_on": |
| - | " | + | " |
| - | }, | + | " |
| - | " | + | } |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | "n_refresh_off": | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| </ | </ | ||
| - | **Esempio funzione " | + | //Example: " |
| - | < | + | |
| - | " | + | Esempio |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | ], | + | |
| - | | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | </ | + | |
| - | **Esempio di funzione " | ||
| < | < | ||
| - | "OUT2": { | + | |
| - | "io_logic": 1, | + | "enable": 1, |
| - | "direction": "output", | + | "logic_io": |
| - | "io_type": "digital", | + | |
| - | "default_startup_value": | + | "default_startup_filter_value": |
| - | " | + | |
| - | "filter": | + | "filter": |
| - | "time_refresh": | + | " |
| - | "n_refresh_on": 1, | + | "name": |
| - | "n_refresh_off": | + | "description": |
| - | " | + | }, |
| - | "plc_function": "or", | + | "IO4": { |
| - | "plc_linked_board_id_io_logic": | + | " |
| - | "!4-11", // ! invertito IO 11 della scheda 4 | + | "logic_io": |
| - | "4-12" | + | " |
| - | ], | + | " |
| - | "name": "OUT2", | + | " |
| - | "description": "RELE2", | + | " |
| - | "dtype": "Switch" | + | " |
| + | " | ||
| + | " | ||
| + | | ||
| + | " | ||
| + | | ||
| + | "logic_io": | ||
| + | | ||
| + | //"default_startup_value": | ||
| + | | ||
| + | "time_refresh": | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "*-3", | ||
| + | " | ||
| + | | ||
| + | "plc_time_unit": | ||
| + | | ||
| + | "name": "OUT RELE", | ||
| + | "description": "OUT RELE" | ||
| + | } | ||
| }, | }, | ||
| - | </ | + | </ |
| + | |||
| + | ---- | ||
| + | |||
| + | {{counter}} person(s) visited this page until now. | ||
| + | |||
| + | ~~DISCUSSION~~ | ||
| - | **Esempio di funzione " | ||
| - | < | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ], | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | </ | ||