Omron SYSMAC CS Series Instruction & Reference Manual page 367

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Function
 BINS
BINS(470) converts the signed BCD data in S
to signed binary data and writes the result in
according to the format setting in the control
word (C).
Setting
C=0
C=1
C=2
C=3
 BISL
BISL(472) converts the double signed BCD
data in S+1 and S to double signed binary
data and writes the result in D+1 and D
according to the format setting in the control
ward (C).
Setting
C=0
C=1
C=2
C=3
Hint
Some Special I/O Units output signed BCD data. Calculations using this data will normally be easier if it
is first converted to signed binary data with BINS(470)/B/SL(472).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Signed BCD values
–999 to –1 and 0 to 999
–7999 to –1 and 0 to 7999
–999 to –1 and 0 to 9999
–1999 to –1 and 0 to 9999
Signed BCD values
–999 9999 to –1
0 to 999 9999
–7999 9999 to –1
0 to 7999 9999
–999 9999 to –1
0 to 9999 9999
–1999 9999 to –1
0 to 9999 9999
3. Instructions
Signed BCD format
specified in C
Signed BCD
Signed binary
Signed binary values
FC19 to FFFF and 0000 to 03E7
E0C1 to FFFF and 0000 to 1F3F
FC19 to FFFF and 0000 to 270F
F831 to FFFF and 0000 to 270F
Signed BCD format
specified in C
Signed binary
Signed BCD
Signed BCD
Signed binary
Signed binary values
FF67 6981 to FFFF FFFF
0000 0000 to 0098 967F
FB3B 4C01 to FFFF FFFF
0000 0000 to 04C4 B3FF
FF67 6981 to FFFF FFFF
0000 0000 to 05F5 E0FF
FECE D301 to FFFF FFFF
0000 0000 to 05F5 E0FF
3
333

Advertisement

Table of Contents
loading

Table of Contents