Kv -300 – KEYENCE Visual KV Series User Manual

Page 378

Advertising
background image

9.4 Programming

KV-10/80 Series Only

KV

-300

KV-10/80

Chapter 9 KV-AD4/DA4 Analog I/O Unit

1-354

9

Converting Digital Data to Voltage or Current Values to be Output

To output digital data as analog data, the voltage and current values that are to be
output from the KV-DA4 are first converted to the corresponding digital data by the
sequence program, and written to the data memory for D/A conversion. Voltage and
current values cannot be written to the data memory for D/A conversion as they are.

➮ For details on the voltage/digital data conversion tables, see "9.4.3 A/D and D/A Conversion Tables"

on page 1-357. For details on sample programs, see "9.5 Programming Examples" on page 1-359.

➮ For details on data memory for D/A conversion, see "9.4.3 A/D and D/A Conversion Tables" on page

1-357.

Note: When making a sequence program, take care not to exceed the output range
(0 to 4095). If a value exceeding this range is written to the data memory for D/A
conversion, unsteady values will be output from the KV-DA4.

How to calculate digital data when outputting analog voltage

Digital data = (output voltage (mV)

÷

resolution (5 mV)) + offset value (2000)

Example

When outputting +7.5 V

(7500 (mV) ÷ 5 (mV)) + 2000 = 3500

Write "3500" to D/A conversion memory.
Next, turn ON the special utility relay for D/A conversion.

KVHKA Chap 09.p65

08.3.11, 11:20 AM

354

Advertising