EasyManua.ls Logo

IDEC MICROSmart FC6A Series

IDEC MICROSmart FC6A Series
604 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
Loading...
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 6-3
6: D
ATA
C
OMPARISON
I
NSTRUCTIONS
Examples: CMP>=
The following examples are described using the CMP instruction. Data comparison operation for all other data comparison
instructions is the same for the CMP instruction.
•Data Type: Word
Data Type: Integer
•Data Type: Double Word
Data Type: Long
•Data Type: Float
I0
REPS1 –
D10
D1
Q0
CMP>=(W) S2
D20
56
D20
50
D20
Q0 turned off
Q0 turned on
S2 D1
42
D10
127
D10
S1
I1
REPS1 –
D30
D1 –
Q1
CMP>=(I) S2 –
D40
–3
D40
–3
D40
Q1 turned off
Q1 turned on
S2 D1
–4
D30
12
D30
S1
I2
REPS1 –
D50
D1 –
Q2
CMP>=(D) S2 –
D60
1D2SS1
23456789
D50·D51
12345678
D60·D61
Q2 turned on
23456789
D50·D51
34567890
D60·D61
Q2 turned off
1D2SS1
12345678
D70·D71
–12345678
D80·D81
Q3 turned on
–12345678
D70·D71
34567890
D80·D81
Q3 turned off
I3
REPS1 –
D70
D1 –
Q3
CMP>=(L) S2 –
D80
1D2SS1
12.4
D90·D91
12.345
D95·D96
Q4 turned on
–1
D90·D91
–0.99
D95·D96
Q4 turned off
I4
REPS1 –
D90
D1 –
Q4
CMP>=(F) S2
D95

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Related product manuals