Hello,
Been struggling with getting a 1769 L33ER PLC clock to accept an HMI entered time. I can successfully get the date/time to change but it goes back to some misc. time/date, 1969.
I've read up on the Epoch deal and maybe getting the current Epoch time, converting it to hex, dividing by 1,000,000 then using the hex seconds as the value to write in CurrentValue[0],[1] registers.
Seems like there has to be an easier way. Very convoluted to just change an hour/minute, which is all I need.
I'm using an SSV from a 7 register array to the current value. I guess I'm losing it at the lower/higher bits of a 64 bit LINT being split between the two currentvalue arrays.
Any guidance/advice on accomplishing this would be very appreciated as usual!
Cheers
Been struggling with getting a 1769 L33ER PLC clock to accept an HMI entered time. I can successfully get the date/time to change but it goes back to some misc. time/date, 1969.
I've read up on the Epoch deal and maybe getting the current Epoch time, converting it to hex, dividing by 1,000,000 then using the hex seconds as the value to write in CurrentValue[0],[1] registers.
Seems like there has to be an easier way. Very convoluted to just change an hour/minute, which is all I need.
I'm using an SSV from a 7 register array to the current value. I guess I'm losing it at the lower/higher bits of a 64 bit LINT being split between the two currentvalue arrays.
Any guidance/advice on accomplishing this would be very appreciated as usual!
Cheers