Funzione PLC: or_transition_on

OR tra fronti ON dei segnali filtrati in ingresso: per ogni ingresso variato, l'uscita genererà un impulso della durata di un ciclo macchina (da circa 150uS a 450uS). La variazione dell'uscita non viene riportata sul BUS a causa della durata limitata dell'impulso.

Esempio con 6 ingressi.

"SDA": {
    "enable": 1,
    "logic_io": 9,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 1,
    "time_refresh": 3000,
    "name": "SDA",
    "description": "Ingresso SDA"
},
"SCL": {
    "enable": 1,
    "logic_io": 10,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 1,
    "time_refresh": 3000,
    "name": "SCL",
    "description": "Ingresso SCL"
},
"IO1": {
    "enable": 1,
    "logic_io": 11,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 1,
    "time_refresh": 3000,
    "name": "IO1",
    "description": "Ingresso IO1"
},
"IO2": {
    "enable": 1,
    "logic_io": 12,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 1,
    "time_refresh": 3000,
    "name": "IO2",
    "description": "Ingresso IO2"
},
"IO3": {
    "enable": 1,
    "logic_io": 13,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 1,
    "time_refresh": 3000,
    "name": "IO3",
    "description": "Ingresso IO3"
},
"IO4": {
    "enable": 1,
    "logic_io": 14,
    "device_type": "DIGITAL_IN_PULLUP",
    "filter": 0,
    "time_refresh": 3000,
    "name": "IO4",
    "description": "Ingresso IO4"
},
"OUT2": {
    "enable": 1,
    "logic_io": 4,
    "device_type": "DIGITAL_OUT",
    "filter": 1,
    "time_refresh": 3000,
    "default_startup_value": 0, //valore preset uscita prima del primo calcolo
    "plc_function": "or_transition_on",
    "plc_linked_board_id_logic_io": [
        "*-9",
        "*-10",
        "*-11",
        "*-14",
        "*-13",
        "*-12"
    ], //io logico ingressi analogici
    "name": "OUT2",
    "description": "Uscita 2"
}

1318 person(s) visited this page until now.

Luca Subiaco, 12/11/2019 11:28

Funzione PLC: or_transition_on

OR between fronts of the input signals.

OR tra fronti ON dei segnali in ingresso filtrati: alla transizione di un ingresso da 0 a 1, viene generato un impulso in uscita per la durata di un ciclo macchina (da 150uS a 400uS). La variazione dell'uscita non viene trasmessa sul BUS perché troppo veloce.

Esempio con 6 ingressi

        "SDA": {
            "enable": 1,
            "logic_io": 9,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 1,
            "time_refresh": 3000,
            "name": "SDA",
            "description": "Ingresso SDA"
        },
        "SCL": {
            "enable": 1,
            "logic_io": 10,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 1,
            "time_refresh": 3000,
            "name": "SCL",
            "description": "Ingresso SCL"
        },
        "IO1": {
            "enable": 1,
            "logic_io": 11,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 1,
            "time_refresh": 3000,
            "name": "IO1",
            "description": "Ingresso IO1"
        },
        "IO2": {
            "enable": 1,
            "logic_io": 12,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 1,
            "time_refresh": 3000,
            "name": "IO2",
            "description": "Ingresso IO2"
        },
        "IO3": {
            "enable": 1,
            "logic_io": 13,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 1,
            "time_refresh": 3000,
            "name": "IO3",
            "description": "Ingresso IO3"
        },
        "IO4": {
            "enable": 1,
            "logic_io": 14,
            "device_type": "DIGITAL_IN_PULLUP",
            "filter": 0,
            "time_refresh": 3000,
            "name": "IO4",
            "description": "Ingresso IO4"
        },
        "OUT2": {
            "enable": 1,
            "logic_io": 4,
            "device_type": "DIGITAL_OUT",
            "filter": 1,
            "time_refresh": 3000,
            "default_startup_value": 0, //valore preset uscita prima del primo calcolo
            "plc_function": "nor_transition_on", 
            "plc_linked_board_id_logic_io": ["*-9","*-10","*-11","*-14","*-13","*-12"], //io logico ingressi analogici
            "name": "OUT2",
            "description": "Uscita 2"
        }
Potresti lasciare un commento se ti fossi autenticato.
  • or_transition_on.txt
  • Ultima modifica: 04/02/2020 11:21
  • da admin