User manual

4. Motion Control Instruction
4-124 DVP-MC operating manual
4.6.38. ZCP
API
Controller
165
ZCP
Compare 16-bit integer to the
values in one zone
10MC11T
Explanation of the instruction:
ZCP is used for comparison of one 16-bit signed integer with one zone.
When EN is on, S is within the range from Low value to High value, Q=On and nQ=Off; if S value is out of the
range from Low value to High value, nQ =On and Q=Off;
When EN is Off, the status of Q and nQ keeps unchanged.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN “ZCP” is executed as “EN” turns on. BOOL M,I,Q, constant
S The compared value INT Constant,D
Low The lower limit for zone comparison INT Constant,D
High The high limit for zone comparison INT Constant,D
Q
As the instruction is executed and LowS High, the “Q”
bit is on.
BOOL M,Q
nQ
As the instruction is executed and HighS or SLow,
the “nQ” bit is on.
BOOL M,Q