4. Motion Control Instructions 4.6.40. ZCP_R Explanation of the instruction: When EN is on, S value 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, Q=Off; ZCP_R is used for comparison of the 32-bit floating number with one zone. When EN is Off, the status of Q and nQ keeps unchanged. Explanation of input and output parameter of the instruction: DVP-MC operating manual 4-143 API Compare floating number to the values in one zone Controller ZCP R 167 _ 10MC11T Parameter Data Available Explanation name type device EN “ZCP R” is executed as “EN” turns on.
_ BOOL M,I,Q, constant S The compared value REAL Constant,D Low The lower limit for zone comparison REAL Constant,D High The high limit for zone comparison REAL Constant,D Q As the instruction is executed and Low≤S ≤High, the “Q” bit is on. BOOL M,Q nQ As the instruction is executed and High<S or S<Low, the “nQ” bit is on. BOOL M,Q