Programming and Adjustment
DM 0100
4000
DM 0101
03E8
DM 0102
019A
DM 0103
03E8
DM 0104
07FF
Output data (hexadecimal)
07FF
(20 mA)
(2) 019A
(4 mA)
0
If the following DM settings are made, the scaling as shown in the following
graph will be performed.
In this example, BCD data between 0 to 1000 will be scaled in order to output
a current of 4 to 20 mA.
Polygonal coordinate points and parameter data format
(Hexadecimal)
(Refer to the Analog Output Unit Operation Manual for details.)
(Hexadecimal)
(1) X axis maximum value
(Hexadecimal)
(2) Y axis intersection
(Hexadecimal)
Coordinate of (3)
(Hexadecimal)
It is possible to convert data into a polygonal line as shown below. Refer to the
linear approximation description for ARITHMETIC PROCESS – APR(––) in
Section 5 of the CQM1/CPM1 Programming Manual (W228) for details.
It is not possible to use the APR instruction to obtain negative output (2's com-
plement). If required, execute the APR instruction in a positive range and con-
vert it to negative output using a program. The following is an example of a
program that converts data in a range of 0000 to 0FFF to data in a range of
8000 to 07FF.
Input condition
* "n" indicates the allocated word for analog output 1.
(3)
Value of DM 0000
(Input data)
(BCD)
1000 (1)
(03E8 hexadecimal)
25505 (> flag)
25505 (> flag)
Section 3-3
CMP(20)
#0800
APR result
ORW(35)
#F800
APR result
n
MOV(21)
APR result
n
125
Need help?
Do you have a question about the CQM1 and is the answer not in the manual?
Questions and answers