or

Questa è una vecchia versione del documento!


"or" PLC Function - Funzione PLC: "or"

or function btw I/O

Funzione or tra I/O

Example of “or” function with one I/O

Esempio di funzione “or” a 1 ingresso

"IO3": {
    "enable": 1,
    "logic_io": 3,
    "device_type": "DIGITAL_IN_PULLUP",
    "default_startup_filter_value": 1,
    "time_refresh": 600,
    "filter": 20,
    "inverted": 0,
    "name": "pulsante",
    "description": "pulsante"
},

"OUT2": {
    "enable": 1,
    "logic_io": 4,
    "device_type": "DIGITAL_OUT",
    "default_startup_filter_value": 0,
    "default_startup_value": 1,
    "time_refresh": 600,
    "filter": 20,
    "plc_function": "or",
    "plc_linked_board_id_logic_io": [
        "*-3"
    ],
    "plc_time_unit": 1, // unità di tempo: 1 secondo
    "plc_time_on": 3, // 3 secondi di tempo massimo ON
    "name": "OUT RELE",
    "description": "OUT RELE"
},

“or” example function with 2 inputs

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.1561037158.txt.gz
  • Ultima modifica: 09/08/2019 15:58
  • (modifica esterna)