4 calculating output data (d/a) – KEYENCE Visual KV Series User Manual
Page 347

8.4 Programming
KV-300 Series Only
KV
-300
KV-10/80
Chapter 8 KV-AN6 Analog I/O Module
1-323
1
8
8.4.4
Calculating Output Data (D/A)
To output analog data, write the data into the analog output data memory ad-
dresses.
Calculate the numerical value to be written into data memory.
Voltage output
DM value = Output voltage/Output range resolution x 16
Current output
DM value = (Output current -12 [mA])/0.004 [mA] x 16
To convert a 16-bit DM value to an effective 12-bit value, multiply the 16-bit value
by 16.
Example 1
When +7.5 V is output in the ±10 V range
7.5 V/5 mV x 16 = 24000
The DM value is 24000.
Example 2
When -5 V is output in the ±5 V range
5 V/2.5 mV x 16 = 32000
Since the output voltage in this example is negative, set the result by subtracting
32000 from 0 as the DM value.
Example 3
When 18 mA is output in the 4-to-20 mA range
(18 mA - 12 mA)/0.004 x 16 = 24000
The DM value is 24000.
KVHKA Chap 08.p65
08.3.11, 11:19 AM
323