Issuu on Google+

B41-001

Reference Manual Analog I/O Unit for Visual PLC KV Series

KL-N10V/4AD/2DA

Worldwide Headquarters KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: 81-6-6379-2211 FAX: 81-6-6379-2131

KEYENCE CORPORATION OF AMERICA PHONE: 201-930-0100 FAX: 201-930-0099

KEYENCE (MALAYSIA) SDN BHD PHONE: 03-252-2211 FAX: 03-252-2131

KEYENCE (UK) LIMITED PHONE: 01908-696900 FAX: 01908-696777

KEYENCE (THAILAND) CO., LTD PHONE: 02-369-2777 FAX: 02-369-2775

KEYENCE DEUTSCHLAND GmbH PHONE: 0711-79 73 71-0 FAX: 0711-797 77 99

KEYENCE TAIWAN CO., LTD PHONE: 02-2627-3100 FAX: 02-2798-8925

KEYENCE FRANCE S.A. PHONE: 01 47 92 76 76 FAX: 01 47 92 76 77

KEYENCE KOREA CORPORATION PHONE: 02-563-1270 FAX: 02-563-1271

KEYENCE SINGAPORE PTE LTD PHONE: 392-1011 FAX: 392-5055 © KEYENCE CORPORATION, 1999 KL-RM-1-1299 Printed in Japan

KL-N10V/4AD/2DA Reference Manual

Specifications are subject to change without notice.

Note: Please read the attached Quick Guide first .


Safety Precautions This reference manual describes the details of the operation and function of the KV Series PLC and KL Series analog I/O units. Read this manual carefully to ensure safe use and maximum performance from your KV Series PLC and KL Series analog I/O units.

Symbols The following symbols alert you to important messages. Be sure to read these messages carefully.

Note:

WARNING

Failure to follow instructions may lead to injury. (electric shock, burn, etc.)

CAUTION

Failure to follow instructions may lead to product damage.

Provides additional information on proper operation.

General Precautions •

At startup and during operation, be sure to monitor the functions and performance of the KV Sereis PLC and KL Series analog I/O units.

We recommend that you take substantial safety measures to avoid any damage in the event a problem occurs.

Do not open or modify the KV Series PLC and KL Series analog I/O units or use it in any way other than described in the specifications.

When the KV Series PLC and KL Series analog I/O units is used in combination with other instruments, functions and performance may be degraded, depending on operating conditions and the surrounding environment.

Do not use the KV Series PLC and KL Series analog I/O units for the purpose of protecting the human body.

Note: The built-in display may show the error message "Error 40" blinking the very first time you turn on the power supply to the Visual KV Series. Press any key around the display to cancel this message. The Visual KV Series shows this message when no program is loaded.

(1)


Note to User When using the Visual KV Series and KL Series analog I/O units in the following conditions or environments, be sure to use the Visual KV Series and KL Series analog I/O units with sufficient margin regarding the rating and functions, take appropriate safety precautions such as fail-safe, and contact our sales personnel if any questions arise. •

Use in conditions or environments not described in this manual

Use for nuclear power control, railway facilities, air service facilities, vehicles, combustion devices, medical equipment, amusement machines, safety equipment, etc.

Use for applications where large effects are predicted to be given on human lives and properties and safety is especially requested.

■ KL Series Analog I/O Units KL-N10V: Analog I/O Adapter KL-4AD: A/D Convertor Unit KL-2DA: D/A Convertor Unit KL-T1: KL T-Branch Adapter OP-30590: KL Connector Cable OP-30591: KL Cable (20 m) OP-30592: KL Cable (100 m)

(2)


Contents Chapter 1

Quick Tutorial System outline ................................................................................................................ 2 System diagram ............................................................................................................. 2 Communication setup ................................................................................................... 2 KL-N10V communication setup .................................................................................... 3 KL-4AD Analog input value calculation method ......................................................... 3 KL-2DA Analog output value calculation method ....................................................... 3 Ladder sample program for analog input for KV ........................................................ 4 Ladder sample program for analog output for KV ...................................................... 4

Chapter 2

KL-N10V 2.1

KL Analog I/O Adapter Terminal Layout Drawing ............................................ 6

2.2

Terminal Wiring ................................................................................................... 7

2.3

Initial Procedure .................................................................................................. 8

2.4 Response Speed ............................................................................................... 13 2.4.1 I/O response speed ............................................................................................. 13 2.5 2.5.1 2.5.2 2.5.3 2.5.4

Communication Parameters ............................................................................ 15 Communication settings ...................................................................................... 15 Communication area ............................................................................................ 15 Connection information ........................................................................................ 16 Error information .................................................................................................. 17

2.6 Error Codes ....................................................................................................... 18 2.6.1 Error code table ................................................................................................... 18

Chapter 3

Chapter 4

KL Analog I/O Unit Setup and Installation 3.1

Introduction ....................................................................................................... 20

3.2

Features ............................................................................................................. 20

3.3

Mounting Method .............................................................................................. 22

System Outline 4.1 Wiring Each of the Units .................................................................................. 26 4.1.1 System Configuration and Wiring ........................................................................ 26

Chapter 5

4.2

Terminal Connections ...................................................................................... 29

4.3

Wiring with the Connector Cable .................................................................... 31

4.4

Maintenance ...................................................................................................... 33

Specifications & Functions 5.1 Specifications .................................................................................................... 36 5.1.1 KL-4AD ................................................................................................................ 36 5.1.2 KL-2DA ................................................................................................................ 38 5.2 A/D Conversion Unit KL-4AD ........................................................................... 39 5.2.1 Names and functions of parts .............................................................................. 39 5.3 D/A Conversion Unit KL-2DA ........................................................................... 45 5.3.1 Names and functions of parts .............................................................................. 45 5.4 5.4.1 5.4.2 5.4.3

(3)

Setting Operation Modes ................................................................................. 49 Outline ................................................................................................................. 49 Data monitor mode .............................................................................................. 50 Data monitor automatic switching mode .............................................................. 50


5.4.4 Setup display mode ............................................................................................. 51 5.4.5 Setup change mode ............................................................................................. 52 5.4.6 Offline mode (KL-2DA only) ................................................................................. 54

Chapter 6

Programming 6.1 6.1.1 6.1.2 6.1.3

A/D Conversion ................................................................................................. 56 A/D conversion principles .................................................................................... 56 Processing of digital data ..................................................................................... 57 Calculating the voltage or current value from digital data .................................... 58

6.2 6.2.1 6.2.2 6.2.3

D/A Conversion ................................................................................................. 59 D/A conversion principles .................................................................................... 59 Processing of digital data ..................................................................................... 59 Converting voltage or current values to be output to digital data ......................... 60

6.3 6.3.1 6.3.2 6.3.3

A/D D/A Conversion Tables ............................................................................. 61 I/O characteristics ................................................................................................ 61 Voltage conversion table ..................................................................................... 62 Current conversion table ...................................................................................... 64

Appendices Appendix A

Troubleshooting .................................................................................. 68 KL-4AD ................................................................................................... 69 KL-2DA ................................................................................................... 69

Appendix B

Error Codes .......................................................................................... 70

(4)


(5)


Chapter 1 Quick Tutorial System outline .................................................................................................... 2 System diagram .................................................................................................. 2 Communication setup ........................................................................................ 2 KL-N10V communication setup ......................................................................... 3 KL-4AD Analog input value calculation method .............................................. 3 KL-2DA Analog output value calculation method ........................................... 3 Ladder sample program for analog input for KV ............................................. 4 Ladder sample program for analog output for KV .......................................... 4


Chapter 1 Quick Tutorial The simplest analog I/O processing is available by following the procedures shown below.

System outline Connect the KV-CPU, KL-N10V, KL-4AD and KL-2DA as follows:

1

Displacement Sensor

KL-4AD

KV Series

KL-N10V

KL-2DA

Inverter

System diagram KL-N10V: Analog I/O Adapter offers high-speed long-distance serial communication without noise influence. KL-4AD/2DA: Analog I/O Units have a 7-segment LCD display indicating analog value in real time. Data Flow/Addressing: The data flows as shown below when KL-N10V is connected to one unit for each KL-4AD and KL-2DA. DM and I/O assignment: Received data from KL-4AD(Ch0 to Ch3) is stored in DM1600 to DM1603. Data in DM1700 and 1701 is sent to KL-2DA(Ch0 and 1).

Communication setup Communication setup: Available from LBK with KL-N10V. Use setup switches with KL-4AD and KL-2DA. KL-N10V

KL-4AD

KL-2DA

1st address of send data

08H

Number of addresses

04H

1st address of receive data

00H

Number of receive addresses

08H

00H

Address for KL-4AD Address for KL-2DA FINAL switch setting

2

08H ON

OFF

OFF


Chapter 1 Quick Tutorial

KL-N10V communication setup KL-N10V communication setup is done with the following ladder program.

Ladder program sample 2008

2700 ( RES )

2701 ( SET )

2702 ( SET ) 1

$0008 DW DM1800 5

2704 ( RES ) 2

$0004 DW DM1801 6

2705 ( SET ) 3

$0000 DW DM1802 7

1

$0008 DW DM1803 8 2700 ( SET ) 9

2007

NO.

2706 ( SET ) 4

Setup parameters

Value

Device

1

KL baudrate

5Mbps

2701,2702

2

Sampling data unit

16bits

2704

3

FINAL switch

ON

2705

4

Input clear at disconnection

Error clear

2706

5

1st address of send data

08H

DM1800

6

Number of send addresses

04H

DM1801

7

1st address of receive data

00H

DM1802

8

Number of receive addresses

08H

DM1803

9

KL use enable

Enable

2700

KL-4AD Analog input value calculation method Analog input value for KL-4AD can be calculated as follows: 0 - 10V, ±10V range: Input value(mV) = Digital value x 2.5 0 - 5 V range:

Input value(mV) = Digital value x 1.25

1 - 5 V range:

Input value(mV) = Digital value x 1 + 1000

0 - 20 mA range:

Input value(uA) = Digital value x 5

4 - 20 mA range:

Input value(uA) = Digital value x 4 + 4000

KL-2DA Analog output value calculation method Analog output value from KL-2DA can be calculated as follows: 0 - 10V, ±10V range: Input value(mV) = Digital value ÷ 2.5 0 - 5 V range:

Input value(mV) = Digital value ÷ 1.25

1 - 5 V range:

Input value(mV) = Digital value ÷ 1 - 1000

0 - 20 mA range:

Input value(uA) = Digital value ÷ 5

4 - 20 mA range:

Input value(uA) = Digital value ÷ 4 - 1000

3


Chapter 1 Quick Tutorial

Ladder sample program for analog input for KV KL-4AD analog input value is processed in the following ladder diagram:

Ladder program sample 2002

1

DM1600 LDA

#00025 MUL

#00010 DIV

DM1601 LDA

#00005 MUL

DM0001 STA

DM1602 LDA

#00004 MUL

#04000 ADD

DM0000 STA

Ch0 input voltage (-10 to +10V) is stored in DM0000 (mV).

Ch1 input current (0 to 20mA) is stored in DM0001 (ÂľA).

DM0002 STA

Ch2 input current (4 to 20mA) is stored in DM0002 (ÂľA).

Ladder sample program for analog output for KV KL-2DA analog output value is processed in the following ladder diagram:

Ladder program sample

2002

DM0010 LDA

#00100 MUL

#00125 DIV

DM1700 STA

DM0010 LDA

#00001 DIV

#01000 SUB

DM1701 STA

This completes the analog I/O programming.

4

The voltage (mV) stored in DM0010 is output from Ch0 (0 to 5 V range). The voltage (mV) stored in DM0010 is output from Ch1 (1 to 5 V range).


Chapter 2 KL-N10V 2.1

KL Analog I/O Adapter Terminal Layout Drawing .............................. 6

2.2

Terminal Wiring ..................................................................................... 7

2.3

Initial Procedure .................................................................................... 8

2.4 2.4.1

Response Speed ................................................................................... 13 I/O response speed .................................................................................. 13

2.5 2.5.1 2.5.2 2.5.3 2.5.4

Communication Parameters ................................................................ 15 Communication settings ........................................................................... 15 Communication area ................................................................................ 15 Connection information ............................................................................ 16 Error information ...................................................................................... 17

2.6 2.6.1

Error Codes ........................................................................................... 18 Error code table ........................................................................................ 18


Chapter 2 KL-N10V Setup

2.1

KL Analog I/O Adapter Terminal Layout Drawing CAUTION

KL unit SA

SA

2

SB

SG

SB

SG

T1

Be sure to connect a short-circuit bar offered as an accessory to T1 and T2 when the KL-N10V is located at the end of a trunk line as shown in the figure below.

T2

KV base unit

KL-N10V KL Analog I/O Adapter

Analog I/O units

V2

V1

V4

V3

V5

KL-N10V

Short-circuit bar (accessory)

Item

Description Communication signal terminals to be connected to SA and SB SA and SB on another module Ground terminal for communication signal to be connected to the SG shielding wire Connected to a short-circuit bar offered as an accessory to turn T1 and T2 on a terminator when the KL-N10V is located at the end of a trunk line. Unused terminals which are short-circuited inside and can be V1, V2, V3, V4 and V5 used as relay terminals

6


Chapter 2 KL-N10V Setup

2.2

Terminal Wiring Use M3 terminal screws in the KL-N10V KL analog I/O adapter and I/O units acting as I/O units. When performing wiring with crimp-style terminals, use the following screws. (unit: mm) 6.0 maximum

6.0 maximum

M3

12 When wiring, pay strict attention to the cautions shown below. â–  Cable end 2-core twisted shielded cable

CAUTION

Avoid contact of the cable with other wiring or devices.

CAUTION

Be sure to insulate the shielded wire with insulating rubber or shrink tubing. Limit the length of the tubing to 10 cm.

â–  Cable branch

2-core twisted shielded cable

2-core twisted shielded cable

CAUTION Avoid contact of the cable with other wiring or devices.

CAUTION Be sure to insulate shielded cable with insulation rubber and shrink tubing. Limit the length of the tubing.

SG SB

SA

7


Chapter 2 KL-N10V Setup

2.3

Initial Procedure This section describes the initial procedure to connect the KL analog I/O adapter and I/O units.

1. Determine the system configuration to be used. â–  Configuration example The figure below shows a configuration example.

2

Main control panel KV Series base unit

KL-N10V KL analog I/O adapter

Remote control panel

Analog input unit No. 2

KL-4AD

Analog input unit No. 1

KL-4AD

Analog output unit No. 2

Analog output unit No. 1

KL-2DA

KL-2DA

Analog input unit No. 3

KL-T1 T-branch booster

Analog input unit No. 5

KL-4AD

Analog input unit No. 4

Terminator: ON

KL-4AD

KL-4AD

Terminator: ON

: Trunk line : Branch line

â–  Communication Setup The communication setting for KL-N10V should be done in the ladder program using following devices. Device list DM1800: 1st Send address DM1801: Number of send address DM1802: 1st Receive address DM1803: Number of receive address DM1804: Error code No. DM1805: Number of addresses connected DM1810 to 1825: Connection information 2700: KL use: OFF: Disable ON: Enable 2701: Baud rate: OFF: 156 kbps ON: 625 kbps OFF: 2.5 Mbps 2702: OFF OFF ON 2704: KL data type: ON: 8bit OFF: 16bit 2705: FINAL setting: ON: FINAL OFF: FINAL-OFF 2706: Input clear at disconnection: ON: Clear OFF: Keep 2707: Turns ON at disconnection error

8

ON: 5 Mbps ON


Chapter 2 KL-N10V Setup

2. Determine communication addresses. The KL-N10V occupies data memories of the KV Series base unit as follows. Communication data area

Data memories

Receive data area

DM1600 to DM1663

Send data area

DM1700 to DM1763

Determine addresses as follows. KV Series base unit 00H, 01H 02H, 03H 04H, 05H 06H, 07H 08H, 09H 0AH, 0BH 0CH, 0DH 0EH, 0FH 10H, 11H 12H, 13H 14H, 15H 16H, 17H 18H, 19H 1AH, 1BH 1CH, 1DH 1EH, 1FH 20H, 21H 22H, 23H 24H, 25H 26H, 27H

Data memory

Analog input unit address

DM1600 DM1601 DM1602 DM1603 DM1604 DM1605 DM1606 DM1607 DM1608 DM1609 DM1610 DM1611 DM1612 DM1613 DM1617 DM1618 DM1619 DM1620 DM1621 DM1622

00H 02H 04H 06H 08H 0AH 0CH 0EH 10H 12H 14H 16H 18H 1AH 1CH 1EH 20H 22H 24H 26H

12 Channel 0 Channel 1 Channel 2 Channel 3 Channel 0 Channel 1 Channel 2 Channel 3 Channel 0 Channel 1 Channel 2 Channel 3 Channel 0 Channel 1 Channel 2 Channel 3 Channel 0 Channel 1 Channel 2 Channel 3

Unit No. 1

Unit No. 2

Unit No. 3

Unit No. 4

Unit No. 5

DM1663

Analog output unit address 80H, 81H 82H, 83H 84H, 85H 86H, 87H

DM1700 DM1701 DM1702 DM1703 DM1704

80H 82H 84H 86H

Channel 0 Channel 1 Channel 0 Channel 1

Unit No. 1 Unit No. 2

DM1763

Data memory

Address

1st send address (DM1800)

80H ($0080)

Number of send addresses (DM1801)

08H ($0008)

1st receive address (DM1802)

00H ($0000)

Number of receive addresses (DM1803)

28H ($0028)

9


Chapter 2 KL-N10V Setup ■ Relationship between addresses and DM numbers Address

DM No.

Unit No.

Type

Address

DM No.

1

KL-4AD

00H

DM1600 to 1603

1

KL-2DA

80H

DM1700 to 1701

2

KL-4AD

08H

DM1604 to 1607

2

KL-2DA

84H

DM1702 to 1703

3

KL-4AD

10H

DM1608 to 1611

3

KL-2DA

88H

DM1704 to 1705

4

KL-4AD

18H

DM1612 to 1615

4

KL-2DA

8CH

DM1706 to 1707

5

KL-4AD

20H

DM1616 to 1619

5

KL-2DA

90H

DM1708 to 1709

6

KL-4AD

28H

DM1620 to 1623

6

KL-2DA

94H

DM1710 to 1711

7

KL-4AD

30H

DM1624 to 1627

7

KL-2DA

98H

DM1712 to 1713

8

KL-4AD

38H

DM1628 to 1631

8

KL-2DA

9CH

DM1714 to 1715

Unit No. Type

2

9

KL-4AD

40H

DM1632 to 1635

9

KL-2DA

A0H

DM1716 to 1717

10

KL-4AD

48H

DM1636 to 1639

10

KL-2DA

A4H

DM1718 to 1719

11

KL-4AD

50H

DM1640 to 1643

11

KL-2DA

A8H

DM1720 to 1721

12

KL-4AD

58H

DM1644 to 1647

12

KL-2DA

ACH

DM1722 to 1723

13

KL-4AD

60H

DM1648 to 1651

13

KL-2DA

B0H

DM1724 to 1725

14

KL-4AD

68H

DM1652 to 1655

14

KL-2DA

B4H

DM1726 to 1727

15

KL-4AD

70H

DM1656 to 1659

15

KL-2DA

B8H

DM1728 to 1729

DM1660 to 1663

16

KL-2DA

BCH

DM1730 to 1731

17

KL-2DA

C0H

DM1732 to 1733

18

KL-2DA

C4H

DM1734 to 1735

19

KL-2DA

C8H

DM1736 to 1737

20

KL-2DA

CCH

DM1738 to 1739

21

KL-2DA

D0H

DM1740 to 1741

22

KL-2DA

D4H

DM1742 to 1743

23

KL-2DA

D8H

DM1744 to 1745

24

KL-2DA

DCH

DM1746 to 1747

25

KL-2DA

E0H

DM1748 to 1749

26

KL-2DA

E4H

DM1750 to 1751

27

KL-2DA

E8H

DM1752 to 1753

28

KL-2DA

ECH

DM1754 to 1755

29

KL-2DA

F0H

DM1756 to 1757

30

KL-2DA

F4H

DM1758 to 1759

31

KL-2DA

F8H

DM1760 to 1761

32

KL-2DA

FCH

DM1762 to 1763

16

10

KL-4AD

78H


Chapter 2 KL-N10V Setup â–  Reference table on No. of units and No. of addresses No. of KL-4AD units

Value in DM1803

No. of KL-2DA units

Value in DM1801

0

$0000

0

$0000

1

$0008

1

$0004

2

$0010

2

$0008

3

$0018

3

$000C

4

$0020

4

$0010

5

$0028

5

$0014

6

$0030

6

$0018

7

$0038

7

$001C

8

$0040

8

$0020

9

$0048

9

$0024

10

$0050

10

$0028

11

$0058

11

$002C

12

$0060

12

$0030

13

$0068

13

$0034

14

$0070

14

$0038

15

$0078

15

$003C

16

$0080

16

$0040

17

$0044

18

$0048

19

$004C

20

$0050

21

$0054

22

$0058

23

$005C

24

$0060

25

$0064

26

$0068

27

$006C

28

$0070

29

$0074

30

$0078

31

$007C

32

$0080

12

11


Chapter 2 KL-N10V Setup

3. While referring to step 2 above, set the KV Series base unit, the KL-N10V KL analog I/O adapter, and each switch of the connected I/O units. ■ Setting the KV Series

• •

2

Setting special utility relays (for communication speed, FINAL, etc.) Setting data memories (assignment of communication addresses)

■ Setting the KL-N10V KL analog I/O adapter

Setting the terminator (TERM)

■ Setting connected analog I/O units

KL-4AD

• • • •

Setting the communication address setup switch (ADRS) Setting the terminator selector switch (TERM.) Setting the setup switches (for communication speed, FINAL, etc.) Setting the input voltage selector switch (on input unit only)

Settings for a KL I/O unit become effective when the power is first turned off and then turned on again. Settings for a KV Series become effective at the rising edge of the utility relay 2700.

CAUTION •

4. Perform installation and wiring.

5. Create a program, and confirm its operation using the access window, etc. Set special utility relays on the KV Series. When special utility relay 2700 turns ON, the KL analog I/O function becomes available. Settings for the KV Series become effective at the rising edge of the utility relay 2700.

Now, connection and settings for the KL-N10V KL analog I/O adapter are completed.

12


Chapter 2 KL-N10V Setup

2.4

Response Speed This section describes how to calculate the response speed of the KL-N10V KL analog I/O adapter.

2.4.1

I/O response speed Each processing time is changed as follows.

During input (in case of minimum response time)

During output (in case of minimum response time)

PLC scan

PLC scan

3

Communication cycle

3

Communication cycle

2

4

Input I/O unit

Input I/O unit

5

1

1 2, 4 3 5

Input time constant Communication cycle time PLC scan time Output delay time

Communication cycle time The communication cycle time varies depending on the transmission speed as shown below. ■ Communication time Transmission speed 5 Mbit/s

When response Time per communication address is given When response When response 128 points is given is not given 195 µs 11.25 µs 15.5 µs 374 µs

21.7 µs

31.0 µs

625 Mbit/s

4.18 ms

84.6 µs

124 µs

156 Mbit/s

5.84 ms

337 µs

496 µs

2.5 Mbit/s

When responses will be given, set the ANS OFF switch on the I/O unit to OFF. Note 1: One communication address occupies 8 bits, and two communication addresses occupy 16 bits. Note 2: When responses are not given, the communication time becomes longer by as much as the timeout processing time. Communication cycle time = A + B + C where A: Wiring delay time = 1 µs x Cable length [km] x (Number of used addresses + 1) B: [Number of used addresses (with response) + 1] x Time per address (with response) C: [Number of used addresses (without response) + 1] x Time per address (without response)

13

12


Chapter 2 KL-N10V Setup

I/O response time The following delays are added to the I/O response time. Input delay time (time after input is given in a I/O unit until the PLC CPU recognizes the I/O unit is ON)

Input delay time =

2

KV processing Communication Input time + x N + + time cycle time constant

PLC scan time

Output delay time (time after PLC CPU gives an ON command until a I/O unit turns ON)

Output delay time =

KV processing PLC scan + time time

Output delay Communication x N + time in output + cycle time unit

Usually, N is 1. (When the VERIFY switch is set to ON, however, N is 2.) Note: The KL-N10V KL analog I/O adapter is not equipped with a verification function. The KL-N10V is sufficiently resistant to noise even while the verification function is always OFF.

14


Chapter 2 KL-N10V Setup

2.5

Communication Parameters This section describes the setting contents of data memories used to assign communication parameters. After assigning communication parameters, the communication condition is required to be set using special utility relays.

2.5.1

Communication settings

Utility relay No.

2700

Item

KL use OFF: Disable ON: Enable

Description When set to ON, the KL parameter setting is read at the rising edge of the relay and communication is started. The ON/OFF status of this relay is held against power interruption. If the setting is incorrect, relay No. 2700 for KL use turns OFF, error relay No. 2707 turns ON, error information is stored in data memory DM1804, and error 216 (KL setting error) is displayed in the access window on the KV series. When set to OFF, communication is interrupted. This relay sets the communication speed for the KL.

2701 Communication speed (baud rate) 2702

2704 2705

2706

2707

Communication speed 156 kbit/s 625 kbit/s 2.5 Mbit/s 5 Mbit/s

2701 OFF ON OFF ON

2702 OFF OFF ON ON

Be sure to set this relay to OFF when using the KL-4AD. Final address OFF: Final OFF ON: Final ON Input clear at disconnect (ERROR HOLD)

Be sure to set this relay to ON.

If this relay is set to ON, the input signal level is reset to "0" when a disconnect error occurs. If set to OFF, the input signal level is held even when a disconnect error occurs. (when KL-4AD is used.) This relay turns ON if there is an error in the KL-N10V communication KL setting error parameters stored in DM1800 to DM1803 when the relay No. 2700 for (while KL is KL use is set to ON. The error code at that time is stored in DM1804. stopped) When the setting becomes correct, this relay automatically turns OFF. This relay turns ON when an interrupt occurs with communication on a KL disconnect error module connected in the KL system. (while KL is When relay No. 2707 is forcibly set to OFF in a ladder program or when operating) the interrupted communication is restarted, this relay automatically turns OFF.

Note 1: When relay No. 2700 for KL use is set to ON once, the ON status is held even if the power is turned off. To change the communication setting in the KLN10V, set special utility relay No. 2700 in the program to OFF. Note 2:By using the MEMSW instruction, the output from a KL I/O unit can be held or cleared when power to the KV is turned on. ➮

2.5.2

For details, refer to “MEMSW instruction” (p.3-92) in Instruction Manual.

Communication area This section describes the communication area. In the KL-N10V KL analog I/O adapter, the communication area is stored in the following data memories. The stored communication area contains connection information and error information. Communication area

Area range

Data memories

Connection information

16 words

DM1810 to DM1825

Error information

1 word

DM1804

15

12


Chapter 2 KL-N10V Setup

2.5.3

Connection information Information is stored about connections of all addresses (00H to FFH). Bits turn ON for: • the communication address in input units on the communication line, • communication addresses which have returned receive responses in output units within the send range of the KL-N10V, • communication addresses which have returned receive responses in other KV, and • addresses in the send range of other master units.

2

Accordingly, information on communication addresses which are performing communication is also stored. Note: Even if data on a unit outside the receive address range is received, bits of corresponding communication addresses turn ON. ■ Connection information receive example When I/O units are connected to communication addresses 00H to 07H and 12H to 17H, connection information is stored in DM1810 to DM1825 (16 words). One data memory contains the connection information for 16 communication addresses.

ON

OFF

ON

OFF

Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Bit9 Bit10 Bit11 Bit12 Bit13 Bit14 Bit15 DM1810

00H 01H 02H 03H 04H 05H 06H 07H 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH

Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Bit9 Bit10 Bit11 Bit12 Bit13 Bit14 Bit15 DM1811

10H 11H 12H 13H 14H 15H 16H 17H 18H 19H 1AH 1BH 1CH 1DH 1EH 1FH

OFF

ON

Data memory

Address (hexadecimal)

DM1810

00H to 0FH ($0000 to $000F)

DM1811 : : DM1824

10H to 1FH ($0010 to $001F) : : E0H to EFH ($00E0 to $00EF)

DM1825

F0H to FFH ($00F0 to $00FF)

Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Bit9 Bit10 Bit11 Bit12 Bit13 Bit14 Bit15 DM1825

F0H F1H F2H F3H F4H F5H F6H F7H F8H F9H FAH FBH FCH FDH FEH FFH

Note: For settings where the final switch is set to ON for an input unit, bits corresponding to communication address FFH turn ON (even if the number of communication addresses is less than FFH).

16


Chapter 2 KL-N10V Setup

2.5.4

Error information Error information is stored in DM1804 (1 word). When an error occurs, the corresponding error code is stored in DM1804. â–  Error information example DM1804

#00000 (Normal status)

12

#00012 (When a disconnect error occurs)

17


Chapter 2 KL-N10V Setup

2.6

Error Codes This section describes the contents of error codes.

2.6.1

Error code table When an error occurs, a corresponding error code (decimal value) is written to DM1804. Error type

2 Remote communication errors

Error code

12

21 22

Remote communication parameter errors

23

24

25

26

Error name

Disconnect error

Send address set value error Send address count error Receive address set value error Receive address count error Send/receive address overlap error Receive/send address count 0 error

Contents

Countermeasures

Communication status for one of the modules is unstable, or a module which has been communicating has been disabled.

Be sure that the addresses, FINAL setting, B RATE 0/1 setting, and the communication line use range are within the allowed areas for each module. Be sure that noise does not enter due to wiring of the power cable in similar positions.

Communication parameters are incorrectly set. Make sure that address does not exceed the FFH. Set parameters correctly. The same address is set for both send and receive. The numbers of both send and receive addresses are set to 0.

Note: When an error occurs with the KL unit, a corresponding error code is displayed in the access window. However, a KV Series base unit will continue to run without stopping because of the error.

18


Chapter 3 KL Analog I/O Unit Setup and Installation 3.1

Introduction ........................................................................................... 20

3.2

Features ................................................................................................. 20

3.3

Mounting Method .................................................................................. 22


Chapter 3 KL Analog I/O Unit Setup and Installation

3.1

Introduction Note: The KL-4AD and KL-2DA cannot be connected to Keyence CPU unit KV-300 directly.

KL-2DA

KL-4AD

KV Series

KL-N10V

3 3.2

A/D conversion unit

D/A conversion unit

Features ■ A/D Conversion Unit KL-4AD The KL-4AD converts analog signals that are loaded from external devices to binary data, and sends this binary data to preset addresses. These addresses are set using the switches and 4-digit, 7-segment LED on the top panel of the KL-4AD. Main Functions • Baud rate: 5 Mbit/s, 2.5 Mbit/s, 625 kbit/s, 156 kbit/s •

Analog high-speed conversion mode ▲

Analog high-precision conversion mode switching function

4-channel

Input range switching function 0 to +10V, -10 to +10V, 0 to +5V, +1 to +5V, 0 to 20mA, 4 to 20mA

Analog value

Digital (DM) value display switching function

2-channel switching function

Voltage Current CPU unit Power supply unit

KV Series Memory

Transducer

KL-4AD

KL-N10V

Power Power factor

A/D convert

Voltage Current

Sending of digital data

20

Pre-amplifier Input of analog signal

Power Power factor


Chapter 3 KL Analog I/O Unit Setup and Installation ■ D/A Conversion Unit KL-2DA The KL-2DA converts binary data that is written to preset addresses to analog data, and sends this analog data to external devices. These addresses are set using the switches and 4-digit, 7-segment LED on the top panel of the KL-2DA. Main Functions • Baud rate: 5 Mbit/s, 2.5 Mbit/s, 625 kbit/s, 156 kbit/s

Online mode

Output range switching function

Analog value

Digital (DM) value display switching function Offline mode switching function 0 to +10V, -10 to +10V, 0 to +5V, +1 to +5V, 0 to 20mA, 4 to 20mA Inverter

CPU unit Power supply unit

KV Series Memory

KL-2DA

KL-N10V

Servo controller

D/A convert

Temperature recorder Receiving of digital data

Output of analog signal

Analog controller

21

13


Chapter 3 KL Analog I/O Unit Setup and Installation

3.3

Mounting Method This item describes how to mount the analog I/O unit.

Mounting Method The unit is mounted onto a DIN rail directly or using the slim mounting fixture. It can also be connected directly on a panel surface using the flat mounting bracket. ■ Mounting direction of the analog conversion unit

Flat mounting bracket

3

Flat mounting bracket

When mounted on panel

When mounted on wall

■ Mounting onto the DIN rail Hook each of the KL series units onto the DIN rail groove from above the rail. Press against the DIN rail until you hear it click. DIN rail Hook on claw

DIN rail

Removing method Remove the unit from the DIN rail while pulling out the DIN rail mounting claw in state A using a fine-tipped regular screwdriver.

Front view

A

Pull down using a screwdriver.

22

B


Chapter 3 KL Analog I/O Unit Setup and Installation â–  Mounting directly on a panel surface using the flat mounting bracket (OP-30589) 3

1 Onto panel surface Protrusion

Flat mounting bracket

13

3

2 M2.6 screw Onto panel surface

1. Insert the protrusion of the flat mounting bracket into the notch of the analog I/O unit. 2. Fasten the flat mounting bracket to the analog I/O unit with the M2.6 screw (provided). 3. Fasten the flat mounting bracket to the panel using the two M2.6 screws (provided). â–  Conversion unit mounting restriction Make sure that there is at least 10 mm of space between each unit. More than 10 mm

More than 10 mm

More than 10 mm

23


Chapter 3 KL Analog I/O Unit Setup and Installation

CAUTION

The units cannot be mounted as follows:

Incorrect

3

Mounted from below panel

24


Chapter 4 System Outline 4.1 4.1.1

Wiring Each of the Units ....................................................................... 26 System Configuration and Wiring ............................................................. 26

4.2

Terminal Connections .......................................................................... 29

4.3

Wiring with the Connector Cable ......................................................... 31

4.4

Maintenance .......................................................................................... 33


Chapter 4 System Outline

4.1

Wiring Each of the Units Be sure to use the KL units within the specifications shown below.

4.1.1

System Configuration and Wiring The system can be configured in various patterns using a different combination of analog conversion units, KL-T1 T-branch adapter and connector cables. â–  System configuration with only a trunk : Trunk : Branch KL-N10V SA SB SG

SA SB SG

4

SA

Analog I/O unit

Analog I/O unit

Analog I/O unit

Analog I/O unit

SB SG

Analog I/O unit

Terminator ON

Terminator ON * Use this configuration when wiring is for only a trunk.

â–  System configuration with trunk and branches (using T-branch adapter) : Trunk : Branch KL-N10V SA SB SG

SA SB SG SA1

Analog I/O unit Terminator ON

KL-T1

Analog I/O unit

26

Analog I/O unit

Analog I/O unit

Analog I/O unit

KL-T1

Analog I/O unit

SB1

Analog I/O unit

Analog I/O unit

SG1

Terminator ON

Analog I/O unit


Chapter 4 System Outline â–  System configuration with trunk and connector cable : Trunk : Branch KL-N10V

Analog I/O unit Terminator ON

Analog I/O unit

Analog I/O unit SA SB SG

SA SB SG SA

Analog I/O unit

Analog I/O unit

14

Analog I/O unit Terminator ON

Connection with connector cable (max. 10 units)

SB SG

27


Chapter 4 System Outline

Precautions When Wiring Analog I/O Units This item describes precautions when wiring the analog I/O unit. Be sure to read the following precautions before wiring. ■ Wiring analog I/O units Observe the following precautions when analog I/O units.

4

Wire input wire and output wire separately.

I/O signal wire may be influenced by high voltage or large currents when brought close to power wires, and may malfunction. Keep I/O wires at least 100 mm away from power wires.

Make sure that 24 VDC I/O leads are wired separately from 100 VAC and 200 VAC leads.

When ducts are used for wiring, make sure that the ducts are properly grounded.

Connect across I/O units as follows:

Shielded lead

Terminal plate I/O unit

Terminal plate I/O unit

Shielded lead

SA

SA

SA

SB

SB

SB

SG

SG

SG

Terminal plate I/O unit

■ Grounding precautions The KL series adopts comprehensive noise countermeasures. So, it can be used even if it is not grounded. However, note that it must be grounded when it is used in environments that are subject to a lot of electrical noise. Pay attention to the following points when grounding the KL series: •

Ground the SG terminal of the KL series separately from other equipment with a grounding resistance of up to 100 Ω.

If the KL series cannot be grounded separately from other equipment, share the same ground using electrical wires of the same length.

SG terminal

Other device

100 Ω max.

28


Chapter 4 System Outline

4.2

Terminal Connections

Applicable cable A special cable is required to connect the KL-N10V and the KL-4AD/2DA. Use a special cable for both the trunk line and branch line. OP-30591 (20 m) [Conductor cross-section area: 18 AWG (0.75 mm2)] OP-30592 (100 m) [Conductor cross-section area: 18 AWG (0.75 mm2)] Conductor cross-section area

Max. extendable distance

2

18 AWG (0.75 mm )

1200 m

■ Terminal layout diagram

14 SA SB SG

SA SB SG SA SB SG

SA

24V

24V

SG

SB

0V

C1

C2

C0

C3

1-

2-

0-

3-

I1+

I2+

I0+

I3+

V1+

V2+

V0+

IN

V3+

IN

0V

24 V power supply

0V

29


Chapter 4 System Outline

Connecting Crimped Terminals 1. Turn the power OFF. 2. Open the terminal cover.

Terminal cover

4 3. Connect the crimped terminal to the terminal. 1) Loosen the terminal screw using a Phillips screwdriver, and insert the crimped terminal. 2) Firmly tighten the terminal screw. ➎

For details on wiring, see "2.2 Terminal Wiring" on page 7.

Crimped terminal

4. Close the terminal cover until you hear it click.

30


Chapter 4 System Outline

4.3

Wiring with the Connector Cable The following describes the wiring of connector cables. Though the connector cable (OP-30590) has 12 connectors, only up to 10 analog I/O units can be connected.

Unit: mm

1320 120

14 10 = max. number of connectable I/O units

Note 1: Before connecting the connector cable, make sure that the pins on the connectors are facing the correct way and then insert into the connector as far as possible. Note 2: Consecutively connect connectors making sure that there are no unused connectors between I/O units. This is to limit the connection range within specified. Note 3: The connector cable (OP-30590) conveys the communications lines (SA, SB, SG) and power lines (12 to 24 V, 0 V). So, the communications line and power line need not be connected to the 2nd unit that is connected by the OP-30590.

31


Chapter 4 System Outline If less than 10 units are to be connected, the unused part of connector cable can be cut off. After cutting off, each cable can be used within the number of units limitation.

For 5 units

4

For 3 units

Note 1: An analog I/O unit can be connected to the connectors on both ends of a cut connector cable. If the cable is within the number of units restriction, the number of connected units can be increased from 5 to 7, or from 3 to 5. Note 2: When a slow baud rate has been set, 13 or more analog I/O units can be connected on the branch by a connector cable. In this case, make sure that the connector cable conforms to the following: Connector: MIL-standard compliant (MIL-C-83503) 10-pin connector (female) Inter-connector cable pitch: 120 mm

CAUTION

32

When 13 or more conversion units are connected by the connector cable, make sure that the total current consumption of the analog I/O units does not exceed 2A.


Chapter 4 System Outline

4.4

Maintenance This section describes how to inspect and clean units.

Inspection and Cleaning ■ Inspection When the analog I/O unit is used for a long time, connector connections, for example, become loose. Continued use in this condition may cause the analog I/O unit to malfunction. For this reason, periodically inspect the analog I/O unit and its wiring. Inspect the following items: •

Are the locks on the unit connectors unlocked or loose?

Are connector connections disconnected or loose?

Are the terminal screws on the terminal plates loose?

Are wiring cables between units and devices damaged?

If analog I/O units are mounted vertically, is at least 10 mm maintained between units?

14

■ Cleaning Dirt adheres to analog I/O units when they are used for a long time. Clean off dirt with a clean, dry cloth. Clean dust or dirt on fine parts such as connectors with a cotton wool bud. Before doing this, first remove the connectors. ■ Removing terminal plates Terminal plates can be removed from I/O units.

Terminal plate

Draw out the terminal plate while pressing the lock on both sides of the terminal plate.

1. Hold down

2. Pull out 1. Hold down

*

To mount terminal plates, push in the terminal plate until you hear it click.

Push in

33


Chapter 4 System Outline

4

34


Chapter 5 Specifications & Functions 5.1 5.1.1 5.1.2

Specifications ........................................................................................ 36 KL-4AD ..................................................................................................... 36 KL-2DA ..................................................................................................... 38

5.2 5.2.1

A/D Conversion Unit KL-4AD ............................................................... 39 Names and functions of parts .................................................................. 39

5.3 5.3.1

D/A Conversion Unit KL-2DA ............................................................... 45 Names and functions of parts .................................................................. 45

5.4 5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6

Setting Operation Modes ...................................................................... 49 Outline ...................................................................................................... 49 Data monitor mode ................................................................................... 50 Data monitor automatic switching mode .................................................. 50 Setup display mode .................................................................................. 51 Setup change mode ................................................................................. 52 Offline mode (KL-2DA only) ..................................................................... 54


Chapter 5 Specifications & Functions

5.1

Specifications The general specifications and special specifications of A/D conversion unit KL-4AD and D/A conversion unit KL-2DA are as follows.

5.1.1

KL-4AD General specifications Specifications

Item

5

36

Model

KL-4AD

Supply voltage

24 VDC±10%

Internal current consumption

150 mA max.

Operating temperature

0 to 60°C

Operating humidity

35 to 85%RH

Withstand voltage

1500 VAC for 1 minute (across all external input terminals, case and across all power terminals)

Vibration resistance

10 to 55 Hz, P-P 1.5mm max., 1G for 2 hours in X, Y and Z axes respectively when mounted on DIN rail

Insulating resistance

50 MΩ max. (across all external input terminals, case and across all power terminals)

Operating atmosphere

Dusty or corrosive atmospheres not allowed

Weight

Approx. 180 g

Dimension

W90 x H70 x D45 (mm)


Chapter 5 Specifications & Functions I/O specifications Specifications

Item Number of analog inputs

4 points (can be changed to 2 points by DIP switch setting)

Input range (resolution)

Voltage

0 to +5 V (1.25 mV 1/4000) +1 to +5 V (1 mV

1/4000)

0 to +10 V (2.5 mV 1/4000) -10 to +10 V (2.5 mV 1/8000) Current

Absolute maximum input

Input impedance

0 to 20 mA (5 µA

1/4000)

4 to 20 mA (4 µA

1/4000)

Current

±15 V

Voltage

30 mA

Current

1 MΩ

Voltage

250 Ω

Conversion speed

High-speed mode 200 µs/1 ch, Average mode 1.6 ms/1 ch

Overall precision 25°C

Current

Average mode 0.2% of F.S., High-speed mode 0.5% of F.S.

Voltage

Average mode 0.2% of F.S., High-speed mode 0.5% of F.S.

Current

Average mode 0.4% of F.S., High-speed mode 0.7% of F.S.

Voltage

Average mode 0.4% of F.S., High-speed mode 0.7% of F.S.

Overall precision 0 to 60°C

Insulating method

Photocoupler insulation (no insulation between channels)

Noise resistance

Normal mode 500 V p-p 1 µs 50 ns (by noise simulator)

15

Common mode 1500 V p-p 1 µs 50 ns (by noise simulator)

37


Chapter 5 Specifications & Functions

5.1.2

KL-2DA General specifications Item

5

Specifications

Model

KL-2DA

Supply voltage

24 VDC±10%

Internal current consumption

190 mA max.

Operating temperature

0 to 60°C

Operating humidity

35 to 85%RH

Withstand voltage

1500 VAC for 1 minute (across all external input terminals, case and across all power terminals)

Vibration resistance

10 to 55 Hz, P-P 1.5mm max., 1G for 2 hours in X, Y and Z axes respectively when mounted on DIN rail

Insulating resistance

50 MΩ max. (across all external input terminals, case and across all power terminals)

Operating atmosphere

Dusty or corrosive atmospheres not allowed

Weight

Approx. 180 g

Dimension

W90 x H70 x D45 (mm)

I/O specifications Item

Specifications

Number of analog inputs

2 points

Output range (resolution)

Voltage

0 to +5 V (1.25 mV 1/4000) +1 to +5 V (1 mV

1/4000)

0 to +10 V (2.5 mV 1/4000) -10 to +10 V (2.5 mV 1/8000) Current

0 to 20 mA (5 µA

1/4000)

4 to 20 mA (4 µA

1/4000)

Minimum load resistance

Voltage

1 KΩ

Maximum load resistance

Current

400 Ω

Conversion speed

250 µs/1 ch

Overall precision 25°C

Voltage

0.2% of F.S.

Current

0.2% of F.S.

Voltage

0.4% of F.S.

Current

0.4% of F.S.

Overall precision 0 to 60°C

Insulating method

Photocoupler insulation (no insulation between channels)

Noise resistance

Normal mode 500 V p-p 1 µs 50 ns (by noise simulator) Common mode 1500 V p-p 1 µs 50 ns (by noise simulator)

38


Chapter 5 Specifications & Functions

5.2

A/D Conversion Unit KL-4AD This section describes the names of parts on the KL-4AD and their functions and specifications.

5.2.1

Names and functions of parts SA SB SG

SA SB SG SA

SB SG

7. Terminator selector switch SA

SB

SG

C1

C0

1-

0-

I1+

I0+

V1+

V0+

15

IN

1. Digital display

2. Communications status indicator

3. Channel indicator 1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

8. Setup switch

4.

UP

5.

DOWN

6. SET UP

24V

24V

0V

C2

C3

2-

3-

I2+

I3+

V2+

V3+

IN

0V

24 V power supply 0V

Name

Description

24V, 0V

Power input terminal. Inputs 24 VDC.

SA, SB

Communications signal. Connected with SA and SB of other units.

SG

Ground lead of communications signal. Connects with shielded lead.

C0 to C3

Common terminals C0 to C3

0- to 3-

Differential input -

I1+ to I3+

Current input terminal. Differential input + (V+ and I+ are short-circuited at current input.)

V0+ to V3+

Voltage input terminal. Differential input +

39


Chapter 5 Specifications & Functions Description (according to modes)

Name 1. Digital display

2. Communications status indicator

5

3. Channel indicator

Displays the input data of the channel that is currently selected.

Data monitor automatic switching mode

Displays the input data of each channel at two seconds interval.

Setup display mode

Displays the preset parameters.

Setup change mode

Displays the parameters to be changed.

Error mode

Displays the error No.

SD

Lights (yellow) or blinks during send of data.

RD

Lights (yellow) during receive of data.

0ch

1ch

2ch

3ch

4. UP

5. DOWN

6. SET UP

SET UP

40

Data monitor mode

Data monitor mode

The LED corresponding to the currently displayed channel lights.

Setup display mode

All LEDs light.

Setup change mode

All LEDs blink.

Error mode

All LEDs blink.

Data monitor mode

Increments the channel to be monitored.

Data monitor automatic switching mode

Disabled

Setup display mode

Moves the parameter item to be displayed.

Setup change mode

Increments the parameter to be changed.

Error mode

Disabled

Data monitor mode

Decrements the channel No. to be monitored.

Data monitor automatic switching mode

Disabled

Setup display mode

Moves the parameter item to be displayed.

Setup change mode

Decrements the parameter to be changed.

Error mode

Disabled

Data monitor mode

Enters setup display mode. * If this key is held down for two seconds, the data monitor automatic switching mode is entered.

Data monitor automatic switching mode

Enters data monitor mode.

Setup display mode

If this key is released within two seconds, the data monitor mode is entered. * If this key is held down for two seconds, the setup change mode is entered.

Setup change mode

If this key is released within two seconds, the setup display mode is entered. * If this key is held down for two seconds, the parameter is rewritten and the setup display mode is entered.

Error mode

Enters the data monitor mode.


Chapter 5 Specifications & Functions Description

Name 7. Terminator selector switch

TERM.

Turns the terminator ON/OFF. Turn this switch ON with the units at the furthest ends of the trunk. Note that communications status becomes unstable if this switch on more than three units is turned ON. Set the terminator to OFF on all units within a branch.

ON OFF

8. Setup switch

B RATE 0 B RATE 1

Specifies the baud rate.

1 2

1 2

1 2

1 2

5 Mbit/s

2.5 Mbit/s (default)

625 kbit/s

156 kbit/s

ON OFF

1 2 ON OFF

Communications addresses are communicated consecutively from 00, 01, 02 (Hex) and so on. However, when the FINAL switch is set, 00 (Hex) is returned to after the final communications address is communicated. For example, if the FINAL switch is set to 10 (Hex), the communications addresses are communicated consecutively from 00, 01, 02 through to 0F and 10 and then back to 00 (Hex).

FINAL

3 ON OFF

00 (Hex), 01 (Hex), 02 (Hex), ····· 0F (Hex), 10 (Hex) Compare all of the send addresses on the KL units with the largest address No. on the input unit, and set the FINAL switch of the unit having the largest No. to ON. (default: OFF)

AVERAGE

ON

High-precision average processing mode (The average value of a value A/D-converted 8 times is taken as the input value.)

OFF

High-speed conversion mode (The value A/D-converted each time is taken as the input value.)

ON

Analog value display mode (The analog input value is displayed on the 7-segment LED.) [Example] "10.00" is displayed when +10 V is input.

OFF

Digital value display mode (The value obtained by converting to a digital value is displayed on the 7segment LED.) [Example] "4000" is displayed when ±10 V range input +10 V is input.

ON

2-channel input mode

4 ON OFF

V/mA

5 ON OFF

2ch ONLY

6 ON OFF

(Be sure to set to OFF.) OFF

4-channel input mode

For details on setup codes of input range, see page 52.

Note: When the FINAL switch of all units is set to OFF, communications is not started. If the FINAL switch on units whose address is not the final communications address is set to ON, communications with units whose address is a subsequent communications address is not possible.

CAUTION

Set the setup switches only when the power is turned OFF.

41

15


Chapter 5 Specifications & Functions ■ Example of wiring • We recommend using shielded cable as the input cable as it is less likely to be influenced by electrical noise. •

If 2-lead cable is used for input, short the "-" input and common terminals (C0, C1, C2, C3). *

*

In some operating environments, not shorting the common terminals (C0, C1, C2, C3) sometimes makes it less likely for the conversion unit to be influenced by electrical noise. The same applies when shielded cable is used; the conversion unit is sometimes and sometimes not less likely to be influenced by electrical noise if shielded cable is connected to the common terminals.

Example of voltage input at 0ch

V3+ I3+ I2+ C3 C2

• 0V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

• 24V

SB SA

SG

1 2 3 4 5 6

0-

Shielded lead

C1

C0

1-

I1+

2-

0-

Analog signal lead

3-

I1+

Voltage output device When voltage signal is connected

V2+

V0+ I0+

V1+

V0+

5

IN

IN

Terminal name

C0

Example of current input at 0 ch

V3+ V2+ I3+

• • •

0V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY 1 2 3 4 5 6

SG

42

SA

C0

C2

C3

2-

3-

I2+

I0+ I1+

0-

SB

Shielded lead

C1

C0

I1+

1-

0-

When current signal is connected

24V

V0+

Current output device

V1+

V0+

IN

IN

Terminal name


Chapter 5 Specifications & Functions Example of voltage input at 1 ch

V3+ I2+ 3C3 C2

• • 24V

1 2 3 4 5 6

SB SG

0V

C1

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

1-

Shielded lead

SA

C1

C0

1-

I1+

2-

0-

I1+

Analog signal lead

I3+

V2+

V0+ I0+

V1+

V1+ Voltage output device When voltage signal is connected

IN

IN

Terminal name

Example of current input at 1 ch

C1

V3+ I3+ I2+ 32C3 C2

• • 0V 24V

• SB SA

SG

1 2 3 4 5 6

1-

Shielded lead

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

C1

C0

1-

I1+

When current signal is connected

0-

I1+

I0+

Current output device

V2+

V0+ V1+

V1+

15

IN

IN

Terminal name

Example of voltage input at 2 ch

V3+ V2+ I3+

V2+ When voltage signal is connected

• •

C2

C3

2-

3-

I2+

Voltage output device Analog signal lead

I2+ 2-

Shielded lead

24V

0V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY 1 2 3 4 5 6

SA

SG

SB

C1

C0

1-

0-

I1+

I0+

V1+

V0+

IN

IN

Terminal name

C2

Example of current input at 2 ch

V3+ V2+

V2+

I3+

Current output device

Shielded lead

2-

0V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

C2

C3

2-

3-

I2+

When current signal is connected

I2+

1 2 3 4 5 6

24V

SA

SG

SB

C1

C0

1-

0-

I1+

I0+

V1+

V0+

IN

IN

Terminal name

C2

43


Chapter 5 Specifications & Functions Example of voltage input at 3 ch

Voltage output device Analog signal lead

I3+

When voltage signal is connected

V3+ C3

2-

3-

I2+

I3+

V2+

V3+

C2

Shielded lead

3-

0V 24V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY 1 2 3 4 5 6

SA

SG

SB

C1

C0

1-

0-

I1+

I0+

V1+

V0+

IN

IN

Terminal name

C3

Example of current input at 3 ch Terminal name

V3+ V2+

V3+

I3+

Current output device

3-

Shielded lead

C2

C3

2-

3-

I2+

When current signal is connected

I3+

0V

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY 1 2 3 4 5 6

• 24V

SA

SG

SB

C1

C0

1-

0-

I1+

I0+

V1+

V0+

IN

IN

5

C3

Note: When current is input to the conversion unit, short-circuit V0+ and 10+, V2+ and 12+, V3+ and 13+ on each channel.

44


Chapter 5 Specifications & Functions

5.3

D/A Conversion Unit KL-2DA This section describes the names of parts on the KL-2DA and their functions and specifications.

5.3.1

Names and functions of parts SA SB SG

SA SB SG SA

SB SG

7. Terminator selector switch SA

SB

SG

C1

C0

V1

V0

15

OUT

1. Digital display

2. Communications status indicator 1 2 3 4 5 6

3. Channel indicator

B RATE 0 B RATE 1 ANS OFF ERR HOLD V/mA OFF LINE

9. Offline mode indicator

8. Setup switch

4.

UP

5.

DOWN

6. SET UP 24V

ERR

0V

C2

C3

I1

I0

OUT

Error terminal

24V

0V

24 V power supply 0V

Name

Description

24V, 0V

Power supply input terminal. Inputs 24 VDC.

ERR

Error output terminal. The circuit across ERR and 0V turns ON when a line break error occurs. Loads up to 30 VDC, 0.1 A can be used.

SA, SB

Communications signal. Connected with SA and SB of other units.

SG

Ground lead of communications signal. Connects shielded lead.

V0, V1

Voltage output terminal

I0, I1

Current output terminal

C0 to C3

Common terminal

45


Chapter 5 Specifications & Functions Name

Description

1. Digital display

2. Communications status indicator

5

Displays the output data of the channel that is currently selected.

Data monitor automatic switching mode

Displays the output data of each channel at two seconds interval.

Setup display mode

Displays the preset parameters.

Setup change mode

Displays the parameters to be changed.

Error mode

Displays the error No.

Offline mode

Displays the current output value.

SD

Lights (yellow) or blinks during send of data.

RD

Lights (yellow) during receive of data.

3. Channel indicator 0ch

1ch

4. UP

5. DOWN

6. SET UP

SET UP

46

Data monitor mode

Data monitor mode

The LED corresponding to the currently displayed channel lights.

Setup display mode

All LEDs light.

Setup change mode

All LEDs blink.

Error mode

All LEDs blink.

Data monitor mode

Increments the channel to be monitored.

Data monitor automatic switching mode

Disabled

Setup display mode

Moves the parameter item to be displayed.

Setup change mode

Increments the parameter to be changed.

Error mode

Disabled

Offline mode

Increments data value to be output.

Data monitor mode

Decrements the channel No. to be monitored.

Data monitor automatic switching mode

Disabled

Setup display mode

Moves the parameter item to be displayed.

Setup change mode

Decrements the parameter to be changed.

Error mode

Disabled

Offline mode

Decrement data value to be output.

Data monitor mode

Enters setup display mode. * If this key is held down for two seconds, the data monitor automatic switching mode is entered.

Data monitor automatic switching mode

Enters data monitor mode.

Setup display mode

If this key is released within two seconds, the data monitor mode is entered. * If this key is held down for two seconds, the setup change mode is entered.

Setup change mode

If this key is released within two seconds, the setup display mode is entered. * If this key is held down for two seconds, the parameter is rewritten and the setup display mode is entered.

Error mode

Enters the data monitor mode.

Offline mode

Switches channels.


Chapter 5 Specifications & Functions Description

Name 7. Terminator selector switch

TERM.

ON OFF

8. Setup switch

B RATE 0 B RATE 1

Turns the terminator ON/OFF. Turn this switch ON with the units at the furthest ends of the trunk. Note that communications status becomes unstable if this switch on more than three units is turned ON. Set the terminator 4-channel input mode on all units within a branch to OFF. Specifies the baud rate.

1 2

1 2

1 2

1 2

5 Mbit/s

2.5 Mbit/s (default)

625 kbit/s

156 kbit/s

ON OFF

1 2 ON OFF

When data is received from input units or KL-N10V, output units send answers. If ANS OFF switch is set to ON, no answer is sent. ANS OFF

3 ON OFF

When two or more output units having the same address are connected, and the same output is output on two or more units, set the ANS OFF switch on only one unit to OFF, and set the other output units having the same address to ON. (default: OFF) If this switch is set to ON, the communications status indicator goes out regardless of communications status.

ERR HOLD

4 ON OFF

Selects the mode applied when a disconnection error occurs. If this switch is set to ON, output signal level is held when a disconnection error occurs. If this switch is set to OFF, output signal level is reset to “0” when a disconnection error occurs. (default: OFF) ON

Analog value display mode (The analog input value is displayed on the 7-segment LED.) [Example] "10.00" is displayed when +10 V is input.

OFF

Digital value display mode (The value obtained by converting to a digital value is displayed on the 7segment LED.) [Example] "4000" is displayed when ±10 V range input +10 V is input.

ON

Offline mode

V/mA

5 ON OFF

OFF LINE

Digital data is disabled, and any value (voltage, current) can be output from the unit by manual operation.

6 ON OFF

OFF

Normal operation

Before changing the range, set to regular operation (OFFLINE OFF). 9. Offline mode indicator

Lights in the offline mode.

OFF LINE

For details on setup codes of output range, see page 52.

Note: When the FINAL switch of all units is set to OFF, communications is not started. If the FINAL switch on units whose address is not the final communications address is set to ON, communications with units whose address is a subsequent communications address is not possible.

CAUTION

Set the setup switches only when the power is turned OFF.

47

15


Chapter 5 Specifications & Functions ■ Example of wiring Voltage output

OUT • • • 0V ERR

SA

24V

1 2 3 4 5 6

SG

SB

(Load side)

B RATE 0 B RATE 1 ANS OFF ERR HOLD V/mA OFF LINE

Shielded lead

-

C1

Voltage signal ch1 +

C2

C1

C0

C3

I1

V1

V1

I0

V0

V0 Shielded lead

C0

-

OUT

Terminal name

Voltage signal ch0 +

5 Current output OUT

ch0

Shielded lead

I1

C3

I1

V1

C3 Current signal

C2

+

C2

C0 C1

• • • 0V ERR 24V

B RATE 0 B RATE 1 ANS OFF ERR HOLD V/mA OFF LINE 1 2 3 4 5 6

ch1

-

• • • • • SB SG SA

48

Current signal

+

I0

I0

V0

OUT

Terminal name

Shielded lead (Load side)


Chapter 5 Specifications & Functions

5.4

Setting Operation Modes This section describes the operation modes and how to setup them.

5.4.1

Outline Analog I/O units KL-4AD and KL-2DA are provided with the following five modes. Select these modes on the SET UP switch. The KL-4AD and KL-2DA automatically enter the data monitor mode when they are turned ON.

Error mode SET UP

Error occurred!!

SET UP

Hold down for at least two seconds.

Power ON

15

Data monitor automatic switching mode

Data monitor mode SET UP SET UP

SET UP

Setup display mode (displays address and I/O range) SET UP

SET UP

Within two seconds. Setup change is discarded.

SET UP

Hold down for at least two seconds.

Hold down for at least two seconds. This completes setup.

Setup change mode (changes address and I/O range)

Number display Confirm the setup by these states.

Confirm the setup by these states.

Channel indicator

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

UP switch

Push switches

* This figure shows the KL-4AD.

DOWN switch

SET UP switch

49


Chapter 5 Specifications & Functions

5.4.2

Data monitor mode ■ To display the data monitor mode This mode is automatically displayed when the conversion unit is turned ON. This mode is for displaying the input data (KL-4AD) or output data (KL-2DA) value of the currently selected channel. KL-4AD 1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

■ To display other channels Press the UP switch or the DOWN switch. Each press of these switches change the channel. KL-2DA

5

Display the channel

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

KL-4AD 0ch

1ch

2ch

3ch

Note:In the 2-channel input mode (2ch ONLY of setup switch No. 6 is set to ON), the channel switches as follows: CO-1 C1-1

5.4.3

KL-2DA

0ch

1ch

Data monitor automatic switching mode The data of each channel is automatically switched and displayed every two seconds. ■ To display the data monitor automatic switching mode Hold the SET UP switch down for at least two seconds in the data monitor mode. The conversion unit enters the data monitor automatic switching mode.

Blinks

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

■ To return to the data monitor mode Press the SET UP switch again. The conversion unit returns to the data monitor mode. 1 2 3 4 5 6

50

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY


Chapter 5 Specifications & Functions

5.4.4

Setup display mode This mode is for displaying addresses and selecting the I/O range for each channel. ■ To enter the setup display mode Press the SET UP switch in the data monitor mode. The conversion unit enters the setup display mode. •

In this mode, the currently set address is displayed. (In this figure, address 08 is shown).

(Hex)

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

1 2 3 4 5 6

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

15

■ To display the I/O range of each channel Press the UP switch or the DOWN switch to display the range of the address or channel. Select the desired channel whose I/O range is to be displayed.

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

KL-4AD Ad08

C0-1

C1-1

C2-1

C3-1

KL-2DA C0-1

Address

C1-1

Address No.

Channel Setup code to display the I/O range

■ To return to the data monitor mode Press the SET UP switch. The conversion unit returns to the data monitor mode.

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

Note: If the offline mode is selected on the KL-2DA, the setup display mode cannot be selected.

51


Chapter 5 Specifications & Functions

5.4.5

Setup change mode This mode is for changing the address or the range of each channel. To change the setup, display the item whose setup is to be changed in the setup display mode, and hold the SET UP switch down for at least two seconds. 1. Press the SET UP switch in the data monitor mode to enter the setup display mode.

1 2 3 4 5 6

5

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

2. Press the UP switch or the DOWN switch to display the item whose setup is to be changed. *

Item to be set Ad: Address C0: Analog channel 0 (0ch) C1: Analog channel 1 (1ch) C2: Analog channel 2 (2ch) C3: Analog channel 3 (3ch)

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

3. Hold the SET UP switch down for at least two seconds. The number display starts to blink. This state indicates the setup change mode. • In the example on the right, the input range of channel 0 is being changed.

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

4. Press the UP switch or the DOWN switch to select the desired range. • Select the desired range from the setup codes in the table below.

52

Setup code

I/O range

0

0 to +10 V

1

-10 to +10 V

2

0 to +5 V

3

+1 to +5 V

4

0 to 20 mA

5

4 to 20 mA


Chapter 5 Specifications & Functions 5. Press the UP switch or the DOWN switch. •

The display blinks. Pressing the UP switch increments the displayed address, while pressing the DOWN switch decrements the displayed address.

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

6. Hold the SET UP switch down for at least two seconds to register the selected range. • •

To continue selecting another channel, repeat the procedure from step 2. When you have changed the range, the "-" display changes to "_". The newly set range is enabled when you next turn the unit ON.

15 1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

Note:If the offline mode is selected on the KL-2DA, the setup display mode cannot be selected. In the offline mode, the range preset in the normal mode is enabled. ■ To return to the data monitor mode Press the SET UP switch. The conversion unit returns to the data monitor mode.

1 2 3 4 5 6

B RATE 0 B RATE 1 FINAL AVERAGE V/mA 2ch ONLY

Note: The address and range newly set in the setup change mode will be enabled after the power is turned OFF and then back to ON.

53


Chapter 5 Specifications & Functions

5.4.6

Offline mode (KL-2DA only) If the setup switch No. 6 is set to ON, the conversion unit enters the offline mode. •

In this mode, you can disable the communications data and adjust the output data using the UP switch or the DOWN switch.

1 2 3 4 5 6

B RATE 0 B RATE 1 ANS OFF ERR HOLD V/mA OFF LINE

UP switch:

This switch increments the output data after D/A conversion on the display. Continuously holding down this switch increments the displayed output data at a faster rate.

DOWN switch:

This switch decrements the output data after D/A conversion on the display. Continuously holding down this switch decrements the displayed output data at a faster rate.

SET UP switch:

Used to switch the corresponding channels. Each press of this switch alternately selects between channel 0 and channel 1.

5

Note: If the conversion unit is reset in the offline mode, the value that was set using the UP switch or the DOWN switch will be cleared from memory.

54


Chapter 6 Programming 6.1 6.1.1 6.1.2 6.1.3

A/D Conversion ..................................................................................... 56 A/D conversion principles ......................................................................... 56 Processing of digital data ......................................................................... 57 Calculating the voltage or current value from digital data ........................ 58

6.2 6.2.1 6.2.2 6.2.3

D/A Conversion ..................................................................................... 59 D/A conversion principles ......................................................................... 59 Processing of digital data ......................................................................... 59 Converting voltage or current values to be output to digital data ............. 60

6.3 6.3.1 6.3.2 6.3.3

A/D D/A Conversion Tables .................................................................. 61 I/O characteristics .................................................................................... 61 Voltage conversion table .......................................................................... 62 Current conversion table .......................................................................... 64


Chapter 6 Programming

6.1

A/D Conversion

6.1.1

A/D conversion principles This section describes the A/D conversion process. Be sure to understand this before making ladder programs. Voltage KV CPU unit

KL-4AD

Adapter unit

Current Transducer Power

Power supply unit

4. Ladder program

KL-N10V

Power factor

2. A/D conversion

Voltage Current Pre-amplifier

3. Sends digital data

1. Inputs analog signal

Power Power factor

1. Analog signals (voltage or current) are input from an external device to the KL4AD. 2. These signals are A/D-converted by the KL-4AD. ➮ See "Voltage/Current conversion tables" on pages 62 to 65.

6

3. After A/D conversion, the KL-4AD sends the data to the adapter unit having the receive address that corresponds to a pre-assigned address. The following data is sent by the KL-4AD: Channel in use x 2 addresses (continuous 4 or 8 addresses) Note: The number of addresses is converted according to the selected channel in use. ➮ See page 3-7. 4. Actual input voltage or current values are calculated from this digital data using ladder program on the CPU unit currently connected to the adapter unit. •

The actual input voltage or current value can be calculated from the digital data. ➮

56

See "Calculating the voltage or current value from digital data" on page 58.

The digital data can be output to the KL-2DA as it is as an analog value for example if the address is set to the same value.


Chapter 6 Programming

6.1.2

Processing of digital data After A/D conversion unit KL-4AD converts the analog signal (voltage or current) to digital data, the digital data value is written to the input relay or data memory on the KV CPU corresponding to this address via the receive address that is preset on the adapter unit. The data to be sent to the KV CPU unit is described as 16 bits (valid bits: lower twelve bits) per 1 input channel on the KL-4AD, and is actually converted on the 16 input relays or data memory data register using the differences in adapter unit or setup modes.

Example When there is +10.00V input in the -10 to +10V input range After A/D conversion on the KL-4AD, the digital data becomes 4000. ➎ See "Voltage/Current conversion tables" on pages 62 to 65.

The bit information of this value to be sent to the CPU unit via the receive address of the adapter unit is as follows: Input relay/data memory

15 14 13 12 11 10 9 F E D C B A 9 0 0 0 0 1 1 1 (Minus data is "1111".)

*

8 8 1

7 7 1

6 6 0

5 5 1

4 4 0

3 3 0

2 2 0

1 1 0

0 0 0

2 + 2 + 2 + 2 + 2 + 2 = 4 0 0 0 11

10

9

8

7

16

6

When the input data is minus data, input 16-bit minus data.

Examples of processing using ladder program are as follows: •

KV CPU To store digital data that has been converted to DM1600 to DM0000 2002

DM1600

DM0000

LDA

STA

57


Chapter 6 Programming

6.1.3

Calculating the voltage or current value from digital data This section describes how to calculate the actual input voltage or current value in decimal from A/D converted digital data. ■ How to calculate analog-input voltage or current according to input range Input range

Setup code

Digital range

0 to +10 V

0

-10 to +10 V

1

0 to +5 V

2

0 to 4000

1.25 mV

0 to 20 mA

4

0 to 4000

5 µA

0 to 4000 -4000 to +4000

Resolution 2.5 mV 2.5 mV

Analog input voltage (mV) = digital data x resolution (mV) Analog input current (µA) = digital data x resolution (µA) Input range +1 to +5 V 4 to 20 mA

Setup code

Digital range

Resolution

3

0 to 4000

1 mV

5

0 to 4000

4 µA

Analog input voltage (mV) = digital data x resolution (mV) + offset value (1000 mV) Analog input current (µA) = digital data x resolution (µA) + offset value (4000 µA) ➮

6

See "Voltage conversion table" on page 62 and "Current conversion table" on page 64.

■ Resolution "Resolution" is the minimum analog input value by which digital data can be changed. For example, the resolution of the input range 0 to +10V is 2.5 mV. This means that digital conversion data changes if the analog input value changes by a minimum of 2.5 mV. If the analog data changes by only 2 mV, the digital data will not change. ■ How to calculate resolution Resolution = full-scale of input range ÷ digital value range

Example Input range is -10V to +10V Resolution = 20000 mV ÷ 8000 = 2.5 mV

Example Input range is 4 to 20mA Resolution = 16000 µA ÷ 4000 = 4 µA

58


Chapter 6 Programming

6.2

D/A Conversion

6.2.1

D/A conversion principles This section describes the D/A conversion principles. Be sure to understand this before making ladder program.

Power supply unit

KV CPU unit

Adapter

KL-2DA

Inverter

1. Ladder program

3. D/A conversion

Servo controller

KL-N10V

Temperature recorder

4. Outputs analog signal

2. Receives digital data

Analog controller

1. The voltage or current value to be output to an external device is converted to digital data by a ladder program on the CPU unit. ➎

See "Voltage conversion table" on page 62 and "Current conversion table" on page 64.

2. This digital data is sent to the KL-2DA that is assigned the address corresponding to the send address of the adapter unit. The KL-2DA receives data in a block of four consecutive addresses. 3. The KL-2DA carries out D/A conversion on the digital data.

16

4. The KL-2DA outputs the analog signal (voltage or current).

6.2.2

Processing of digital data The digital data that is written to the output relay or word device of the KV CPU corresponding to the send address preset to the adapter unit is sent to D/A conversion unit KL-2DA via the adapter unit. Here, the digital data is converted to analog signals (voltage or current) and output. The data to be received from the KV CPU unit is described as 16 bits (valid bits: lower 12 bits) per 1 input channel on the KL-2DA, and is actually converted on the 16 output relays or data memory data register using the differences in adapter unit or setup modes.

Example When +10.00V is output in the output range -10 to +10V The original digital data that is to be D/A-converted by the KL-2DA becomes 4000. ➎

See "Voltage conversion table" on page 62 and "Current conversion table" on page 64.

The bit information of this value to be sent to the KL-2DA via the send address of the adapter unit is as follows: Input relay data memory

15 14 13 12 11 10 9 F E D C B A 9 0 0 0 0 1 1 1 (Minus data is "1111".)

7 7 1

6 6 0

5 5 1

4 4 0

3 3 0

2 2 0

1 1 0

0 0 0

2 + 2 + 2 + 2 + 2 + 2 = 4 0 0 0 11

*

8 8 1

10

9

8

7

6

When the output data is minus data, input 16-bit minus data. KV CPU To convert digital data stored to DM0010 to DM1700 2002

DM0010

DM1700

LDA

STA

59


Chapter 6 Programming

6.2.3

Converting voltage or current values to be output to digital data This section describes how to convert to digital data the voltage or current value to be actually output in decimal after D/A conversion. ■ How to calculate analog-input voltage or current according to input range Output range

Setup code

Digital range

0 to +10 V

0

-10 to +10 V

1

0 to +5 V

2

0 to 4000

1.25 mV

0 to 20 mA

4

0 to 4000

5 µA

0 to 4000 -4000 to +4000

Resolution 2.5 mV 2.5 mV

Digital data = output voltage (mV) ÷ resolution (mV) Digital data = output current (µA) ÷ resolution (µA) Output range

Setup code

Digital range

Resolution

1 to 5 V

3

0 to 4000

1 mV

4 to 20 mA

5

0 to 4000

4 µA

Digital data = output voltage (mV) ÷ resolution (mV) - offset value (1000) Digital data = output current (µA) ÷ resolution (µA) - offset value (1000)

6

See "Voltage conversion table" on page 62 and "Current conversion table" on page 64.

■ Resolution "Resolution" is the minimum analog input value by which digital data can be changed. For example, the resolution of the input range 0 to +10V is 2.5 mV. This means that analog output changes by 2.5 mV if the digital data value changes by 1. ■ How to calculate resolution Resolution = full-scale of input range ÷ digital value range

Example Input range is -10V to +10V Resolution = 20000 mV ÷ 8000 = 2.5 mV

Example Input range is 4 to 20mA Resolution = 16000 µA ÷ 4000 = 4 µA Note:The KL-2DA ignores values outside of the range -4096 to +4095 that are written.

60


Chapter 6 Programming

6.3

A/D D/A Conversion Tables Refer to the following correlation diagrams and conversion tables when you are making an A/D conversion or D/A conversion program.

6.3.1

I/O characteristics The I/O characteristics are as follows: -10 to +10 V range

0 to +10 V range

Voltage value (V)

Voltage value (V)

+10 +8 10

+6 +4

8

+2 6

-4000 -3000 -2000 -1000 4

0

-2

1000

2000

3000 4000

Digital data

-4 2

-6

0

1000

2000

3000

4000

Digital data

-8 -10

+1 to +5 V range

0 to +5 V range

5

5

4

4

3

3

2

2 1

1 0

1000

2000

3000

Digital 4000 data

0

1000

2000

3000

4000

Digital data

4 to 20 mA range

0 to 20 mA range

Voltage value (mA)

Voltage value (mA) 20

20

18

18

16

16

14

14

12

12

10

10

8

8

6

6

4

4 2

2 0

16

Voltage value (V)

Voltage value (V)

1000

2000

3000

Digital 4000 data

0

1000

2000

3000

Digital 4000 data

Note 1: When analog input outside the input range is input to the KL-4AD, 0FFF (Hex) (+4095) is written if the value is a plus value and F000 (Hex) (-4096) is written if the value is a minus value. Note 2: The KL-2DA ignores values outside of the range -4096 to +4095 that are written. Note 3: Minus values are expressed as a 16-bit 2's complement.

61


Chapter 6 Programming

6.3.2

Voltage conversion table â–  Voltage Conversion Table Voltage range: -10 to +10V, 0 to +10V +10 +9 +8 +7 +6 +5 +4 +3 +2 +1 +0 -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10

6

.00 4000 3600 3200 2800 2400 2000 1600 1200 800 400 0 0 -400 -800 -1200 -1600 -2000 -2400 -2800 -3200 -3600 -4000

.10 4040 3640 3240 2840 2440 2040 1640 1240 840 440 40 -40 -440 -840 -1240 -1640 -2040 -2440 -2840 -3240 -3640 -4040

.20 4080 3680 3280 2880 2480 2080 1680 1280 880 480 80 -80 -480 -880 -1280 -1680 -2080 -2480 -2880 -3280 -3680 -4080

.30

.40

.50

.60

.70

.80

.90

3720 3320 2920 2520 2120 1720 1320 920 520 120 -120 -520 -920 -1320 -1720 -2120 -2520 -2920 -3320 -3720

3760 3360 2960 2560 2160 1760 1360 960 560 160 -160 -560 -960 -1360 -1760 -2160 -2560 -2960 -3360 -3760

3800 3400 3000 2600 2200 1800 1400 1000 600 200 -200 -600 -1000 -1400 -1800 -2200 -2600 -3000 -3400 -3800

3840 3440 3040 2640 2240 1840 1440 1040 640 240 -240 -640 -1040 -1440 -1840 -2240 -2640 -3040 -3440 -3840

3880 3480 3080 2680 2280 1880 1480 1080 680 280 -280 -680 -1080 -1480 -1880 -2280 -2680 -3080 -3480 -3880

3920 3520 3120 2720 2320 1920 1520 1120 720 320 -320 -720 -1120 -1520 -1920 -2320 -2720 -3120 -3520 -3920

3960 3560 3160 2760 2360 1960 1560 1160 760 360 -360 -760 -1160 -1560 -1960 -2360 -2760 -3160 -3560 -3960

Example If the voltage is +9.10 V, the digital data is 3640. Voltage integer column Numerical value for voltage down to second digit past the decimal point Digital data corresponding to voltage

+10 +9 +8

62

.00 4000 3600 3200

.10 4040 3640 3240

.20 4080 3680 3280


Chapter 6 Programming â–  Voltage Conversion Table Voltage range: 0 to +5V 5 4 3 2 1 0

.00 4000 3200 2400 1600 800 0

.10 4080 3280 2480 1680 880 80

.20

.30

.40

.50

.60

.70

.80

.90

3360 2560 1760 960 160

3440 2640 1840 1040 240

3520 2720 1920 1120 320

3600 2800 2000 1200 400

3680 2880 2080 1280 480

3760 2960 2160 1360 560

3840 3040 2240 1440 640

3920 3120 2320 1520 720

Example If the voltage is +4.10, the digital data is 3280. Voltage integer column Numerical value for voltage down to second digit past the decimal point Digital data corresponding to voltage

5 4 3

.00 4000 3200 2400

.10 4080 3280 2480

.20 3360 2560

â–  Voltage Conversion Table Voltage range: +1 to +5V 5 4 3 2 1

.00 4000 3000 2000 1000 0

.10 4100 3100 2100 1100 100

16

.20

.30

.40

.50

.60

.70

.80

.90

3200 2200 1200 200

3300 2300 1300 300

3400 2400 1400 400

3500 2500 1500 500

3600 2600 1600 600

3700 2700 1700 700

3800 2800 1800 800

3900 2900 1900 900

Example If the voltage is +4.10 V, the digital data is 3100. Voltage integer column Numerical value for voltage down to second digit past the decimal point Digital data corresponding to voltage

5 4 3

.00 4000 3000 2000

.10 4100 3100 2100

.20 3200 2200

63


Chapter 6 Programming

6.3.3

Current conversion table â–  Current Conversion Table Current range: 0 to 20mA 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

6

.00 4000 3800 3600 3400 3200 3000 2800 2600 2400 2200 2000 1800 1600 1400 1200 1000 800 600 400 200 0

.10 4020 3820 3620 3420 3220 3020 2820 2620 2420 2220 2020 1820 1620 1420 1220 1020 820 620 420 220 20

.20 4040 3840 3640 3440 3240 3040 2840 2640 2440 2240 2040 1840 1640 1440 1240 1040 840 640 440 240 40

.30 4060 3860 3660 3460 3260 3060 2860 2660 2460 2260 2060 1860 1660 1460 1260 1060 860 660 460 260 60

.40 4080 3880 3680 3480 3280 3080 2880 2680 2480 2280 2080 1880 1680 1480 1280 1080 880 680 480 280 80

.50

.60

.70

.80

.90

3900 3700 3500 3300 3100 2900 2700 2500 2300 2100 1900 1700 1500 1300 1100 900 700 500 300 100

3920 3720 3520 3320 3120 2920 2720 2520 2320 2120 1920 1720 1520 1320 1120 920 720 520 320 120

3940 3740 3540 3340 3140 2940 2740 2540 2340 2140 1940 1740 1540 1340 1140 940 740 540 340 140

3960 3760 3560 3360 3160 2960 2760 2560 2360 2160 1960 1760 1560 1360 1160 960 760 560 360 160

3980 3780 3580 3380 3180 2980 2780 2580 2380 2180 1980 1780 1580 1380 1180 980 780 580 380 180

Example If the current is 19.10 mA, the digital data is 3820. Current integer column Numerical value for current down to second digit past the decimal point Digital data corresponding to current

20 19 18

64

.00 4000 3800 3600

.10 4020 3820 3620

.20 4040 3840 3640


Chapter 6 Programming â–  Current Conversion Table Current range: 4 to 20mA 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4

.00 4000 3750 3500 3250 3000 2750 2500 2250 2000 1750 1500 1250 1000 750 500 250 0

.10 4025 3775 3525 3275 3025 2775 2525 2275 2025 1775 1525 1275 1025 775 525 275 25

.20 4050 3800 3550 3300 3050 2800 2550 2300 2050 1800 1550 1300 1050 800 550 300 50

.30 4075 3825 3575 3325 3075 2825 2575 2325 2075 1825 1575 1325 1075 825 575 325 75

.40

.50

.60

.70

.80

.90

3850 3600 3350 3100 2850 2600 2350 2100 1850 1600 1350 1100 850 600 350 100

3875 3625 3375 3125 2875 2625 2375 2125 1875 1625 1375 1125 875 625 375 125

3900 3650 3400 3150 2900 2650 2400 2150 1900 1650 1400 1150 900 650 400 150

3925 3675 3425 3175 2925 2675 2425 2175 1925 1675 1425 1175 925 675 425 175

3950 3700 3450 3200 2950 2700 2450 2200 1950 1700 1450 1200 950 700 450 200

3975 3725 3475 3225 2975 2725 2475 2225 1975 1725 1475 1225 975 725 475 225

Example If the current is 19.10 mA, the digital data is 3775. Current integer column Numerical value for current down to second digit past the decimal point Digital data corresponding to current

20 19 18

.00 4000 3750 3500

.10 4025 3775 3525

.20 4050 3800 3550

65

16


Chapter 6 Programming

6

66


Appendices Appendix A Troubleshooting ........................................................................... 68 KL-4AD ........................................................................................... 69 KL-2DA ........................................................................................... 69 Appendix B Error Codes .................................................................................. 70


Appendices

Appendix A

Troubleshooting The following tables summarize probable trouble that might occur and how to remedy these troubles. Refer to these tables when trouble occurs on the A/D and D/ A units. Cause

• Communications is down.

Broken communications line, faulty connections or short-circuit

Rewire correctly.

• Er12 blinks.

Wiring distance is outside specification.

Wire within specification.

Baud rate was changed midway.

When baud rate is changed, turn power OFF then ON again.

T-branch connection is made without using KL-T1.

Use KL-T1 without using the T-branch.

Number of connected units on branch under KL-T1 exceeds limit.

Wire within specification.

Trunk and branch are outside specification.

Wire within specification.

Trunk and branch are loop-wired.

Wire the trunk and the branch as the described in the specifications.

Non-specification line is used for communications line.

Wire entirely with specification KPEV-SB (1P) line.

FINAL is set on the wrong unit.

Reset FINAL on the appropriate unit.

Terminator is set on wrong unit.

Reset terminator on appropriate unit.

Supply voltage of connected unit has dropped.

Keep the supply voltage of all units to within specification.

Appendices

Symptom

Remedy

Communications address settings Set discrete communications are duplicated. addresses. Broken communications line, short-circuit or SA and SB connected in reverse

Rewire correctly.

Wrong baud rate

Correct the setup switch and settings of each unit.

FINAL is set on the wrong unit.

Reset FINAL on the appropriate unit.

Supply voltage of all units has fallen.

Keep the supply voltage of all units to within specification.

ANS OFF DIP switch on KL-2DA is ON.

Set ANS OFF DIP switch to OFF.

Only communications status indicator RD does not light.

FINAL is set on the wrong unit.

Reset FINAL on the appropriate unit.

Only communications status indicator SD does not light.

The number of send addresses preset on the master node is 00 (Hex).

Set the number of send addresses to a value other than 00 (Hex).

Communications status indicators SD and RD do not light.

68


Appendices

KL-4AD Symptom

Cause

Input values are not Analog input cable is not concorrectly displayed. nected correctly. The input range is not set or is wrong. Input values are not No communications with master loaded to PLC. PLC Cannot input on channels CH2 and CH3.

Remedy Check wiring referring to wiring example on page 42. Check and reset the input range of each channel. Remedy according to "Communications not possible" item.

The 2-channel mode is set on the Set setup switch 6 to OFF, and DIP switch. turn power ON again.

KL-2DA Symptom

Cause

Remedy

Output values from No communications with master PLC are not PLC displayed correctly. The device is in the offline mode.

Remedy according to "Communications not possible" item.

Output data analog The output range is not set or is values are incorwrong. rect.

Check and reset the output ranges of each channel.

Appendices

Set setup switch 6 to OFF, and turn power ON again.

1

Note: If addresses or ranges have been changed, you must turn the power OFF then ON again.

69


Appendices

Appendix B

Error Codes The following tables describe the error codes that are output when an error occurs.

Appendices

Error Code Table

70

Category

Code

Name

Description

Remote communications error

12

Disconnection error Communications unit in an unstable communications status exists on the communications line. Or, communications is no longer possible on the communications unit that was communicating.

Remote communications parameter error

21

Communications address set value error

23

Receive address set value error

System error

95

EEPROM write error

96

Remote communications memory error

61

Gain data error

62

Range setup error

63

Offset data error

Remedy Make sure that addresses, FINAL and B RATE 0/1 settings of each communications unit and operating range of communications line are within limits. Also, make sure that the communications line is not subject to electrical noise due, for example, to sharing of conduit with power line.

Preset communications Set to correct values. parameter is incorrect. Set address to not exceed FFH.

Main unit is not operating normally.

Inspection and repair are required.


Appendices

Appendices

1

71


Appendices

Appendices

72


B41-001

Reference Manual Analog I/O Unit for Visual PLC KV Series

KL-N10V/4AD/2DA

Worldwide Headquarters KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: 81-6-6379-2211 FAX: 81-6-6379-2131

KEYENCE CORPORATION OF AMERICA PHONE: 201-930-0100 FAX: 201-930-0099

KEYENCE (MALAYSIA) SDN BHD PHONE: 03-252-2211 FAX: 03-252-2131

KEYENCE (UK) LIMITED PHONE: 01908-696900 FAX: 01908-696777

KEYENCE (THAILAND) CO., LTD PHONE: 02-369-2777 FAX: 02-369-2775

KEYENCE DEUTSCHLAND GmbH PHONE: 0711-79 73 71-0 FAX: 0711-797 77 99

KEYENCE TAIWAN CO., LTD PHONE: 02-2627-3100 FAX: 02-2798-8925

KEYENCE FRANCE S.A. PHONE: 01 47 92 76 76 FAX: 01 47 92 76 77

KEYENCE KOREA CORPORATION PHONE: 02-563-1270 FAX: 02-563-1271

KEYENCE SINGAPORE PTE LTD PHONE: 392-1011 FAX: 392-5055 © KEYENCE CORPORATION, 1999 KL-RM-1-1299 Printed in Japan

KL-N10V/4AD/2DA Reference Manual

Specifications are subject to change without notice.

Note: Please read the attached Quick Guide first .


http://www.veederline.com.au/mmedia/Keyence/kl_man