Number to text LINT → TEXT
Writes the number as text, like 42 → "42".
Source5000000000
To
Dest"5000000000"
| Tag | After two scans |
|---|---|
| LifetimeCount | 5000000000 |
| LifetimeTxt | '5000000000' |
How it's used
Use it to show a count too large for a DINT, such as a lifetime total.
Source5000000000
To
Dest"5000000000"
Text'TOTAL '
Add'5000000000'
Dest'TOTAL 5000000000'
| Tag | Value |
|---|---|
| Lifetime | 5000000000 |
| LifetimeTxt | '5000000000' |
| Prefix | 'TOTAL ' |
| Message | 'TOTAL 5000000000' |
Lifetime is 5000000000, more than a DINT can hold, and Message is TOTAL 5000000000.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | LINT or a number | Reads |
| Dest | STRING | Writes |
Common mistakes
- Passing a large number through REAL firstKeep large numbers as LINT. A REAL cannot hold every digit.