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 [13/12/2019 12:09] – 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.
  
-===== Funzioni PLC (opzionali) - PLC Functions (optional) =====+==== PLC Functions (optional) ==== 
 +==== Funzioni PLC (opzionali) ====
  
 **disable** **disable**
  
-//No associated function. The OUTPUT is not used by plc.//+//No associated function. The PLC does not command the associated output.//
  
-Nessuna funzione associata. Il PLC non comanda questa uscita.+Nessuna funzione associata. Il PLC non comanda uscita associata.
  
 **[[equal]]** **[[equal]]**
Linea 32: Linea 33:
 **[[and]]** **[[and]]**
  
-//"and" function between I/O//+//Function "and" function between its inputs//
  
 Funzione "and" tra i suoi ingressi Funzione "and" tra i suoi ingressi
Linea 38: Linea 39:
 **[[nand]]** **[[nand]]**
  
-//The output is inverted with respect to the "and" function//+//Function "nand" function between its inputs//
  
 L'uscita è invertita rispetto alla funzione "and" L'uscita è invertita rispetto alla funzione "and"
Linea 44: Linea 45:
 **[[or]]** **[[or]]**
  
-//"or" function between I/O//+//Function "or" between its inputs//
  
 Funzione "or" tra tra i suoi ingressi Funzione "or" tra tra i suoi ingressi
Linea 50: Linea 51:
 **[[nor]]** **[[nor]]**
  
-//"nor" function between I/O//+//Function "nor" between its inputs//
  
 L'uscita è invertita rispetto alla funzione "or" L'uscita è invertita rispetto alla funzione "or"
Linea 56: Linea 57:
 **[[xor]]** **[[xor]]**
  
-//"xor" function between I/O//+//Function "xor" between its inputs//
  
 Funzione "xor" tra i suoi ingressi Funzione "xor" tra i suoi ingressi
Linea 62: Linea 63:
 **[[nxor]]** **[[nxor]]**
  
-//"nxor" function between I/O//+//Function "nxor" function between its inputs//
  
-L'uscita è invertita rispetto alla funzione "xor"+Funzione "nxor" tra i suoi ingressi
  
 **[[odd]]** **[[odd]]**
  
-//"odd" function. Output to 1 if the number of inputs to 1 is odd//+//"odd" function. Output to 1 if the number of its inputs to 1 is odd//
  
 Funzione dispari. Uscita a 1 se il numero dei suoi ingressi a 1 è dispari Funzione dispari. Uscita a 1 se il numero dei suoi ingressi a 1 è dispari
Linea 74: Linea 75:
 **[[even]]** **[[even]]**
  
-//"even" function Output to 1 if the number of inputs to 1 is even//+//"even" function. Output to 1 if the number of its inputs to 1 is even//
  
 Funzione "even" (pari). Uscita a 1 se il numero dei suoi ingressi a 1 è pari Funzione "even" (pari). Uscita a 1 se il numero dei suoi ingressi a 1 è pari
Linea 98: Linea 99:
 **[[timer]]** **[[timer]]**
  
-//Timing function according to different modes//+//Function for timing according to different modes//
  
 Funzione per la temporizzazione secondo diverse modalità Funzione per la temporizzazione secondo diverse modalità
Linea 104: Linea 105:
 **[[ntimer]]** **[[ntimer]]**
  
-//The output is inverted with respect to the "timer" function. See the "timer" function//+//The output is inverted compared to the "timer" function. See the "timer" function//
  
 L'uscita è invertita rispetto alla funzione "timer". Vedi la funzione "timer" L'uscita è invertita rispetto alla funzione "timer". Vedi la funzione "timer"
Linea 110: Linea 111:
 **[[autostart_timer]]** **[[autostart_timer]]**
  
-//As a "timer" function, but it autostart at boot//+//Like the "timer" function but it is triggered when the board is started. See "timer" function//
  
-Come "timer" ma si autoinnesca all'avvio della scheda. Vedi funzione "timer"+Come la funzione "timer" ma si autoinnesca all'avvio della scheda. Vedi funzione "timer"
  
 **[[nautostart_timer]]** **[[nautostart_timer]]**
  
-//The output is inverted with respect to "autostart_timer". See "autostart_timer" function.//+//The output is inverted compared to the "autostart_timer" function. See the "autostart_timer" function.//
  
 L'uscita è invertita rispetto alla funzione "autostart_timer" Vedi funzione "autostart_timer". L'uscita è invertita rispetto alla funzione "autostart_timer" Vedi funzione "autostart_timer".
Linea 122: Linea 123:
 **[[test_nio_gt_eq_n|test_nio_>=_n]]** **[[test_nio_gt_eq_n|test_nio_>=_n]]**
  
-//Output 1 if number of inputs at 1 >= n//+//Output at 1 if number of inputs at 1 is >= n// 
 +//Output at 0 if number of inputs at 1 is < n//
  
 Uscita a 1 se numero di ingressi a 1 è >= n  Uscita a 1 se numero di ingressi a 1 è >= n 
 Uscita a 0 se numero di ingressi a 1 è < n  Uscita a 0 se numero di ingressi a 1 è < n 
- 
  
 **[[ntest_nio_gt_eq_n|ntest_nio_>=_n]]** **[[ntest_nio_gt_eq_n|ntest_nio_>=_n]]**
  
-//Output 0 if number of inputs at 1 >= n//+//Output at 0 if number of inputs at 1 is >= n// 
 +//Output 1 if number of inputs to 1 is < n//
  
 Uscita a 0 se numero di ingressi a 1 è >= n  Uscita a 0 se numero di ingressi a 1 è >= n 
Linea 137: Linea 139:
 **[[test_nio_into_n]]** **[[test_nio_into_n]]**
  
-//set output to 1 if the number of inputs is within the range set by the limits (inclusive)//+//Output to 1 if the number of inputs to 1 is within the range set by the limits (inclusive)//
  
 Uscita a 1 se il numero degli ingressi a 1 è compreso nell'intervallo impostato dai limiti (estremi compresi)  Uscita a 1 se il numero degli ingressi a 1 è compreso nell'intervallo impostato dai limiti (estremi compresi) 
Linea 143: Linea 145:
 **[[ntest_nio_into_n]]** **[[ntest_nio_into_n]]**
  
-//set output to 0 if the number of inputs is outside the range set by the limits (including extremes)//+//Output to 0 if the number of inputs to 1 is outside the range set by the limits (including extremes)//
  
 Uscita a 0 se il numero degli ingressi a 1 è fuori dall'intervallo impostato dai limiti (estremi compresi)  Uscita a 0 se il numero degli ingressi a 1 è fuori dall'intervallo impostato dai limiti (estremi compresi) 
Linea 155: Linea 157:
 **[[ntest_schmitt_nio]]** **[[ntest_schmitt_nio]]**
  
-//Set the output to 0 when the number of inputs to 1 is greater than the set maximum limit and 1 when the number of inputs to 1 is less than the set minimum value, otherwise the output remains unchanged//+//Set sent to 0 when the number of inputs to 1 is greater than the set maximum limit and 1 when the number of inputs to 1 is less than the minimum value set, otherwise reported remains unchanged//
  
 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 
  
-* 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)// 
 I PIN d'ingresso analogico del micro accettano segnali compresi tra 0 e 1.1V che verranno convertiti nell'intervallo di numeri interi tra 0 e 1023 (10 bit) I PIN d'ingresso analogico del micro accettano segnali compresi tra 0 e 1.1V che verranno convertiti nell'intervallo di numeri interi tra 0 e 1023 (10 bit)
  
 **[[analog_in_equal_n|analog_in_=_n]]** **[[analog_in_equal_n|analog_in_=_n]]**
  
-//Set the output to 1 when the value of the analog input is equal to the set value, otherwise the output remains 0//+//Set the output to 1 when the value of the analog input is equal to the value set, otherwise the output remains at 0//
  
 Setta l'uscita a 1 quando il valore dell'ingresso analogico è uguale al valore impostato altrimenti l'uscita resta a 0  Setta l'uscita a 1 quando il valore dell'ingresso analogico è uguale al valore impostato altrimenti l'uscita resta a 0 
Linea 170: Linea 176:
 **[[nanalog_in_equal_n|nanalog_in_=_n]]** **[[nanalog_in_equal_n|nanalog_in_=_n]]**
  
-//Set the output to 0 when the value of the analog input is equal to the value set, otherwise the output remains 1//+//Set the output to 0 when the value of the analog input is equal to the set value, otherwise set the output to 1//
  
 Setta l'uscita a 0 quando il valore dell'ingresso analogico è uguale al valore impostato altrimenti setta l'uscita a 1  Setta l'uscita a 0 quando il valore dell'ingresso analogico è uguale al valore impostato altrimenti setta l'uscita a 1 
Linea 176: Linea 182:
 **[[analog_in_gt_n|analog_in_>_n]]** **[[analog_in_gt_n|analog_in_>_n]]**
  
-//Set the output to 1 when the value of the analog input is > of the set value, otherwise set exit to 0//+//Set the output to 1 when the value of the analog input is > of the set value, otherwise set the output to 0//
  
 Setta l'uscita a 1 quando il valore dell'ingresso analogico è > del valore impostato, altrimenti setta l'uscita a 0  Setta l'uscita a 1 quando il valore dell'ingresso analogico è > del valore impostato, altrimenti setta l'uscita a 0 
Linea 182: Linea 188:
 **[[nanalog_in_gt_n|analog_in_>_n]]** **[[nanalog_in_gt_n|analog_in_>_n]]**
  
-//Set the output to 0 when the value of the analog input is> of the set value, otherwise set exit to 1//+//Set the output to 0 when the value of the analog input is > of the set value, otherwise it sets the output to 1//
  
 Setta l'uscita a 0 quando il valore dell'ingresso analogico è > del valore impostato, altrimenti imposta l'uscita a 1  Setta l'uscita a 0 quando il valore dell'ingresso analogico è > del valore impostato, altrimenti imposta l'uscita a 1 
Linea 188: Linea 194:
 **[[analog_in_gt_equal_n|analog_in_>=_n]]** **[[analog_in_gt_equal_n|analog_in_>=_n]]**
  
-//Set the output to 1 when the value of the analog input is >= of the set value, otherwise set exit to 0//+//Set the output to 1 when the value of the analogue input is >= to the set value, otherwise set the output to 0//
  
 Setta l'uscita a 1 quando il valore dell'ingresso analogico è >= al valore impostato, altrimenti imposta l'uscita a 0  Setta l'uscita a 1 quando il valore dell'ingresso analogico è >= al valore impostato, altrimenti imposta l'uscita a 0 
Linea 194: Linea 200:
 **[[nanalog_in_gt_equal_n|nanalog_in_>=_n]]** **[[nanalog_in_gt_equal_n|nanalog_in_>=_n]]**
  
-//Set the output to 0 when the value of the analog input is> = of the set value, otherwise set output to 1//+//Set the output to 0 when the value of the analog input is >= to the set value, otherwise set the output to 1//
  
 Setta l'uscita a 0 quando il valore dell'ingresso analogico è >= al valore impostato, altrimenti imposta l'uscita a 1  Setta l'uscita a 0 quando il valore dell'ingresso analogico è >= al valore impostato, altrimenti imposta l'uscita a 1 
Linea 200: Linea 206:
 **[[analog_in_schmitt_n|analog_in_schmitt]]** **[[analog_in_schmitt_n|analog_in_schmitt]]**
  
-//Set the output to 1 when analogin > maximum value set, and output set to 0 when analogin <= minimum value set.//+//Set the output to 1 when the value of the analog input is > the maximum value set and 0 when it is <= the minimum value set.//
  
 Setta l'uscita a 1 quando il valore dell'ingresso analogico è > del valore massimo impostato e 0 quando è <= al valore minimo impostato. Setta l'uscita a 1 quando il valore dell'ingresso analogico è > del valore massimo impostato e 0 quando è <= al valore minimo impostato.
Linea 206: Linea 212:
 **[[nanalog_in_schmitt]]** **[[nanalog_in_schmitt]]**
  
-//Set the output to 0 when analogin > maximum value set, and output set to 1 when analogin <= minimum value set.//+//Set the output to 0 when the value of the analogue input is > of the set maximum value and 1 when it is <= to the set minimum value.//
  
 Setta l'uscita a 0 quando il valore dell'ingresso analogico è > del valore massimo impostato e 1 quando è <= al valore minimo impostato. Setta l'uscita a 0 quando il valore dell'ingresso analogico è > del valore massimo impostato e 1 quando è <= al valore minimo impostato.
Linea 212: Linea 218:
 **[[if_analog_in1_eq_analog_in2|if_analog_in1_=_analog_in2]]** **[[if_analog_in1_eq_analog_in2|if_analog_in1_=_analog_in2]]**
  
-//Set the output to 1 when the values of 2 analog inputs are the same//+//Set the output to 1 when the values of the 2 analog inputs are the same//
  
 Setta l'uscita a 1 quando i valori dei 2 ingressi analogici sono uguali Setta l'uscita a 1 quando i valori dei 2 ingressi analogici sono uguali
Linea 218: Linea 224:
 **[[if_analog_in1_gt_analog_in2|if_analog_in1_>_analog_in2]]** **[[if_analog_in1_gt_analog_in2|if_analog_in1_>_analog_in2]]**
  
-//Set the output to 1 when input 1 is greater than input 2 (range input 0: 1023)//+//Set the output to 1 when input 1 is greater than input 2//
  
 Setta l'uscita a 1 quando l'ingresso 1 è maggiore dell'ingresso 2  Setta l'uscita a 1 quando l'ingresso 1 è maggiore dell'ingresso 2 
Linea 224: Linea 230:
 **[[if_analog_in1_gt_equal_analog_in2|if_analog_in1_>=_analog_in2]]** **[[if_analog_in1_gt_equal_analog_in2|if_analog_in1_>=_analog_in2]]**
  
-//Set the output to 1 when input 1 is >= to input 2 (range input 0: 1023)//+//Set the output to 1 when input 1 is greater than or equal to input 2//
  
-Setta l'uscita a 1 quando l'ingresso 1 è maggiore o uguale dell'ingresso 2 (range input 0:1023) +Setta l'uscita a 1 quando l'ingresso 1 è maggiore o uguale dell'ingresso 2
  
 **[[if_analog_in1_-_analog_in2_schmitt_value]]** **[[if_analog_in1_-_analog_in2_schmitt_value]]**
  
-//Set the output to 1 when the "analogue-1 analogue 2" input difference is greater than the maximum threshold level and 0 when the analogue input level is lower than the minimum threshold level (range input 0: 1023)//+//Set the output to 1 when the difference "analog input1 - analog input 2" is greater than the maximum threshold level and 0 when the analog input level is <= the minimum threshold level//
  
-Setta l'uscita a 1 quando la differenza ingresso "analogico1-ingresso analogico 2" è maggiore del livello soglia massimo e 0 quando il livello dell'ingresso analogico è inferiore al livello soglia minimo (range input 0:1023)+Imposta l'uscita a 1 quando la differenza "ingresso_analogico1 - ingresso_analogico2" è maggiore del livello di soglia massimo e 0 quando il livello dell'ingresso analogico è <= al livello soglia minimo
  
 **[[nif_analog_in1_-_analog_in2_schmitt_value]]** **[[nif_analog_in1_-_analog_in2_schmitt_value]]**
  
-//Set the output to 0 when the "analogue-1 analogue 2" input difference is greater than the maximum threshold level and 1 when the analogue input level is lower than the minimum threshold level (range input 0: 1023)// +//Set the output to 0 when the difference "analog input1 - analog input 2" is greater than the maximum threshold level and 1 when the analog input level is <= the minimum threshold level//
- +
-Setta l'uscita a 0 quando la differenza ingresso "analogico1-ingresso analogico 2" è maggiore del livello soglia massimo e 1 quando il livello dell'ingresso analogico è inferiore al livello soglia minimo (range input 0:1023)+
  
 +Imposta l'uscita a 0 quando la differenza "ingresso_analogico1 - ingresso_analogico2" è maggiore del livello di soglia massimo e 1 quando il livello dell'ingresso analogico è <= al livello soglia minimo
  
 **[[analog_in_plus_n|analog_in_+_n]]** **[[analog_in_plus_n|analog_in_+_n]]**
  
-//The output replicates the analogue value of the input increased by a value (from 0 to 65535. The overflow limited to 65535)//+//The output replicates the analog value of the input increased by a value (from 0 to 65535. The overflow limits to 65535)//
  
 L'uscita replica il valore analogico dell'ingresso aumentato di un valore (da 0 a 65535. L'overflow limita a 65535)  L'uscita replica il valore analogico dell'ingresso aumentato di un valore (da 0 a 65535. L'overflow limita a 65535) 
Linea 249: Linea 254:
 **[[analog_in_minus_n|analog_in_-_n]]** **[[analog_in_minus_n|analog_in_-_n]]**
  
-//The output replicates the analog value of the input reduced by a value (from 0 to 65535. The minimum value is limited to 0)//+//The output replicates the analogue value of the input reduced by a value (from 0 to 65535. The minimum value is limited to 0)//
  
-L'uscita replica il valore analogico dell'ingresso diminuito di un valore (da 0 a 65535. Il valore minimo si limita a 0) +L'uscita replica il valore analogico dell'ingresso diminuito di un valore (da 0 a 65535. Il valore minimo è limitato a 0) 
  
 **[[analog_in_for_n|analog_in_*_n]]** **[[analog_in_for_n|analog_in_*_n]]**
  
-//The output replicates the analog value of the input multiplied by a value (from 0 to 65535. The overflow limited to 65535)//+//The output replicates the analog value of the input multiplied by a value (from 0 to 65535. The overflow limits to 65535)//
  
 L'uscita replica il valore analogico dell'ingresso moltiplicato per un valore (da 0 a 65535. L'overflow limita a 65535)  L'uscita replica il valore analogico dell'ingresso moltiplicato per un valore (da 0 a 65535. L'overflow limita a 65535) 
Linea 263: Linea 268:
 //The output replicates the analog value of the input divided by a value (from 0 to 65535. The minimum value is limited to 0)// //The output replicates the analog value of the input divided by a value (from 0 to 65535. The minimum value is limited to 0)//
  
-L'uscita replica il valore analogico dell'ingresso diviso per un valore (da 0 a 65535. Il valore minimo si limita a 0) +L'uscita replica il valore analogico dell'ingresso diviso per un valore (da 0 a 65535. Il valore minimo è limitato a 0) 
  
 **[[analog_in_percent_n|analog_in_%_n]]** **[[analog_in_percent_n|analog_in_%_n]]**
Linea 269: Linea 274:
 //The output returns the module between the value of the analog input and the value of the parameter (from 0 to 65535. The minimum value is limited to 0)// //The output returns the module between the value of the analog input and the value of the parameter (from 0 to 65535. The minimum value is limited to 0)//
  
-L'uscita restituisce il modulo tra il valore dell'ingresso analogico e valore del parametro (da 0 a 65535. Il valore minimo si limita a 0) +L'uscita restituisce il modulo tra il valore dell'ingresso analogico e valore del parametro (da 0 a 65535. Il valore minimo è limitato a 0) 
  
 **[[analog_in_lim_max_n]]** **[[analog_in_lim_max_n]]**
  
-//The output returns the value of the analog input with maximum limit n (from 0 to 65535)//+//The output returns the value of the analog input limited to the value n (from 0 to 65535)//
  
-L'uscita restituisce il valore dell'ingresso analogico con limite massimo n (da 0 a 65535) +L'uscita restituisce il valore dell'ingresso analogico limitato al valore n (da 0 a 65535) 
  
 **[[analog_in_lim_min_n]]** **[[analog_in_lim_min_n]]**
  
-//The output returns the value of the analog input with minimum limit n (from 0 to 65535)//+//The output returns the value of the analog input with minimum limit to n (from 0 to 65535)//
  
-L'uscita restituisce il valore dell'ingresso analogico con limite minimo n (da 0 a 65535) +L'uscita restituisce il valore dell'ingresso analogico con limite minimo a n (da 0 a 65535) 
  
 **[[analog_in1_plus_analog_in2|analog_in1_+_analog_in2]]** **[[analog_in1_plus_analog_in2|analog_in1_+_analog_in2]]**
  
-//The output returns the sum of the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the sum of the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce la somma tra i valori di 2 ingressi analogici (limiti tra 0 a 65535) +L'uscita restituisce la somma tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
 **[[analog_in1_minus_analog_in2|analog_in1_-_analog_in2]]** **[[analog_in1_minus_analog_in2|analog_in1_-_analog_in2]]**
  
-//The output returns the difference between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the difference between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce la differenza tra i valori di 2 ingressi analogici (limiti tra 0 a 65535) +L'uscita restituisce la differenza tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
 **[[analog_in1_mult_analog_in2|analog_in1_*_analog_in2]]** **[[analog_in1_mult_analog_in2|analog_in1_*_analog_in2]]**
  
-//The output returns the multiplication between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the multiplication between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce la moltiplicazione tra i valori di 2 ingressi analogici (limiti tra 0 a 65535) +L'uscita restituisce la moltiplicazione tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
 **[[analog_in1_div_analog_in2|analog_in1_/_analog_in2]]** **[[analog_in1_div_analog_in2|analog_in1_/_analog_in2]]**
  
-//The output returns the division between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the ratio between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce la divisione tra i valori di 2 ingressi analogici (limiti tra 0 a 65535) +L'uscita restituisce il rapporto tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
 **[[analog_in1_mod_analog_in2|analog_in1_%_analog_in2]]** **[[analog_in1_mod_analog_in2|analog_in1_%_analog_in2]]**
  
-//The output returns the module between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the rest of the division between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce il modulo tra i valori di 2 ingressi analogici (limiti tra 0 a 65535) +L'uscita restituisce il resto della divisione tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535) 
  
 **[[analog_in1_min_analog_in2]]** **[[analog_in1_min_analog_in2]]**
  
-//The output returns the minimum value between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the minimum value between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce il valore minimo tra I valori di 2 ingressi analogici (limiti tra 0 a 65535)+L'uscita restituisce il valore minimo tra i valori dei 2 ingressi analogici (limiti tra 0 a 65535)
  
 **[[analog_in1_max_analog_in2]]** **[[analog_in1_max_analog_in2]]**
  
-//The output returns the maximum value between the values of 2 analog inputs (limits between 0 and 65535)//+//The output returns the maximum value between the values of the 2 analog inputs (limits between 0 and 65535)//
  
-L'uscita restituisce il valore massimo tra I valori di 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 ====
  
 **[[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 più di un fronte ON contemporaneamente (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
  
 **[[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//
- +
-OR tra fronti ON dei segnali in ingresso. Se più di un fronte ON contemporaneamente (nello stesso ciclo macchima), si considera un solo fronte. L'uscita rimane a 1 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 377: Linea 384:
  
 */ */
- 
  
  
 **[[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 piu cambi di un segnale nello stesso campionamento +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
  
 **[[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//
  
-L'uscita replica l'opposto dell'ultimo ingresso variato assegnando una priorità all'ingresso di indice maggiore nel caso cambi più di un segnale nello stesso campionamento+Funzione negata rispetto alla funzione "last_change"
  
 **[[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 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 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
  
 **[[time_meter]]** **[[time_meter]]**
Linea 410: 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 +
  
 +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
 + 
 **[[counter_up]]** **[[counter_up]]**
  
Linea 432: 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 438: 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.1576238970.txt.gz
  • Ultima modifica: 13/12/2019 12:09
  • da admin