Omron CS1G/H-CPUxxH Instructions Manual page 735

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Data Control Instructions
Description
714
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SCL3(487) is used to convert the signed BCD data (the BCD data contains
the absolute value and the Carry Flag shows the sign) contained in the source
word S into signed binary data and place the result in the result word R
according to the linear function defined by the slope ( ∆ X, ∆ Y) and an offset.
The maximum and minimum conversion values are also specified. The
address of the first word containing ∆ X, ∆ Y, the offset, the maximum conver-
sion, and the minimum conversion is specified for the first parameter word P1.
The sign of the result is indicated by the status of the Carry Flag (ON: nega-
tive, OFF: positive). Use STC(040) and CLC(041) to turn the Carry Flag ON
and OFF.
The following equations are used for the conversion.
∆Y
R =
Binary conversion of ∆X
The slope of the line is ∆Y/∆X.
The offset and slope can be a positive value, 0, or a negative value. Using a
negative slope enables reverse scaling.
The result will be rounded to the nearest integer.
The source value in S is treated as an absolute BCD value and the sign is
indicated by the Carry Flag. The source value can thus be between –9999
and 9999.
If the result is less than the minimum conversion value, the minimum conver-
sion value will be output as the result. If the result is greater than the maxi-
mum conversion value, the maximum conversion value will be output.
S
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
DR0 to DR15
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
x ((Binary conversion of S)+(Offset))
Section 3-18
P1
R
DR0 to DR15

Advertisement

Table of Contents
loading

Table of Contents