VA Motion Controller Programming Manual
223
10.4.6 LIMIT_STRING (set string limit)
LD, FBD
programming language
Function: The LIMIT_STRING instruction is used to limit the range of characters or strings
entered by the upper and lower limits.
OUT:=LIMIT_ STRING ( IN1 , IN, IN2 )
Note
: IL, ST
language programming needs to insert variables
IN1, IN, IN2
and
OUT
or use
constants in the current
POU
variable worksheet
LIMIT_STRING
instruction processing data types
Lower limit of characters
Enter a character or string
Upper limit of characters
Output, the upper and lower limits of the input value will
be equal to the upper and lower limits respectively ; the size of
the characters will be judgeDAccording to the size of
the ASCII code value ; when the string is input, only the first
character participates in the comparison, that is, if When a
character is in the upper and lower limits, the string is all
output, otherwise only the upper or lower limit is output.
Funtion and Action examples
When the
contact
C 194
is
O N
, executing
the instruction, when the
address
V 397
string length in the
address
V 396
,
V 398
is between
the output itself, whether those
output upper and lower limits.
Execution
result:
shenzhen-shen