BIN instruction on Omron PLC : BCD-To-Binary.
Converts the BCD contents of S into the numerically equivalent binary bits and outputs the binary value to R. Only the contents of R is changed; the contents of S is left unchanged.
BIN(100) can be used to convert BCD to binary so that displays on SYSWIN, the Programming Console or any other programming device will appear in hexadecimal rather than decimal. It can also be used to convert to binary to perform binary arithmetic operations rather than BCD arithmetic operations, for example, when BCD and binary values must be added.
S: Source word (BCD) CIO, G, A, T, C, DM, DR, IR
R: Result (binary) CIO, G, A, DM, DR, IR
illustration of TBIND instructions on Omron PLC :
BCD Convert to Binary