9 converting analog input to analog output, Kv -300 – KEYENCE Visual KV Series User Manual

Page 352

Advertising
background image

8.4 Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 8 KV-AN6 Analog I/O Module

1-328

8

8.4.9

Converting Analog Input to Analog Output

The following example describes how to fetch analog input and output it as analog
data.

Example

Fetch signals from analog input ch. 0 of the KV-AN6 module no. 1 and output the
signals as analog data to analog output ch. 4.
Select either voltage-to-current conversion or current-to-voltage conversion, using
the range selection switches. For the range setting, refer to page 1-319.

Ladder diagram

Fetches analog input
and outputs it as
analog data.

2002

DM9000

LDA

2002

2009

DM9000

LDA

$8000

CMP

2009

COM

#00001

ADD

#00016

DIV

DM0001

STA

#00016

DIV

DM0000

STA

DM9004

STA

#00005

MUL

#00005

MUL

➮ For assignment of data memory addresses, refer to page 1-324.

When analog input is
positive, writes the
data value x 1000 into
DM0000.
(In the diagram) Let
the complement of
two be true.
When analog input is
negative, writes the
data value x 1000 into
DM0001.

KVHKA Chap 08.p65

08.3.11, 11:19 AM

328

Advertising