Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 960

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Clock Instructions
3-26-4 SECONDS TO HOURS: HMS(066)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Converts seconds data to an equivalent time in hours/minutes/seconds for-
mat.
HMS(066)
S: First source word
S
D
D: First destination word
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
S and S+1: Source Data
Set the seconds source data in S and S+1, as shown in the following diagram.
15
S
15
+1
S
D and D+1: Result Data
D and D+1 contain the result data in hours/minutes/seconds format.
15
8
D
Minutes: 00 to 59 (BCD)
15
D+1
Step program areas
Subroutines
OK
0
Rightmost 4 digits
Seconds: 0000 to 9999 (BCD)
0
Leftmost 4 digits
Seconds: 0000 to 3599 (BCD)
7
0
Seconds: 00 to 59 (BCD)
0
Hours: 0000 to 9999 (BCD)
Section 3-26
HMS(066)
@HMS(066)
Not supported.
Interrupt tasks
OK
927

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents