Chapter 16 PLC Function Applications
MS300
(High Speed Model)
16-50
API
CMP
S1
S2
D
Compares set output
10
D
P
Bit device
Word device
16-bit command (7 STEP)
CMP
Continuous
execution type
CMPP
Pulse
execution type
32-bit command (13 STEP)
DCMP
Continuous
execution type
DCMPP
Pulse
execution type
Flag signal: none
X Y M K H
KnX
KnY
KnM
T
C
D
S1
*
*
*
*
*
*
*
*
S2
*
*
*
*
*
*
*
*
D
*
*
Notes on operand usage:
The operand D occupies three consecutive points
S1
: Compare value 1.
S2
: Compare value 2.
D
: Results of comparison.
Compares the size of the content of operand
S1
and
S2
; the results of
comparison are expressed in
D
.
Size comparison is performed algebraically. All data is compared in the form of
numerical binary values. Because this is a 16-bit command, when b15 is 1, this
indicates a negative number.
When the designated device is Y0, it automatically occupies Y0, Y1 and Y2.
When X10=On, the CMP command executes, and Y0, Y1 or Y2 will be On. When
X10=Off, the CMP command will not execute, and the state of Y0, Y1 and Y2 will
remain in the state prior to X10=Off.
If
≥
,
≤
, or
≠
results are needed, they can be obtained via series/parallel
connections of Y0-Y2.
X10
Y0
Y1
Y2
CMP
K10
D10
Y0
If K10>D10, Y0 = On
If K10=D10, Y1 = On
If K10<D10, Y2= On
To clear results of comparison, use the RST or ZRST command.
X10
M0
RST
M1
RST
M2
RST
X10
M0
ZRST
M2
Summary of Contents for VFD11AMS21AFSHA
Page 5: ...IV This page intentionally left blank...
Page 8: ...Chapter 1 Introduction MS300 High Speed Model 1 3 1 2 Model Name 1 3 Serial Number...
Page 20: ...Chapter 3 Installation MS300 High Speed Model 3 3...
Page 21: ...Chapter 3 Installation MS300 High Speed Model 3 4 This page intentionally left blank...
Page 24: ...Chapter 4 Wiring MS300 High Speed Model 4 3 4 1 Wiring...
Page 25: ...Chapter 4 Wiring MS300 High Speed Model 4 4 Figure 1...
Page 27: ...Chapter 4 Wiring MS300 High Speed Model 4 6 4 2 System Wiring Diagram...
Page 43: ...Chapter 6 Control Terminals MS300 High Speed Model 6 6 This page intentionally left blank...
Page 91: ...Chapter 8 Optional Cards MS300 High Speed Model 8 8 Frame F Fig 8 16...
Page 115: ...Chapter 9 Specification MS300 High Speed Model 9 10 This page intentionally left blank...
Page 123: ...Chapter 10 Digital Keypad MS300 High Speed Model 10 8 This page intentionally left blank...
Page 293: ...Chapter 13 Warning Codes MS300 High Speed Model 13 6 This page intentionally left blank...
Page 303: ...Chapter 14 Error Codes MS300 High Speed Model 14 10 This page intentionally left blank...