EasyManuals Logo
Home>IDEC>Controller>MICRO3

IDEC MICRO3 User Manual

IDEC MICRO3
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #158 background imageLoading...
Page #158 background image
USERS MANUAL 10-1
10: COMPARISON INSTRUCTIONS
Introduction
Data can be compared using comparison instructions, such as equal to, unequal to, less than, greater than, less than or
equal to, and greater than or equal to. When the comparison result is true, an output or internal relay is turned on. The
repeat operation can also be used to compare more than one set of data.
Since the comparison instructions are executed in each scan while input is on, a pulse input from an SOTU or SOTD
instruction should be used as required.
21 CMP= (Compare Equal To)
22 CMP<> (Compare Unequal To)
23 CMP< (Compare Less Than)
24 CMP> (Compare Greater Than)
25 CMP<= (Compare Less Than or Equal To)
26 CMP>= (Compare Greater Than or Equal To)
Key Operation
Press the ADV key, followed by the advanced instruction number.
CMP= S1(R)
*****
REP
**
D1(R)
****
S1 = S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is equal to S2 data, desti-
nation operand D1 is turned on. When the condition is not met, D1
is turned off.
S2(R)
*****
CMP<> S1(R)
*****
REP
**
D1(R)
****
S1 S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is not equal to S2 data,
destination operand D1 is turned on. When the condition is not
met, D1 is turned off.
S2(R)
*****
CMP< S1(R)
*****
REP
**
D1(R)
****
S1 < S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is less than S2 data, desti-
nation operand D1 is turned on. When the condition is not met, D1
is turned off.
S2(R)
*****
CMP> S1(R)
*****
REP
**
D1(R)
****
S1 > S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is greater than S2 data,
destination operand D1 is turned on. When the condition is not
met, D1 is turned off.
S2(R)
*****
CMP<= S1(R)
*****
REP
**
D1(R)
****
S1 S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is less than or equal to S2
data, destination operand D1 is turned on. When the condition is
not met, D1 is turned off.
S2(R)
*****
CMP>= S1(R)
*****
REP
**
D1(R)
****
S1 S2 D1 on
When input is on, 16-bit word data designated by source operands
S1 and S2 are compared. When S1 data is greater than or equal to
S2 data, destination operand D1 is turned on. When the condition
is not met, D1 is turned off.
S2(R)
*****
ADV
1
BPS
1 S1
CMP S2:
(=) D1:
2
BRD
Enter operands S1, S2, and D1.
When repeat is required, press the REP key for the operand
to repeat, and enter the number of repeat cycles.
To exit, press the key.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICRO3 and is the answer not in the manual?

IDEC MICRO3 Specifications

General IconGeneral
BrandIDEC
ModelMICRO3
CategoryController
LanguageEnglish

Related product manuals