Omron CS1G/H-CPUxxH Instructions Manual page 736

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

Advertisement

Data Control Instructions
Flags
Precautions
Examples
Positive Offset
R (signed binary)
Max conversion
Min. conversion
Offset of 0000
R (signed binary)
Max conversion
SCL3(487) is used to convert data using a user-defined scale to signed binary
for Analog Output Units. For example, SCL3(487) can convert 0 to 200 ° C to
0000 to 0FA0 (hex) and output an analog output signal 1 to 5 V from the Ana-
log Output Unit.
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
An error will occur and the Error Flag will turn ON if the contents of S is not
BCD or if the value for ∆ X (C+1) is not between 0001 and 9999 BCD.
The Equals Flag will turn ON when the contents of the result word D is 0000.
The Negative Flag will turn ON if the MSB of the result in R is 1, i.e., if the
result is negative.
When a value from 0 to 200 is scaled to an analog signal (1 to 5 V, for exam-
ple), a signed BCD value of 0000 to 0200 is converted (scaled) to signed
binary value of 0000 to 0FA0 for an Analog Output Unit. When CIO 000000
turns ON in the following example, the contents of D00000 is scaled using the
linear function defined by ∆ X (0200), ∆ Y (0FA0), and the offset (0). These val-
ues are contained in D00100 to D00102. The sign of the BCD value in
D00000 is indicated by the Carry Flag. The result is output to CIO 2011.
Negative Offset
R (signed binary)
Max conversion
∆Y
∆X
Offset
Offset
S (signed BCD)
Min. conversion
∆Y
∆X
S (signed BCD)
Min. conversion
Operation
ON if the contents of S is not BCD.
ON if the contents of C+1 (∆X) is not between 0001 and
9999 BCD.
OFF in all other cases.
ON if the result is 0.
OFF in all other cases.
ON when the MSB of the R (the result) is 1.
OFF in all other cases.
Section 3-18
∆Y
∆X
S (signed BCD)
715

Advertisement

Table of Contents
loading

Table of Contents