2-185

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Conversion Instructions
2
BIN/BINL
Conversion Instructions

BIN/BINL

Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations Function
code Function
BCD TO BINARY BIN @BIN 023 Converts BCD data to binary data.
DOUBLE BCD TO DOUBLE
BINARY BINL @BINL 058 Converts 8-digit BCD data to 8-digit hexadecimal
(32-bit binary) data.
Symbol
BIN BINL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
BIN BINL BIN BINL
SBIN: Source word
BINL: First source word WORD DWORD 1 2
RBIN: Results word
BINL: First result word UINT UDINT 1 2
Area Word addresses Indirect DM addresses Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
S,R OKOKOKOKOKOKOK OK OK --- --- --- ---
Name Label Operation
BIN BINL
Error Flag P_ER ON if the content of S is not BCD.
OFF in all other cases.
ON if the contents of S+1, S are not BCD.
OFF in all other cases.
Equals Flag P_EQ ON if the result is 0000.
OFF in all other cases.
ON if the result is 0.
OFF in all other cases.
Negative Flag P_N OFF OFF
S: Source word
R: Result word
BIN(023)
S
R
S: First source word
R: First result word
BINL(058)
S
R