Questa è una vecchia versione del documento!


Funzione PLC: or

Funzione or tra I/O

Esempio di funzione or a 1 ingresso

"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"
    ],
    "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"
},

Esempio “or” a 2 ingressi

"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"
},
"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"
},

Esempio funzione “or” con “not” sugli ingressi:

"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"
},

Esempio di funzione “or” a 2 ingressi con inversione dell'ultimo ingresso che compare nell'elenco:

"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", // ! invertito IO 11 della scheda 4
        "4-12"
    ],
    "name": "OUT2",
    "description": "RELE2",
    "dtype": "Switch"
},

Esempio di funzione “or” a 2 ingressi con inversione del penultimo ingresso che compare nell'elenco:

"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"
},
Potresti lasciare un commento se ti fossi autenticato.
  • or.1558455743.txt.gz
  • Ultima modifica: 09/08/2019 15:58
  • (modifica esterna)