Code to character CODE → CHAR
Dest = the character for a code, like 65 → "A".
Source66
To
Dest'B'
| Tag | After two scans |
|---|---|
| AsciiChr | 'B' |
| AsciiCode | 66 |
How it's used
Use it to make a character from a number, such as a bay letter.
ADD
AGlobal.BayNo2B64DestGlobal.Code66
Source66
To
Dest'B'
| Tag | Value |
|---|---|
| BayNo | 2 |
| Code | 66 |
| BayLetter | 'B' |
A is 65, so bay 2 is code 66: B.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | DINT or a number | Reads |
| Dest | CHAR | Writes |
Common mistakes
- Using a code with no characterUse a code from 0 to 255.