Insert text INSERT
Puts B into A after Position.
Text'PO991'
Add'-R2'
After5
Dest'PO991-R2'
| Tag | After two scans |
|---|---|
| Order | 'PO991' |
| OrderRev | 'PO991-R2' |
| Rev | '-R2' |
| RevPos | 5 |
How it's used
Use INSERT to add text inside other text, such as a revision.
Text'PO991'
Add'-R2'
After
Dest'PO991-R2'
| Tag | Value |
|---|---|
| Order | 'PO991' |
| Rev | '-R2' |
| OrderRev | 'PO991-R2' |
OrderRev is PO991-R2.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| A | STRING or a number | Reads |
| B | STRING or a number | Reads |
| Position | DINT or a number | Reads |
| Dest | STRING | Writes |
Common mistakes
- Confusing position with character countChoose where to insert, and leave enough destination capacity for the combined text.