Hi everyone,
I’ve been reading these boards for some time and have had many questions answered indirectly by the helpful members of this forum.
I need to implement a power up delay on a machine and am trying to compare the current RTC value with the value of the RTC when power was removed from the PLC. Basically the delay needs to match the amount of time the PLC has been off. The math is easy enough when it’s in the same month or year but I’m having trouble figuring out how to handle situations where the month or year has changed over.
Initially I thought about converting the RTC to minutes only and comparing those two values but I’m not sure if that will work since I’m limited to 16 bit values. I could be way off on that assumption.
Does this PLC have to ability to track time in UNIX or epoch format?
Any suggestions would be greatly appreciated.
Thank you.
I’ve been reading these boards for some time and have had many questions answered indirectly by the helpful members of this forum.
I need to implement a power up delay on a machine and am trying to compare the current RTC value with the value of the RTC when power was removed from the PLC. Basically the delay needs to match the amount of time the PLC has been off. The math is easy enough when it’s in the same month or year but I’m having trouble figuring out how to handle situations where the month or year has changed over.
Initially I thought about converting the RTC to minutes only and comparing those two values but I’m not sure if that will work since I’m limited to 16 bit values. I could be way off on that assumption.
Does this PLC have to ability to track time in UNIX or epoch format?
Any suggestions would be greatly appreciated.
Thank you.