Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 841

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Data Control Instructions
Description
Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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
R = BCD 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 result in R will be the absolute BCD conversion value and the sign will be
indicated by the Carry Flag. The result can thus be between –9999 and 9999.
If the result is less than –9999, –9999 will be output as the result. If the result
is greater than 9999, 9999 will be output.
S
D00000 to
D00000 to
D32767
D32765
E00000 to
E00000 to
E32767
E32765
En_00000 to
En_00000 to
En_32767
En_32765
(n = 0 to C)
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*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 ((BCD conversion of S) – (BCD conversion of offset)
Section 3-18
P1
R
D00000 to
D32767
E00000 to
E32767
En_00000 to
En_32767
(n = 0 to C)
DR0 to DR15
801

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents