EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 456

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
423
Conversion Instructions Section 3-11
Description 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. First the signed BCD
data format and range in words S+1 and S are checked against the setting in
the control word (C). If the source data is correct, the signed BCD data S+1
and S is converted to signed binary and output to D+1 and D. If the source
data is incorrect, the Error Flag will be turned ON and the instruction will not
be executed.
When the converted data is negative, it will be output as the 2’s complement
and the Negative Flag be will turned ON. NEGL(161) can be used to deter-
mine the absolute value of a negative double signed binary number. Refer to
3-11-6 DOUBLE 2’S COMPLEMENT: NEGL(161) for details.
Values of –0 in the source data will be treated as 0 and will not cause an error.
Also, the status of bits 13 to 15 of S+1 is not checked when C=0000.
The control word specifies the signed BCD format as shown below.
C = 0000 (Input Data Range: –999 9999 to 999 9999 BCD)
C = 0001 (Input Data Range: –7999 9999 to 7999 9999 BCD)
C = 0002 (Input Data Range: –999 9999 to 9999 9999 BCD)
Data Registers DR0 to DR15 ---
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area C S D
Signed BCD
Signed BCD
Signed binary
Signed binary
Signed BCD format
specified in C
S + 1
3 digits BCD, 12 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
S + 1
3 digits BCD, 12 bits
3 bits of digit 4 (0 to 7)
Sign bit (0: Positive; 1: Negative)
S + 1
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
F: Negative (–)
A to E: Error

Table of Contents

Related product manuals