Binary text to number BIN → DINT
Reads binary text as a number, like "101" → 5.
Source"1010"
To
Dest10
| Tag | After two scans |
|---|---|
| BinIn | '1010' |
| BinNum | 10 |
How it's used
Use it to read a bit pattern typed as text.
Source"1010"
To
Dest10
| Tag | Value |
|---|---|
| BinIn | '1010' |
| Pattern | 10 |
1010 is 10.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | STRING or a number | Reads |
| Dest | DINT | Writes |
Common mistakes
- Using digits other than 0 and 1Binary text has only 0 and 1. Anything else is a fault.