Number to binary text DINT → BIN
Writes the number as binary text, like 5 → "…101".
Source5
To
Dest"00000000000000000000000000000101"
| Tag | After two scans |
|---|---|
| Inputs8 | 5 |
| InputsBin | '00000000000000000000000000000101' |
How it's used
Use it to show each bit of a word, such as input states.
Source5
To
Dest"00000000000000000000000000000101"
| Tag | Value |
|---|---|
| Inputs | 5 |
| InputsBin | '00000000000000000000000000000101' |
Bits 0 and 2 are on.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | DINT or a number | Reads |
| Dest | STRING | Writes |
Common mistakes
- Making Dest too shortThe text is always 32 digits. Dest needs room for all of them.