EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 690

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...
657
Data Control Instructions Section 3-17
Operands The contents of the three words starting with the first parameter word (P1) are
shown in the following diagram.a
Operand Specifications
Description SCL2(486) is used to convert the signed binary data contained in the source
word S into signed BCD data (the BCD data contains the absolute value and
the Carry Flag shows the sign) and place the result in the result word R
according to the linear function defined by the slope (
X, Y) and an offset.
The address of the first word containing
X, Y, and the offset is specified for
the first parameter word P1. The sign of the result is indicated by the status of
the Carry Flag (ON: negative, OFF: positive).
The following equations are used for the conversion.
Y
X
P1
P1+1
P1+2
15 0
15 0
15 0
Offset of linear function
8000 to 7FFF (signed binary)
8000 to 7FFF (signed binary)
0000 to 9999 (BCD)
Area S P1 R
CIO Area CIO 0 to
CIO 6143
CIO 0 to
CIO 6141
CIO 0 to
CIO 6143
Work Area W0 to W511 W0 to W509 W0 to W511
Holding Bit Area H0 to H511 H0 to H509 H0 to H511
Auxiliary Bit Area A0 to A959 A0 to A957 A448 to A959
Timer Area T0000 to T4095 T0000 to T4093 T0000 to T4095
Counter Area C0000 to C4095 C0000 to C4093 C0000 to C4095
DM Area D0 to D32767 D0 to D32765 D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---
Data Registers DR0 to DR15 --- 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
Y
R =
BCD conversion of X
The slope of the line is Y/X.
x ((BCD conversion of S) – (BCD conversion of offset)

Table of Contents

Related product manuals