Read character CHAR AT
Dest = the character at Position.
Text'NSEW'
At2
Dest'S'
| Tag | After two scans |
|---|---|
| Heading | 'S' |
| Route | 'NSEW' |
| RouteStep | 2 |
How it's used
Use it to step through text one character at a time.
Text'NSEW'
At2
Dest'S'
| Tag | Value |
|---|---|
| Route | 'NSEW' |
| RouteStep | 2 |
| Heading | 'S' |
Step 2 of NSEW is S.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | STRING or a number | Reads |
| Position | DINT or a number | Reads |
| Dest | CHAR | Writes |
Common mistakes
- Using a zero-based indexCharacter positions start at 1 and must be within the current string.