3. Instructions
414
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BINS/BISL
Applicable Program Areas
Operands
C: Control Word
Specifies the signed BCD format. C must be 0000 to 0003.
S: Source word
BINS
• C = 0 (Input Data Range: -999 to 999 BCD)
• C = 1 (Input Data Range: -7999 to 7999 BCD)
Instruction Mnemonic Variations
Function
code
Function
SIGNED BCD TO BINARY BINS @BINS 470
Converts one word of signed BCD data to one
word of signed binary data.
DOUBLE SIGNED BCD TO
BINARY
BISL @BISL 472
Converts double signed BCD data to double
signed binary data.
Symbol
BINS BISL
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
BINS BISL BINS BISL
C Control word UINT UINT 1 1
S
BINS: Source word
BISL: First source word
WORD DWORD 1 2
D
BINS: Destination word
BISL: First destination word
INT DINT 1 2
C: Control word
S: Source word
D: Destination word
BINS(470)
C
S
D
C: Control word
S: First source word
D: First destination word
BISL(472)
C
S
D
3 digits BCD, 12 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
Sign bit (0: Positive; 1: Negative)
3 bits of digit 4 (Bit 12 to 14)
3 digits BCD, 12 bits