Double Compare: Cmpl(021) - Omron SYSMAC CVM1 Series Operation Manual

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

Advertisement

Comparison Instructions
0000
00
(020)
CMP
T0010
0002
00
(020)
CMP
T0010
0002
01
(020)
CMP
T0010
T0010

5-16-2 DOUBLE COMPARE: CMPL(021)

Ladder Symbol
(021)
CMPL Cp1
Description
Precautions
The branching structure of this diagram is important in order to ensure that
000200, 000201, and 000202 are controlled properly as the timer counts down.
Because all of the comparisons here use the timer's PV as reference, the other
operand for each CMP(020) must be in 4-digit BCD.
TIM
0010
#5000
A500
07(<)
#4000
A500
07(<)
#3000
A500
07(<)
#2000
Cp2
When the execution condition is OFF, CMPL(021) is not executed. When the ex-
ecution condition is ON, CMPL(021) compares the eight-digit content of Cp1+1
and Cp1 to the eight-digit content of Cp2+1 and Cp2 and outputs the result to the
GR, EQ, and LE Flags in the Auxiliary Area.
CMPL(021) is an intermediate instruction, like CMP(020). Intermediate instruc-
tions are entered between conditions or between a condition and a right-hand
instruction. Intermediate instructions cannot be placed at the end of an instruc-
tion line.
CVM1D CPUs are equipped with a similar non-intermediate instruction:
CMPL(029).
Constants are expressed in eight digits.
When comparing a value to the PVs of timers or counters, the value must be in
BCD.
Placing other instructions between CMPL(021) and the operation which ac-
cesses the EQ, LE, and GR Flags may change the status of these flags. Be sure
to access them before the desired status is changed.
Note Refer to page 101 for general precautions on operand data areas.
0002
00
Output at
100 s.
0002
01
Output at
200 s.
0002
02
Output at
300 s.
0002
03
Output at
500 s.
Operand Data Areas
st
Cp1: 1
compare word CIO, G, A, T, C, #, DM
nd
Cp2: 2
compare word CIO, G, A, T, C, #, DM
Section 5-16
Address Instruction
Operands
00000
LD
000000
00001
TIM
#5000
00002
CMP(020)
T0010
#4000
00003
AND
A50007
00004
OUT
000200
00005
LD
000200
00006
CMP(020)
T0010
#3000
00007
AND
A50007
00008
OUT
000201
00009
LD
000201
00010
CMP(020)
T0010
#2000
00011
AND
A50007
00012
OUT
000202
00013
LD
T0010
00014
OUT
000203
0010
195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents