Seconds To Hours: Hms(066) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Clock Instructions
Description
Flags
Precautions
Examples

3-28-4 SECONDS TO HOURS: HMS(066)

Purpose
Ladder Symbol
Variations
1132
SEC(065) converts the 8-digit BCD hours/minutes/seconds data in S and S+1
to 8-digit BCD seconds-only data and outputs the result to D and D+1.
Name
Label
Error Flag
ER
ON if the minutes data in S (bits 08 to 15) is not BCD and in
the range 00 to 59.
ON if the seconds data in S (bits 00 to 07) is not BCD and in
the range 00 to 59.
OFF in all other cases.
Equals Flag
=
ON if the content of D is 0000 after the operation.
OFF in all other cases.
The maximum value for the source data is 9,999 hours, 59 minutes, and 59
seconds (35,999,999 seconds).
When CIO 000000 turns ON in the following example, the hours/minutes/sec-
onds data in D00200 and D00201 (34 hours, 17 minutes, and 36 seconds) is
converted to seconds-only data and the result is output to D00100 and
D00101.
Converts seconds data to an equivalent time in hours/minutes/seconds for-
mat.
HMS(066)
S: First source word
S
D: First destination word
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Minutes
Seconds
Hours
Seconds
Operation
17 minutes, 36 seconds
34 hours
Hours/minutes/seconds
seconds
123,456 seconds
Section 3-28
HMS(066)
@HMS(066)
Not supported.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents