4/4/2023 12:29 PM | |
Joined: 12/18/2014 Last visit: 12/5/2023 Posts: 31546 Rating:
|
An operating hours counter of the LOGO! saves the measured time in minutes to an unsigned 32-bit integer. The maximum is 99.999 hours and 59 minutes. This corresponds to 5,999,999 minutes. However, the LOGO! is designed for signed 16-bit integer values in the range from -32,768 to 32,767. The analogue comparator of the LOGO can only compare values from operating hours counters up to a maximum of 32,767. If the minute values of the operating hours counter are greater than 32,767, a comparison with the analogue comparator is no longer possible. In order to be able to carry out a comparison, I have created a UDF. Attached is a sample program and the UDF. The values of the operating hours counter are transferred to the VM memory and then read back into the program. AttachmentCompare 2 hours counters.zip (133 Downloads) |
Last edited by: ixo65 at: 04/04/2023 12:31:17 |
|
Follow us on