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 #159 background imageLoading...
Page #159 background image
10: COMPARISON INSTRUCTIONS
10-2 USERS MANUAL
Valid Operands (Standard Processing)
In the high-speed processing mode, operands for advanced instructions are limited. See page 6-1.
When T (timer) or C (counter) is used as S1 or S2, the timer/counter current value is read out. When T (timer) or C
(counter) is used as D1, the data is written in as a preset value which can be 0 through 9999.
Examples: CMP>=
The comparison output is usually maintained while the input to the comparison instruction is off. If the comparison output
is on, the on status is maintained when the input is turned off as demonstrated by this program.
This program turns the output off when the input is off.
Repeat Operation in the Comparison Instructions
When S1 and/or S2 (source) is designated to repeat, D1 (destination) is normally required to be designated to repeat, oth-
erwise only the result of the comparison in the last repeat cycle is set to one destination.
When S1 (source) and D1 (destination) are designated with repeat, operands as many as the repeat cycles starting with the
operand designated by S1 are compared with the operand designated by S2. The comparison results are set to operands as
many as the repeat cycles starting with the operand designated by D1.
When S2 (source) and D1 (destination) are designated to repeat, the operand designated by S1 is compared with operands
as many as the repeat cycles starting with the operand designated by S2. The comparison results are set to operands as
many as the repeat cycles starting with the operand designated by D1.
When S1, S2 (source), and D1 (destination) are designated to repeat, operands as many as the repeat cycles starting with
the operands designated by S1 and S2 are compared with each other. The comparison results are set to operands as many
as the repeat cycles starting with the operand designated by D1.
Operand Function I Q M T C R D Constant Repeat
S1 (Source 1) Data to compare 0-35 0-31 0-317 0-31 0-31 0-63 0-99 0-65535 1-31
S2 (Source 2) Data to compare 0-35 0-31 0-317 0-31 0-31 0-63 0-99 0-65535 1-31
D1 (Destination 1) Comparison output 0-31 0-287 ———— 1-31
I0
CMP>= REP
**
S1
D10
S2
C1
D1
Q0
Input I0
ON
OFF
Comparison Result
D10 C1
D10 < C1
Comparison Output Q0
ON
OFF
I0
CMP>= REP
**
S1
D10
S2
C1
D1
M0
Input I0
ON
OFF
Comparison Result
D10 C1
D10 < C1
Output Q0
ON
OFF
M0 Q0
I1
CMP>= REP
3
S1 R
D20
D1 R
M10
15
D21
10
D20
20
D22
M11 turned on
M10 turned off
M12 turned on
S1 (Repeat = 3) D1 (Repeat = 3)
S2
15
S2 (Repeat = 0)
15
15
15
I2
CMP>= REP
3
S1
20
D1 R
Q0
20
D16
10
D15
30
D17
Q1 turned on
Q0 turned on
Q2 turned off
S2 (Repeat = 3) D1 (Repeat = 3)
S2 R
D15
S1 (Repeat = 0)
20
20
20
I3
CMP>= REP
3
S1 R
D15
D1 R
Q10
20
D21
0
D20
100
D22
Q11 turned on
Q10 turned on
Q12 turned off
S2 (Repeat = 3) D1 (Repeat = 3)
S2 R
D20
20
D16
10
D15
30
D17
S1 (Repeat = 3)

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