Subroutines to Download – Others
Here, you will find some subroutines to download.
The subroutines are helpful to clarify the program and avoid writing the same things over and over again.
See also How to add a subroutine in your project
WHAT THE SUBROUTINE DOES | FILE TO DOWNLOAD |
PID to PWM conversion | PID2PWM.zip |
Manage a long or short press on a button or a input | ShortLongPressManagment.zip |
Average value of analog values to recording with the HMI | average_of_analog_values.zip |
Contact input anti-debounce > 255 milliseconds on a digital input | anti-debounce_more_255_ms.zip |
Convert a BCD value to a DEC value (ex: 23 > 0001 0111 > 17) | BCD2DEC_Convertion.zip |
On/Off according to given times. (ex: ON=14:33:00 OFF=17:47:30 ) | Programmable_Clock |
Convert milliseconds to HH:MM:SS (ex: 3580000 = 00:59:40) | Milliseconds2HHMM.zip |
Anti-debounces input (Filter) > 250 ms. (For <250 ms see Tags table in vBuilder) | Anti_Debounds.zip |
Generate pulses to flashing a PLC bit (ON X milliseconds, OFF Y milliseconds) | AsynchPulseGener.zip |
Backup or datalog the tags to retrieve them after power up (Easier via HMI) | Recover_Tag_Values.zip |
Convert a tag value in ASCII then send it via the RS232/485 serial port | Convert&Send_Value_In_ASCII.zip |
Convert a number to its ASCII code (ASCII of “5” = 53) | NumberToASCII |
.