EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 961

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
928
Clock Instructions Section 3-26
Description HMS(066) converts the 8-digit BCD seconds-only data in S and S+1 to 8-digit
BCD hours/minutes/seconds data and outputs the result to D and D+1.
Flags
Precautions The maximum value for the source data is 35,999,999 seconds (9,999 hours,
59 minutes, and 59 seconds).
Area S D
CIO Area CIO 0 to CIO 6142
Work Area W0 to W510
Holding Bit Area H0 to H510
Auxiliary Bit Area A0 to A958 A448 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D0 to D32766
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants 00000000 to 35999999
(BCD)
---
Data Registers ---
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Seconds
Hours
Minutes Seconds
Name Label Operation
Error Flag ER ON if the seconds data in S and S+1 is not BCD and in the
range 0 to 35,999,999.
OFF in all other cases.
Equals Flag = ON if the content of D+1, D is 00000000 after the operation.
OFF in all other cases.

Table of Contents

Related product manuals