Hms - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

HMS

Instruction
SECONDS TO HOURS
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
D
First destination word
S and S+1: Source Data (seconds)
15
S
15
+1
S
D and D+1: Result Data (hours/minutes/seconds)
15
D
15
D+1
Note S, S+1, D and D+1 must be in the same data area.
992
Mnemonic
Variations
HMS
@HMS
Block program areas
Step program areas
OK
OK
Description
0
Rightmost 4 digits
Seconds: 0000 to 9999 (BCD)
0
Leftmost 4 digits
Seconds: 0000 to 3599 (BCD)
8
7
0
Seconds: 00 to 59 (BCD)
Minutes: 00 to 59 (BCD)
0
Hours: 0000 to 9999 (BCD)
Function
code
Converts seconds data to an equivalent time in
066
hours/minutes/seconds format.
HMS
HMS(066)
S: First source word
S
D
D: First destination word
Subroutines
Interrupt tasks
OK
Data type
DWORD
DWORD
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
2
2

Advertisement

Table of Contents
loading

Table of Contents