Omron SYSMAC CV Series Operation Manual page 218

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

Advertisement

Comparison Instructions
Flags
Example 1:
Saving CMP(020) Results
0000
00
(020)
CMP
0010
Example 2:
Obtaining Indications
during Timer Operation
206
Placing other instructions between CMP(020) 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 115 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
GR (A50005):
ON if Cp
EQ (A50006):
ON if Cp
LE (A50007):
ON if Cp
The following example shows how to save the comparison result immediately. If
the content of word 0010 is greater than that of word 1209, bit 000200 is turned
ON; if the two contents are equal, bit 000201 is turned ON; if content of word
0010 is less than that of word 1209, bit 000202 is turned ON. In some applica-
tions, only one of the three OUTs would be necessary, making the use of TR 0
unnecessary. With this type of programming, bits 000200, 000201, and 000202
are changed only when CMP(020) is executed.
A500
TR0
05(>)
1209
A500
06(=)
A500
07(<)
The following example uses TIM, CMP(020), and the LE Flag (A50007) to pro-
duce outputs at particular times in the timer's countdown. The timer is started by
turning ON bit 000000. When bit 000000 is OFF, TIM 0010 is reset and the sec-
ond two CMP(020)s are not executed (i.e., executed with OFF execution condi-
tions). Output 000200 is produced after 100 seconds; output 000201, after 200
seconds; output 000202, after 300 seconds; and output 000204, after 500 sec-
onds.
is greater than Cp
.
1
2
equals Cp
.
1
2
is less than Cp
.
1
2
0002
00
Greater Than
0002
01
Equal
0002
02
Less Than
Section 5-16
Address Instruction
Operands
00000
LD
000000
00001
CMP(020)
00002
OUT
00003
AND
A50005
00004
OUT
000200
00005
LD
00006
AND
A50006
00007
OUT
000201
00008
LD
00009
AND
A50007
00010
OUT
000202
0010
1209
TR0
TR0
TR0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents