Delta MS300 Series User Manual page 719

Standard compact drive
Hide thumbs Also See for MS300 Series:
Table of Contents

Advertisement

Chapter 16 PLC Function ApplicationsMS300
API
CMP
10
D
bit device
X
Y
M
S1
S2
D
Notes on operand usage:
The operand D occupies three consecutive points
P
Word device
K
H
KnX KnY KnM
S1: Compare value 1. S2: Compare value 2. D: Results of comparison.
Compares the size of the content of operand S1 and S2; stores the results of the
comparison 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 is ON. When
X10 = OFF, the CMP command does not execute, and the state of Y0, Y1 and
Y2 remain in the state prior to X10 = OFF.
For ≥, ≤, or ≠ comparison results, use series and parallel connections among Y0–
Y2.
To clear results of comparison, use the RST or ZRST command.
X10
RST
RST
RST
Compare set output
16-bit command (7 STEP)
CMP
T
C
D
32-bit command (13 STEP)
DCMP
Flag signal: none
X10
M0
M1
M2
710
Continuous
CMPP
execution type
execution type
Continuous
DCMPP
execution type
execution type
ZRST
M0
M2
Pulse
Pulse

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents