Chapter  16  PLC  Function  ApplicationsC2000-HS 
 
16-63
 
API   
 
BIN 
 
S D
 
BCD to BIN transformation 
19 
 
D  P 
 
  
 
 
Bit device    Word device   
16-bit command    (5 STEP) 
BIN  Continuous 
execution type 
BINP  Pulse 
execution type 
 
32-bit command    (9 STEP) 
DBIN  Continuous 
execution type 
DBINP  Pulse 
execution type 
 
Flag signal: none 
X  Y  M  K  H  KnX  KnY  KnM  T  C  D 
S       * * * * * * 
D              *  *  *  *  * 
Notes on operand usage: none 
 
 
S
: Data source. 
D
: Transformation result.   
  The  content of  data source 
S
  (BCD:  0–9,999)  executes  BIN transformation 
and saves in 
D
.   
  Valid number range of the data source S: BCD (0–9,999), DBCD (0–99,999,999). 
 
  When X0 is ON, and the BCD value of K1X20 is transformed to BIN value, the 
result saves in D10. 
X0
BIN
D10K1X20
 
 
  When PLC reads a BCD type switch-off from the outside, it has to use the BIN 
command to transform the read data to BIN value, then saves the value into PLC.