EasyManuals Logo
Home>Vector>Controller>VEC-VA Series

Vector VEC-VA Series User Manual

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
Page #226 background imageLoading...
Page #226 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals