Text end RIGHT
Dest = the last Count characters.
Text'SN-2026-0417'
Count4
Dest'0417'
| Tag | After two scans |
|---|---|
| Serial | 'SN-2026-0417' |
| Suffix | '0417' |
| SuffixLen | 4 |
How it's used
Use RIGHT to read the end of a code, such as a serial number.
Text'SN-2026-0417'
Count
Dest'0417'
| Tag | Value |
|---|---|
| Serial | 'SN-2026-0417' |
| Unit | '0417' |
Unit is the last 4 characters: 0417.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | STRING or a number | Reads |
| Count | DINT or a number | Reads |
| Dest | STRING | Writes |
Common mistakes
- Expecting a position operandThis operation takes the requested count from the end of the source.