VA Motion Controller Programming Manual
221
10.4.4 REPLACE (replace string)
IL
programming
language
LD, FBD
programming language
Function: The
REPLACE
Replace String command replaces several connected characters
in a string with a string.
LD IN
REPLACE L, P
ST OUT
ST
programming language
OUT:=REPLACE
(
IN, L, P
)
Note
: IL, ST
language programming needs to insert variables
IN1, IN2, L, P
and
OUT
or
use constants in the current
POU
variable worksheet
数据
Data type processed by the
REPLACE
instruction
Input and output
type of data
description
IN1
STRING
First input string
IN2
STRING
The second input string will replace some characters in
the first input string
L
ANY_NT
The number of characters to be replaced,
L
can be
0, 1,
2...
P
ANY_INT
In the first input string, the position of the first character
to be replaced,
P
must be an integer greater than
0 ;
the first
character position in the string is
1
, and the following
characters are
2, 3...
OUT
STRING
Output the first input string is not affected by the
substitution, in fact, this instruction is to select the first two
characters in the first input string and the second string to
form a new string, the output is not alloweDAnd input Same
name
REPLACE
function anDAction example
Replace the string
"PLC"
with the string
"VECTOR"
description
Summary of Contents for VEC-VA Series
Page 1: ......
Page 25: ...VA Motion Controller Programming Manual 20 Word STRING String VECTOR ...
Page 90: ...VA Motion Controller Programming Manual 85 ...
Page 116: ...VA Motion Controller Programming Manual 111 ...
Page 139: ...VA Motion Controller Programming Manual 134 ...
Page 274: ...VA Motion Controller Programming Manual 269 ...
Page 329: ...VA Motion Controller Programming Manual 324 ...
Page 342: ...VA Motion Controller Programming Manual 337 2 Motion curve and timing diagram ...
Page 352: ...VA Motion Controller Programming Manual 347 2 Motion curve and timing diagram ...
Page 357: ...VA Motion Controller Programming Manual 352 2 Motion curve and timing diagram ...
Page 372: ...VA Motion Controller Programming Manual 367 2 Timing and motion profiles of FIG ...
Page 386: ...VA Motion Controller Programming Manual 381 2 the motion profile and timing ...
Page 444: ...VA Motion Controller Programming Manual 439 ...
Page 460: ...VA Motion Controller Programming Manual 455 ...
Page 461: ...VA Motion Controller Programming Manual 456 2 a timing graph and ...
Page 481: ...VA Motion Controller Programming Manual 476 ...
Page 543: ...VA Motion Controller Programming Manual 538 ...
Page 561: ...VA Motion Controller Programming Manual 556 ...
Page 597: ...VA Motion Controller Programming Manual 592 ...
Page 603: ...VA Motion Controller Programming Manual 598 ...
Page 607: ...VA Motion Controller Programming Manual 602 ...
Page 610: ...VA Motion Controller Programming Manual 605 ...
Page 613: ...VA Motion Controller Programming Manual 608 ...
Page 648: ...VA Motion Controller Programming Manual 643 Mode 1 is not available ...