277
Conversion Instructions Section 5-19
The following diagram shows the source word, S, converted to R according to
the line defined by the point (0, P1) and slope
∆Y/∆X.
The result can be calculated by first converting all BCD values to signed
binary and then using the following formula.
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
The content of S is not BCD.
CY: CY is not changed by SCL3(––). (CY shows the sign of S before exe-
cution.)
EQ: ON when the result, R, is 0000.
Example The status of 00101 determines the sign of the BCD source word in the follow-
ing example. If 00101 is ON, then the source word is negative. When 00100 is
turned ON, the BCD source data in LR 02 is converted to signed binary
according to the parameters in DM 0000 to DM 0004. The result is then writ-
ten to DM 0100. (In the second conversion, the signed binary equivalent of –
S
Value after conversion
(Signed hexadecimal)
R
Value before con-
version (BCD)
Y-intercept
∆ X
∆ Y
Lower limit
Upper limit
R =