Write character SET CHAR
Changes the character at Position.
Char'B'
At1
Dest'B-04'
| Tag | After two scans |
|---|---|
| Bay | 'B-04' |
| ChrPos | 1 |
| NewChr | 'B' |
How it's used
Use it to change one character, such as a bay letter.
Char'B'
At
Dest'B-04'
| Tag | Value |
|---|---|
| NewBay | 'B' |
| Bay | 'B-04' |
Bay is now B-04.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | CHAR or a number | Reads |
| Position | DINT or a number | Reads |
| Dest | STRING | Reads and writes |
Common mistakes
- Writing past the end of the textThe position must be inside the text. Use CONCAT to make it longer.