VA Motion Controller Programming Manual
226
10.4.9 MIN_STRING (take a smaller string)
LD, FBD
programming language
Function: The MIN_STRING instruction is used to determine the smaller of the two
characters.
OUT:=MIN_ STRING ( IN1 , IN2 )
Note
: IL, ST
language programming needs to insert variables
IN1, IN2
and
OUT
or use
constants in the current
POU
variable worksheet
MIN_STRING
data processing instruction type
The first input character or string
The second input character or string
Output, the smaller of two characters or a string
;
the size of
the character is calculateDAccording to its
ASCII
code
;
when the
string is input, only the first character participates in the
comparison, that is, if the first character of a string is smaller , then
all the output of this string
Funtion and Action examples
Compare the smallest string
When the contact is
O N
when the instruction
is executed, the address comparator
V 406
string
address
V 407
length of the string, there is a
minimum string output
V 408
of
Execution results:
V ECTOR
-
VECTOR
Output :
V ECTOR