EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

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

Table of Contents

Related product manuals