EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 960

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...
927
Clock Instructions Section 3-26
3-26-4 SECONDS TO HOURS: HMS(066)
Purpose Converts seconds data to an equivalent time in hours/minutes/seconds for-
mat.
Ladder Symbol
Variations
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.
D and D+1: Result Data
D and D+1 contain the result data in hours/minutes/seconds format.
HMS(066)
S
D
S: First source word
D: First destination word
Variations Executed Each Cycle for ON Condition HMS(066)
Executed Once for Upward Differentiation @HMS(066)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
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)

Table of Contents

Related product manuals