3. Instructions
SEC
Instruction
HOURS TO SECONDS
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 (hours/minutes/seconds)
15
S
15
S+1
D and D+1: Result Data (seconds only)
15
D
15
D+1
Note S, S+1, D and D+1 must be in the same data area.
962
Mnemonic
Variations
SEC
@SEC
Block program areas
Step program areas
OK
OK
Description
8
7
0
Seconds: 00 to 59 (BCD)
Minutes: 00 to 59 (BCD)
0
Hours: 0000 to 9999 (BCD)
0
Rightmost 4 digits
Seconds: 0000 to 9999 (BCD)
0
Leftmost 4 digits
Seconds: 0000 to 3599 (BCD)
Function
code
Converts time data in hours/minutes/seconds for-
065
mat to an equivalent time in seconds only.
SEC
SEC(065)
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
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers