Time Instructions; Hours To Seconds: Sec(143) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Time Instructions

5-26 Time Instructions

5-26-1 HOURS TO SECONDS: SEC(143)

Ladder Symbol
(143)
SEC
Variations
j SEC(143)
Description
Precautions
Flags
Example
0000
00
D00100
3
2
D00101
2
8
D00200
5
9
D00201
1
0
The first two Time Instructions convert time formats. The last two Time Instruc-
tions add/subtract time from calendar values.
S
R
When the execution condition is OFF, SEC(143) is not executed. When the ex-
ecution condition is ON, SEC(143) converts time notation in hours/minutes/se-
conds to an equivalent time in seconds only.
For the source data, the seconds are designated in bits 00 through 07 and the
minutes are designated in bits 08 through 15 of S. The hours are designated in
S+1. The maximum is thus 9,999 hours, 59 minutes, and 59 seconds.
The results are output to R and R+1. The maximum obtainable value is
35,999,999 seconds.
S and S+1 must be BCD and must be in the proper hours/minutes/seconds for-
mat.
Note Refer to page 115 for general precautions on operand data areas.
ER (A50003):
S or S+1 are not BCD.
Number of seconds or minutes exceeds 59.
Content of *DM word is not BCD when set for BCD.
EQ (A50006):
ON when the result is 0.
When 00000 is OFF (i.e., the execution condition is ON), the following instruc-
tion would convert the hours, minutes, and seconds given in D00100 and
D00101 to seconds and store the results in D00200 and D00201 as shown.
(143)
SEC
D00100
0
7
2,815 hrs, 32 min, 07 s
1
5
2
7
10,135,927 s
1
3
Operand Data Areas
st
S: 1
source word CIO, G, A, T, C, #, DM
st
R: 1
result word
CIO, G, A, DM
D00200
Section 5-26
Address Instruction
Operands
00000
LD NOT
000000
00001
SEC(143)
D00100
D00200
349

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents