![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681171.webp)
1132
Clock Instructions
Section 3-28
Description
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.
Flags
Precautions
The maximum value for the source data is 9,999 hours, 59 minutes, and 59
seconds (35,999,999 seconds).
Examples
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.
3-28-4 SECONDS TO HOURS: HMS(066)
Purpose
Converts seconds data to an equivalent time in hours/minutes/seconds for-
mat.
Ladder Symbol
Variations
Hours
Seconds
Minutes
Seconds
Name
Label
Operation
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.
seconds
17 minutes, 36 seconds
34 hours
Hours/minutes/seconds
123,456 seconds
→
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.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...