how can you use time/clock in pac machine edition/rx3i?

Rung 5, the source at IN1 of the AND instruction should be Time_reader(4), not Time_reader(3). Also you need to multiply the result of the AND by 256 to move it to the upper 8 bits.



Oke thank you. I will try tomorrow.

I cannot edit old posts in this forum. see no edit button
 
There is a time limit on the ability to edit.

And here's an one-rung method to reverse the upper and lower words. This works in this case because the hour and minute are in the same word when you select BCD - 4-digit year for the returned data from the SVC_REQ.
 
Rung 5, the source at IN1 of the AND instruction should be Time_reader(4), not Time_reader(3). Also you need to multiply the result of the AND by 256 to move it to the upper 8 bits.

I tried it but that doesn't work either. the minutes are not correct now either.

026F93F0-4989-4D89-A311-D9B148D7F11A.jpeg 323885EC-C7A2-4E90-9932-37A7B69A0376.jpeg 9A27D4B5-0ECA-4939-9432-71A8EEA95C5B.jpeg
 
There is a time limit on the ability to edit.

And here's an one-rung method to reverse the upper and lower words. This works in this case because the hour and minute are in the same word when you select BCD - 4-digit year for the returned data from the SVC_REQ.

Yes! Thnx. this works immediately.

10CDA123-F239-4F7B-A7BA-1601AC89BABC.jpeg
 
The screen captures are confusing. The result of 8192 in %R0707 equates to 2000 in BCD, but that value is not the result of ANDing 4096 with 16#FF. The result of 19 in %R0707 equates to 13 in BCD, but that isn't the result of ANDing 4096 with 16#FF00. Also rung 7 doesn't appear to be active at the time of the screen grab. Is this logic in a subroutine?
 
The screen captures are confusing. The result of 8192 in %R0707 equates to 2000 in BCD, but that value is not the result of ANDing 4096 with 16#FF. The result of 19 in %R0707 equates to 13 in BCD, but that isn't the result of ANDing 4096 with 16#FF00. Also rung 7 doesn't appear to be active at the time of the screen grab. Is this logic in a subroutine?



I did the ror_word and the bcd to int. that works perfectly the way I want it. regarding your question above. no idea. could it possibly be done by the length of OR word? the outcome with the rx3i from OR_word was always a maximum of two digits. With the 90-30 there was no bite length in the or word function. With the RX3i I see that the length can be specified.
 

Similar Topics

We recently purchased a IC693CPU352 module and it appears the internal time clock is static. I can set the time and date but once set it does not...
Replies
5
Views
174
Hello. I cannot change the SendClock settings for a PROFINET IO device. I need to slow down the CODESYS PROFINET IO controller. What am I doing...
Replies
0
Views
202
Hello, I am trying to create an AOI that will retrive the clock datetime bits from a master plc through a generic message read instruction and...
Replies
2
Views
499
I was online a SLC5/04 yesterday and one thing I did was go to processor properties and set the date and time to get the PLC clock current. It...
Replies
4
Views
721
At the moment on my application (S7-1212C), the PLC/HMI are showing the correct time, i.e. the displayed time matches the time of the clock on the...
Replies
10
Views
918
Back
Top Bottom