or

Questa è una vecchia versione del documento!


"or" PLC Function - Funzione PLC "or"

“or” function btw I/O

Funzione “or” tra I/O

IN1IN2OUT
000
011
101
111

Example: “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"
},

Example: “or” function with 2 inputs and maximum time ON

Esempio “or” a 2 ingressi con tempo massimo ON

    "IO3": {
        "enable": 1,
        "logic_io": 3,
        "device_type": "DIGITAL_IN_PULLUP",
        "default_startup_filter_value": 0,
        "time_refresh": 600,
        "filter": 20,
        "inverted": 0,
        "name": "pulsante1",
        "description": "pulsante1"
    },
    "IO4": {
        "enable": 1, // I/O enable
        "logic_io": 4, // Logic reference (ID) of each I/O
        "device_type": "DIGITAL_IN_PULLUP",
        "default_startup_filter_value": 0, // Preset filter state
        "time_refresh": 600, // Refresh data into BUS
        "filter": 20,
        "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,
        //"default_startup_filter_value": 3, // 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": "or", // 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": 2, // Max time output ON, if omitted: default = 65635 (infinite)
        "name": "OUT RELE",
        "description": "OUT RELE"
    }
},
Potresti lasciare un commento se ti fossi autenticato.
  • or.1561123938.txt.gz
  • Ultima modifica: 09/08/2019 17:58
  • (modifica esterna)