3. Instructions
382
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
BIN/BINL
Applicable Program Areas
Operands
z 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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
BIN BINL BIN BINL
S
BIN: Source word
BINL: First source word
WORD DWORD 1 2
R
BIN: Results word
BINL: First result word
UINT UDINT 1 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
BIN
S
OK OK OK OK OK OK OK OK OK OK
---
OK --- OK --- --- --- ---
R
BINL
S
OK OK OK OK OK OK OK OK OK OK
---
--- --- OK --- --- --- ---
R
Name Label
Operation
BIN BINL
Error Flag 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 = • ON if the result is 0000.
• OFF in all other cases.
• ON if the result is 0.
• OFF in all other cases.
Negative Flag 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