Time Instructions; Double Complement: Coml(139); Hours To Seconds: Sec(143) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Time Instructions

5-25-10 DOUBLE COMPLEMENT: COML(139)

Ladder Symbol
Variations
j COML(139)
Description
Precautions
Flags
Example
0000
00
15
0
Original
15
1
Complement

5-26 Time Instructions

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

Ladder Symbol
(143)
SEC
Variations
j SEC(143)
Description
(139)
COML Wd
When the execution condition is OFF, COML(139) is not executed. When the
execution condition is ON, COML(139) turns OFF all ON bits and turns ON all
OFF bits in Wd and Wd+1.
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1 after execution.
When CIO 000000 is ON in the following example, the complement of the status
of each bit in D02000 and D02001 is taken and written back to D02000 and
D02001, i.e., the status of each bit is reversed.
(139)
COMLD02000
D02001
1
0
1
0
1
0
1
0
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.
Operand Data Area
Wd: Word
CIO, G, A, DM
00
15
0
1
0
1
0
00
15
1
0
1
0
1
Operand Data Areas
st
S: 1
source word CIO, G, A, T, C, #, DM
st
R: 1
result word
CIO, G, A, DM
Section 5-26
Address
Instruction
00000
LD
00001
COML(139)
00002
D02000
00
1
1
1
1
1
00
0
0
0
0
0
Operands
000000
D02000
337

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents