EasyManuals Logo
Home>IDEC>Controller>FC4A-C24R2

IDEC FC4A-C24R2 User Manual

IDEC FC4A-C24R2
525 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 #229 background imageLoading...
Page #229 background image
« FC4A MICROSMART USERS MANUAL » 10-1
10: DATA COMPARISON INSTRUCTIONS
Introduction
Data can be compared using data 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.
Three values can also be compared using the ICMP>= instruction.
Since the data comparison instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD
instruction should be used as required.
CMP= (Compare Equal To)
CMP<> (Compare Unequal To)
CMP< (Compare Less Than)
CMP> (Compare Greater Than)
CMP<= (Compare Less Than or Equal To)
CMP>= (Compare Greater Than or Equal To)
S1 = S2 D1 on
When input is on, 16-bit 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP=(*)
S2(R)
*****
S1 S2 D1 on
When input is on, 16-bit 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<>(*) S2(R)
*****
S1 < S2 D1 on
When input is on, 16-bit 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<(*) S2(R)
*****
S1 > S2 D1 on
When input is on, 16-bit 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP>(*)
S2(R)
*****
S1 S2 D1 on
When input is on, 16-bit 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<=(*) S2(R)
*****
S1 S2 D1 on
When input is on, 16-bit 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 condi-
tion is not met, D1 is turned off.
REP
**
S1(R)
*****
D1(R)
*****
CMP>=(*) S2(R)
*****

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC FC4A-C24R2 and is the answer not in the manual?

IDEC FC4A-C24R2 Specifications

General IconGeneral
BrandIDEC
ModelFC4A-C24R2
CategoryController
LanguageEnglish

Related product manuals