VA Motion Controller Programming Manual
250
Funtion and Action examples
Change
the value of the
upper
8
bits of address
V466
to
16 #35
When the contact C 216 is O N time , the
instruction is executed , the address
of V466 high . 8 bit values to 16 # 35 , and
then output :
The result of
the execution : 16 #0000-----16#3500
10.5.11 STRING_TO_BUFFER (copy string to
buffer instruction )
LD, FBD
programming language
Function: The
STRING_TO_BUFFER
instruction is used to copy a string into a buffer, which is
a byte array .
STRING_TO_BUFFER IN1 , IN2
OUT:=STRING_TO_ BUFFER ( IN1,IN )
Note : IL, ST language programming needs to insert variables IN, IN1, IN2 and OUT or use
constants in the current POU variable worksheet
STRING_TO_BUFFER
instruction processing data types
An element of a buffer ( byte array ) ,
such as IN1 [0] or IN1[1]
Number of characters copied into the
buffer
The output is not defined yet. In fact, the
character is copied into the buffer
IN1
. An
element ( byte ) in
IN1
stores the
ASCII
code of
the copied character .