VA Motion Controller Programming Manual
151
result
When IN1<=IN2 , OUT is 1
When IN1>IN2 , OUT is 0;
program demonstration
Compare
V480
and
V481
in value
When the contact C300 is ON , the
instruction is executed;
When the address V480 is smaller than the
address V481 the value , V482 output is 1 :
When the address V480 is a value greater
than equal to the
address V481 the value , V482 output is 0 :
Execution result: 1.0<5.0 output 1
10.1.19 LIMIT (limit selection instruction )
LD, FBD programming language
Function: The LIMIT instruction is used to limit the input value to the interval determined
by the maximum and minimum values.
Note : IL, ST language programming needs to insert variables IN, IN1, IN2 and OUT or use
constants in the current POU variable worksheet
LIMIT instruction processing data type
output value
When IN1 <= ( the
IN ) <= IN2 when , OUT = the IN;
When IN<IN1 , OUT=IN1;
When IN>IN2 , OUT=IN2;