EasyManua.ls Logo

Vector VEC-VA Series

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA Motion Controller Programming Manual
250
Funtion and Action examples
Change
the value of the
upper
8
bits of address
V466
to
16 #35
description
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 )
IL
programming language
LD, FBD
programming language
Function: The
STRING_TO_BUFFER
instruction is used to copy a string into a buffer, which is
a byte array .
LD IN
STRING_TO_BUFFER IN1 , IN2
ST OUT
ST
programming language
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
Input and output
type of
data
description
IN ( STR_IN )
STRING
Input string
IN1 [0] ( BUFFER )
BYTE
An element of a buffer ( byte array ) ,
such as IN1 [0] or IN1[1]
IN2 ( BUF_LEN )
INT
Number of characters copied into the
buffer
OUT
(
STRING_TO_BUFFER
)
INT
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 .

Table of Contents

Related product manuals