Binary text to number BIN → DINT

Reads binary text as a number, like "101" → 5.

TagAfter two scans
BinIn'1010'
BinNum10

How it's used

Use it to read a bit pattern typed as text.

TagValue
BinIn'1010'
Pattern10

1010 is 10.

Operands

OperandData typeRead or write
SourceSTRING or a numberReads
DestDINTWrites

Common mistakes

  • Using digits other than 0 and 1Binary text has only 0 and 1. Anything else is a fault.