1132
Clock Instructions Section 3-28
Applicable Program Areas
Operands S and S+1: Source Data
Set the seconds source data in S and S+1, as shown in the following diagram.
S and S+1 must be in the same data area.
D and D+1: Result Data
D and D+1 contain the result data in hours/minutes/seconds format. D and
D+1 must be in the same data area.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S D
CIO Area CIO 0000 to CIO 6142
Work Area W000 to W510
Holding Bit Area H000 to H510
Auxiliary Bit Area A000 to A958 A448 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D00000 to D32766
EM Area without bank E00000 to E32766
EM Area with bank En_00000 to En_32766
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
15 0
S
15 0
S
+1
Rightmost 4 digits
Seconds: 0000 to 9999 (BCD)
Leftmost 4 digits
Seconds: 0000 to 3599 (BCD)
15 8 07
D
15 0
D+1
Seconds: 00 to 59 (BCD)
Minutes: 00 to 59 (BCD)
Hours: 0000 to 9999 (BCD)