7.9.6 INSERT
Function
INSERT is called the string insertion function. It inserts the string IN2 into the string IN1, starting from the P position, and OUT outputs the content of the inserted string
LD graphics:
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN1 | Input | STRING | String |
| IN2 | Input | STRING | String |
| P | Input | INT | Position to start inserting |
| Function name | Return value | STRING | String |
Corresponding syntax
- IN1: Enter the first string
- IN2: Enter the second string
- OUT: Output the inserted string
- P: The position where to start inserting the string
Example
- LD sample animation is as follows:

- ST example is shown in the following code:
OUT:=INSERT(IN1:=IN1,IN2:=IN2,P:=8);