Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
| plc [19/12/2019 08:42] – admin | plc [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 ==== |
| // | // | ||
| 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, | 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, | ||
| - | ===== PLC Functions (optional) | + | ==== PLC Functions (optional) |
| + | ==== Funzioni PLC (opzionali) ==== | ||
| **disable** | **disable** | ||
| Linea 160: | Linea 161: | ||
| Setta l' | Setta l' | ||
| - | ====== FUNCTIONS FOR ANALOGUE INPUTS | + | ==== 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' | L' | ||
| - | ====== MISCELLANEOUS FUNCTIONS | + | ==== 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 |
| 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' | 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' | ||
| 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 |
| 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' | 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' | ||
| 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 | + | //The output replicates the last changed input assigning a priority to the higher index input in the case of multiple inputs changed |
| L' | L' | ||
| Linea 390: | Linea 394: | ||
| **[[nlast_change]]** | **[[nlast_change]]** | ||
| - | //The output replicates the opposite of the last changed input assigning a priority | + | //Function invert with respect |
| Funzione negata rispetto alla funzione " | Funzione negata rispetto alla funzione " | ||
| Linea 396: | Linea 400: | ||
| **[[last_change_all]]** | **[[last_change_all]]** | ||
| - | //The output replicates the last changed input considering in sequence | + | //The output replicates the last changed input considering |
| L' | L' | ||
| - | |||
| **[[nlast_change_all]]** | **[[nlast_change_all]]** | ||
| - | //The output replicates the opposite of the last changed input considering in sequence | + | //The output replicates the opposite of the last changed input considering |
| L' | L' | ||
| Linea 412: | Linea 415: | ||
| Misura l' | Misura l' | ||
| - | |||
| **[[counter_up_dw]]** | **[[counter_up_dw]]** | ||
| - | //Counter up / down// | + | //Forward |
| + | 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' | Gli ingressi nell' | ||
| - | |||
| **[[counter_up]]** | **[[counter_up]]** | ||
| Linea 436: | Linea 438: | ||
| **[[powermeter]]** | **[[powermeter]]** | ||
| - | // | + | // |
| 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, | + | //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, |
| 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, | 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, | ||
| + | **[[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~~ | ||