Differenze

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

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
plc [19/12/2019 08:42] – adminplc [03/11/2020 09:03] (versione attuale) – dani
Linea 1: Linea 1:
-====== PLC functions available on DL485 boards ====== +==== PLC functions available on DL485 boards ==== 
-====== Funzioni PLC disponibili su schede DL485 ======+==== Funzioni PLC disponibili su schede DL485 ====
  
 //Optionally it is possible to request the DL485 series BOARDS with a PLC on board, capable of making intelligent the various outputs according to events / triggers present on inputs / timed and much more.// //Optionally it is possible to request the DL485 series BOARDS with a PLC on board, capable of making intelligent the various outputs according to events / triggers present on inputs / timed and much more.//
Linea 10: Linea 10:
 Tramite il PLC è possibile così rendere autonomo il funzionamento delle schede senza necessariamente doverle comandare da sistemi di supervisione domotici quali Domoticz, Home Assistence....... che potranno servire per monitorare i vari I/O ed eventualmente comandarli manualmente, oppure per affiancare il plc nella gestione delle funzioni più complesse. Tramite il PLC è possibile così rendere autonomo il funzionamento delle schede senza necessariamente doverle comandare da sistemi di supervisione domotici quali Domoticz, Home Assistence....... che potranno servire per monitorare i vari I/O ed eventualmente comandarli manualmente, oppure per affiancare il plc nella gestione delle funzioni più complesse.
  
-===== PLC Functions (optional) - Funzioni PLC (opzionali) =====+==== PLC Functions (optional) ==== 
 +==== Funzioni PLC (opzionali) ====
  
 **disable** **disable**
Linea 160: Linea 161:
 Setta l'uscita a 0 quando il numero di ingressi a 1 è superiore al limite massimo impostato e 1 quando il numero di ingressi a 1 è inferiore al valore minimo impostato, altrimenti l'uscita resta inalterata  Setta l'uscita a 0 quando il numero di ingressi a 1 è superiore al limite massimo impostato e 1 quando il numero di ingressi a 1 è inferiore al valore minimo impostato, altrimenti l'uscita resta inalterata 
  
-====== FUNCTIONS FOR ANALOGUE INPUTS - FUNZIONI per INGRESSI ANALOGICI ======+==== FUNCTIONS FOR ANALOGUE INPUTS ==== 
 +==== FUNZIONI per INGRESSI ANALOGICI ====
  
 //The micro-analog input PINs accept signals between 0 and 1.1V which will be converted into the integer interval between 0 and 1023 (10 bits)// //The micro-analog input PINs accept signals between 0 and 1.1V which will be converted into the integer interval between 0 and 1023 (10 bits)//
Linea 328: Linea 330:
 L'uscita restituisce il valore massimo tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535)  L'uscita restituisce il valore massimo tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
-====== MISCELLANEOUS FUNCTIONS - FUNZIONI VARIE ======+==== MISCELLANEOUS FUNCTIONS ==== 
 +==== FUNZIONI VARIE ==== 
 **[[or_transition_on]]** **[[or_transition_on]]**
  
-//OR between fronts of the input signals. If more than one front ON is simultaneously, it is considered a single front. The output remains at 1 for a single machine cycle//+//OR between fronts of the input signals. If more than one ON edge arrives in the same macchima cycle, it is considered as a single front. The output remains at 1 for a single machine cycle//
  
 OR tra fronti ON dei segnali in ingresso. Se arriva più di un fronte ON nello stesso ciclo macchima, si considera un solo fronte. L'uscita rimane a 1 per un singolo ciclo macchina OR tra fronti ON dei segnali in ingresso. Se arriva più di un fronte ON nello stesso ciclo macchima, si considera un solo fronte. L'uscita rimane a 1 per un singolo ciclo macchina
Linea 337: Linea 341:
 **[[nor_transition_on]]** **[[nor_transition_on]]**
  
-//OR between fronts of the input signals. If more than one front ON is simultaneously, it is considered a single front. The output remains at 1 for a single machine cycle//+//NOR between ON fronts of input signals. If more than one ON edge arrives in the same macchima cycle, it is considered as a single front. The output remains at 0 for a single machine cycle//
  
 NOR tra fronti ON dei segnali in ingresso. Se arriva più di un fronte ON nello stesso ciclo macchima, si considera un solo fronte. L'uscita rimane a 0 per un singolo ciclo macchina NOR tra fronti ON dei segnali in ingresso. Se arriva più di un fronte ON nello stesso ciclo macchima, si considera un solo fronte. L'uscita rimane a 0 per un singolo ciclo macchina
Linea 384: Linea 388:
 **[[last_change]]** **[[last_change]]**
  
-//The output replicates the last changed input assigning a priority to the higher index input if more than one signal changes in the same sampling//+//The output replicates the last changed input assigning a priority to the higher index input in the case of multiple inputs changed in the same machine cycle//
  
 L'uscita replica l'ultimo ingresso variato assegnando una priorità all'ingresso di indice maggiore nel caso di piu ingressi cambiati nello stesso ciclo macchina L'uscita replica l'ultimo ingresso variato assegnando una priorità all'ingresso di indice maggiore nel caso di piu ingressi cambiati nello stesso ciclo macchina
Linea 390: Linea 394:
 **[[nlast_change]]** **[[nlast_change]]**
  
-//The output replicates the opposite of the last changed input assigning a priority to the higher index input if more than one signal changes in the same sampling//+//Function invert with respect to the "last_change" function//
  
 Funzione negata rispetto alla funzione "last_change" Funzione negata rispetto alla funzione "last_change"
Linea 396: Linea 400:
 **[[last_change_all]]** **[[last_change_all]]**
  
-//The output replicates the last changed input considering in sequence all the inputs for one machine cycle each//+//The output replicates the last changed input considering each input in sequence for one machine cycle time each//
  
 L'uscita replica l'ultimo ingresso variato considerando in sequenza tutti gli ingressi per un tempo di un ciclo macchina ciascuno L'uscita replica l'ultimo ingresso variato considerando in sequenza tutti gli ingressi per un tempo di un ciclo macchina ciascuno
- 
  
 **[[nlast_change_all]]** **[[nlast_change_all]]**
  
-//The output replicates the opposite of the last changed input considering in sequence all the inputs for one machine cycle each//+//The output replicates the opposite of the last changed input considering each input in sequence for one machine cycle time each//
  
 L'uscita replica l'opposto dell'ultimo ingresso variato considerando in sequenza tutti gli ingressi per un tempo di un ciclo macchina ciascuno L'uscita replica l'opposto dell'ultimo ingresso variato considerando in sequenza tutti gli ingressi per un tempo di un ciclo macchina ciascuno
Linea 412: Linea 415:
  
 Misura l'intervallo di tempo tra 2 fronti  Misura l'intervallo di tempo tra 2 fronti 
- 
  
 **[[counter_up_dw]]** **[[counter_up_dw]]**
  
-//Counter up / down//+//Forward / reverse counter, the ON edges of the input inputs are counted according to a mode specified in the byte mode. 
 +The inputs in the order listed, from right to left, in odd position give ck up, in the same position as ck dw//
  
 Contatore avanti / indietro, vengono contati i fronti ON degli ingressi ingresso secondo una modalità specificata nel byte mode. Contatore avanti / indietro, vengono contati i fronti ON degli ingressi ingresso secondo una modalità specificata nel byte mode.
 Gli ingressi nell'ordine elencato, da destra verso sinistra, in posizione dispari danno ck up, in posizione pari ck dw Gli ingressi nell'ordine elencato, da destra verso sinistra, in posizione dispari danno ck up, in posizione pari ck dw
    
- 
 **[[counter_up]]** **[[counter_up]]**
  
Linea 436: Linea 438:
 **[[powermeter]]** **[[powermeter]]**
  
-//Automatically calculates a numerator / measured period (calculations are made between whole numbers), eg Power measured by the energy counter or calculation of the frequency of a signal//+//Automatically calculates a numerator / measured period (calculations are made between whole numbers), eg Power measured by the energy meter or calculation of the frequency of a signal//
  
 Calcola automaticamente un numeratore / periodo misurato (i calcoli sono fatti tra numeri interi), es. Potenza misurata dal contatore energia o calcolo della frequenza di un segnale  Calcola automaticamente un numeratore / periodo misurato (i calcoli sono fatti tra numeri interi), es. Potenza misurata dal contatore energia o calcolo della frequenza di un segnale 
Linea 442: Linea 444:
 **[[power_on]]** **[[power_on]]**
  
-//It cuts off power to the RASPBERRY PI when the battery is discharging and there is no more activity on the serial because RASPBERRY PI has completed the shut-down, but if power supply is OK and only the serial is missing then it removes and restores power to give a reboot to RASPBERRY PI, if, on the other hand, there is no activity on the serial line because the power supply is insufficient, then when it returns enough it will give the raspberry power again//+//It cuts off power to the RASPBERRY PI when the battery is discharging and there is no more activity on the serial because RASPBERRY PI has completed the shut-down, but if power supply is OK and only the serial is missing then it removes and restores power to give a reboot to the RASPBERRY PI, if, on the other hand, there is no activity on the serial line because the power supply is insufficient, then when it returns enough it will give the raspberry new power//
  
 Toglie alimentazione al RASPBERRY PI quando la batteria si stà scaricando e non c'è piu attività sulla seriale perchè RASPBERRY PI ha completato lo shut-down, ma se alimentazione ok e manca solo attivita sulla seriale allora toglie e ripristina alimentazione per dare un reboot al RASPBERRY PI, se invece manca attvità sulla seriale perchè alimentazione insufficiente, allora quando ritornerà sufficiente ridarà di nuovo alimentazione al raspberry Toglie alimentazione al RASPBERRY PI quando la batteria si stà scaricando e non c'è piu attività sulla seriale perchè RASPBERRY PI ha completato lo shut-down, ma se alimentazione ok e manca solo attivita sulla seriale allora toglie e ripristina alimentazione per dare un reboot al RASPBERRY PI, se invece manca attvità sulla seriale perchè alimentazione insufficiente, allora quando ritornerà sufficiente ridarà di nuovo alimentazione al raspberry
  
 +**[[rms_power]]**
 +
 +//Function to acquire the RMS value of one or two analog inputs, with possible calculation of real power, apparent power, cosphi, and phase shift time between the two channels//
 +
 +Funzione per acquisire il valore RMS di uno o due ingressi analogici con eventuale calcolo di potenza reale, potenza apparente, cosfi, e tempo di sfasamento tra i due canali
 +
 +----
 +
 +{{counter}} person(s) visited this page until now.
 +
 +~~DISCUSSION~~
  • plc.1576744976.txt.gz
  • Ultima modifica: 19/12/2019 08:42
  • da admin