181
Outline
Compares one 16-bit data with another.
Program example
■
Operands
■
Explanation of example
• Compares decimal constant K100 with the contents of data register DT0 when trigger X0 turns ON.
The compared result is stored in special internal relays R900A, R900B, and R900C.
When DT0 > K100, R900A turns ON and internal relay R0 turns ON.
When DT0 = K100, R900B turns ON and internal relay R1 turns ON.
When DT0 < K100, R900C turns ON and internal relay R2 turns ON.
In this program example, the comparison will be performed only when X0 turns ON.
Timer/Counter
EV
Relay
SV
WR
WY
WX
Operand
S1
A
A
A
A
A:
N/A: Not Available
Register
DT
A
IY
IX
A
A
H
K
A
A
Constant
Index
modifier
A
Index
register
Available
A
S2
A
A
A
A
A
A
A
A
A
A
A
6-3. Description of High-level Instructions
S1
S2
16-bit equivalent constant or 16-bit area to be compared
16-bit equivalent constant or 16-bit area to be compared
Ladder Diagram
Boolean Non-ladder
Address
Instruction
20
X0
F60 CMP , DT 0 , K100
S1
S2
Be sure to use the same trigger
as the trigger used to execute F60 (CMP).
X0
R0
R900A
26
X0
R1
R900B
30
X0
R2
R900C
34
Trigger
20
21
26
27
29
30
31
33
34
35
37
ST
X
0
F 60 (CMP)
DT
0
K
100
ST
X
0
AN
R 900A
OT
R
0
ST
X
0
AN
R 900B
OT
R
1
ST
X
0
AN
R 900C
OT
R
2
F60
(CMP)
16-bit data compare
Availability
Step
5
All series
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...