Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Prossima revisione
Revisione precedente
nor_transition_on [12/11/2019 11:17] – modifica esterna 127.0.0.1nor_transition_on [04/02/2020 11:22] (versione attuale) – admin
Linea 1: Linea 1:
-====== Funzione PLC: or_transition_on_multi ======+====== Funzione PLC: nor_transition_on ======
  
-//OR between fronts of the input signals. If more than one face simultaneously, the output remains at 1 for the time of 1 machine cycle for each front// +Come la funzione or_transition_on ma con uscita invertita
- +
-OR tra fronti ON dei segnali in ingresso. Se più di un fronte contemporaneamente (nello stesso ciclo macchima), l'uscita rimane a 1 per il tempo di 1 ciclo macchina per ogni fronte +
  
 <code> <code>
 +"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": { "IO2": {
     "enable": 1,     "enable": 1,
     "logic_io": 12,     "logic_io": 12,
     "device_type": "DIGITAL_IN_PULLUP",     "device_type": "DIGITAL_IN_PULLUP",
-    "filter": 20,+    "filter": 1,
     "time_refresh": 3000,     "time_refresh": 3000,
     "name": "IO2",     "name": "IO2",
Linea 19: Linea 44:
     "logic_io": 13,     "logic_io": 13,
     "device_type": "DIGITAL_IN_PULLUP",     "device_type": "DIGITAL_IN_PULLUP",
-    "filter": 20,+    "filter": 1,
     "time_refresh": 3000,     "time_refresh": 3000,
     "name": "IO3",     "name": "IO3",
Linea 28: Linea 53:
     "logic_io": 14,     "logic_io": 14,
     "device_type": "DIGITAL_IN_PULLUP",     "device_type": "DIGITAL_IN_PULLUP",
-    "filter": 20,+    "filter": 0,
     "time_refresh": 3000,     "time_refresh": 3000,
     "name": "IO4",     "name": "IO4",
Linea 37: Linea 62:
     "logic_io": 4,     "logic_io": 4,
     "device_type": "DIGITAL_OUT",     "device_type": "DIGITAL_OUT",
-    "filter": 20,+    "filter": 1,
     "time_refresh": 3000,     "time_refresh": 3000,
     "default_startup_value": 0, //valore preset uscita prima del primo calcolo     "default_startup_value": 0, //valore preset uscita prima del primo calcolo
-    "plc_function": "or_transition_on_multi",+    "plc_function": "nor_transition_on",
     "plc_linked_board_id_logic_io": [     "plc_linked_board_id_logic_io": [
 +        "*-9",
 +        "*-10",
 +        "*-11",
         "*-14",         "*-14",
         "*-13",         "*-13",
Linea 50: Linea 78:
 } }
 </code> </code>
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
 +
  • nor_transition_on.1573557450.txt.gz
  • Ultima modifica: 12/11/2019 11:17
  • da 127.0.0.1