Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 1 of 8

CDN060 Series DeviceNet Gateway User Manual, pages 1 to 9

Pages 1 to 9 of 71

The original document is the PDF (3.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the MKS CDN066

Page 1

CDN060 Series DeviceNet Gateway User Manual

CDN066 – 1 isolated RS232 channel CDN067 – 1 isolated RS422/RS485 channel

Page 2

CDN060 User Manual revision 1.00 Table of Contents

CHAPTER 1 – OVERVIEW ......................................................................................................................................................4 CHAPTER 2 – INSTALLATION.............................................................................................................................................5 M OUNTING................................................................................................................................................................................... 5 W IRING......................................................................................................................................................................................... 6 DeviceNet Interface ..............................................................................................................................................................6 Serial Channel Interface......................................................................................................................................................6 Wiring Examples ...................................................................................................................................................................7 CHAPTER 3 – THEORY OF OPERATION.........................................................................................................................9 GATEWAY OPERATION............................................................................................................................................................... 9 DeviceNet Object Model......................................................................................................................................................9 DeviceNet Interface ............................................................................................................................................................10 Serial Channel Interface....................................................................................................................................................11 Asynchronous Serial Communictaion .............................................................................................................................. 12 Status Information............................................................................................................................................................. 12 Receiving Messages.......................................................................................................................................................... 13 Stream Mode................................................................................................................................................................ 13 Block Mode ................................................................................................................................................................. 13 Returning Received Data............................................................................................................................................. 14 Padding Message Data................................................................................................................................................. 15 Resending Received Data............................................................................................................................................ 15 Transmitting Messages ..................................................................................................................................................... 16 Synchronization ................................................................................................................................................................ 16 Receive Sequence Number.......................................................................................................................................... 16 Transmit Sequence Number........................................................................................................................................ 16 Synchronous Handshake Protocol............................................................................................................................... 17

CHAPTER 4 – GATEWAY CONFIGURATION..............................................................................................................19 CONFIGURE DEVICE NET INTERFACE ...................................................................................................................................... 19 DeviceNet Baud Rate Switch.............................................................................................................................................19 MAC ID Switches................................................................................................................................................................19 Serial Channel Baud Rate / Option Switch.....................................................................................................................20 POWER UP GATEWAY............................................................................................................................................................... 20 DeviceNet Status LEDs ......................................................................................................................................................20 Serial Channel Status LEDs ..............................................................................................................................................21 Register EDS File................................................................................................................................................................21 CONFIGURE SERIAL CHANNEL................................................................................................................................................ 22 CONFIGURE DEVICE NET MASTER SCANLIST ........................................................................................................................ 27 Poll Consume Size...............................................................................................................................................................27 Poll Produce Size................................................................................................................................................................27 CHAPTER 5 – DEVICENET SPECIFICATIONS ............................................................................................................28 DEVICE NET M ESSAGE TYPES.................................................................................................................................................. 28 DEVICE NET CLASS SERVICES ................................................................................................................................................. 28 DEVICE NET OBJECT CLASSES................................................................................................................................................. 28 IDENTITY OBJECT ............................................................................................................................................................... 29 ROUTER OBJECT .................................................................................................................................................................. 30 DEVICENET OBJECT ........................................................................................................................................................... 31 ASSEMBLY OBJECT ............................................................................................................................................................ 32 CONNECTION OBJECT ....................................................................................................................................................... 33 SERIAL STREAM OBJECT ................................................................................................................................................. 35

MKS Instruments, Inc.

D.I.P. Products Group

2

Page 3

CDN060 User Manual revision 1.00

CHAPTER 6 – RSNETWORX CONFIGURATION EXAMP LE .............................................................................37 CONFIGURE DEVICE NET INTERFACE ...................................................................................................................................... 38 CONNECT & REGISTER EDS FILE .......................................................................................................................................... 38 CONFIGURE SERIAL CHANNEL................................................................................................................................................ 46 CONFIGURE DEVICE NET MASTER SCANLIST ........................................................................................................................ 53 CHAPTER 7 – CONFIGURATION EXAMPLES .............................................................................................................59 EXAMPLE 1 – RECEIVING FIXED-LENGTH DATA................................................................................................................. 59 Barcode Scanner.................................................................................................................................................................59 CDN066 Gateway...............................................................................................................................................................59 EXAMPLE 2 – RECEIVING PRE -DELIMITED DATA................................................................................................................ 61 Barcode Scanner.................................................................................................................................................................61 CDN066 Gateway...............................................................................................................................................................61 EXAMPLE 3 – RECEIVING POST -DELIMITED DATA.............................................................................................................. 63 Barcode Scanner.................................................................................................................................................................63 CDN066 Gateway...............................................................................................................................................................63 EXAMPLE 4 – TRANSMITTING FIXED-LENGTH DATA.......................................................................................................... 65 Serial Printer.......................................................................................................................................................................65 CDN066 Gateway...............................................................................................................................................................65 EXAMPLE 5 – TRANSMITTING VARIABLE-LENGTH DATA.................................................................................................. 67 Serial Printer.......................................................................................................................................................................67 CDN066 Gateway...............................................................................................................................................................67 CHAPTER 8 – TROUBLES HOOTING ...............................................................................................................................68 APPENDIX A – PRODUCT SPECIFICATIONS ..............................................................................................................69 DEVICE NET INTERFACE ........................................................................................................................................................... 69 SERIAL CHANNEL ...................................................................................................................................................................... 69 ENVIRONMENTAL ...................................................................................................................................................................... 69 APPENDIX B – DEVICEN ET TEMPLATE.......................................................................................................................70 APPENDIX C – ASCII CHARACTER CODES ................................................................................................................71

MKS Instruments, Inc.

D.I.P. Products Group

3

Page 4

CDN060 User Manual revision 1.00

Chapter 1 – Overview This document describes how to install, configure, and operate the CDN060 series of serial to DeviceNet gateways. The following products are covered in this user manual: Part Number CDN066 CDN067

Serial Channel RS232 full duplex RS422 full duplex / RS485 half duplex

The CDN060 gateways allow you to easily interface a wide variety of serial devices to any DeviceNet industrial control network. Each gateway contains the feature-packed D.I.P. DeviceNet core. Standard CDN060 products are tightly packaged and sealed in a rugged industrial case. Board-level and customized gateways are also available upon request. Serial Status LEDs (RX, TX)

Isolated Serial Channel (male DB9 connector)

Serial Baud Rate Rotary Switch

Mounting Holes

DeviceNet MAC ID Rotary Switches

DeviceNet Status LEDs (NET, MOD) DeviceNet Baud Rate Rotary Switch

DeviceNet Channel (male 5-pin micro connector)

Product Features • • • • • • • • • • • • • • •

CDN066 CDN067

500V isolated serial channel RS232 with RTS/CTS flow control RS422 full duplex (4-wire) with terminating resistors RS485 half duplex (2-wire) with terminating resistor, repeater control signal XON/XOFF software flow control 300, 600, 1200, 2400, 4800, 9600, 19200 bps serial data rates Configurable parity 64 byte transmit and receive FIFO buffers Powered from DeviceNet 24VDC Loss-of-ground protection circuitry DeviceNet slave mode supports POLL and EXPLICIT messages Rotary switches set DeviceNet baud rate and MAC ID Rotary switch sets serial data rate 4 bi-color status LEDs Encapsulated circuit board in compact industrial case

MKS Instruments, Inc.

D.I.P. Products Group

X X

X X X X X X X X X X X

X X X X X X X X X X X X X

4

Page 5

CDN060 User Manual revision 1.00

Chapter 2 – Installation This chapter describes how to install and connect the CDN060 gateway to a DeviceNet network and your serial device. Mounting Mount on a horizontal or vertical surface. While the RTV encapsulation protects its circuitry, the CDN060 serial channel connector is not rated for NEMA4 / IP65 environments. Mount the gateway in a suitable location or enclosure for your application. The gateway will generate up to 1.4W of heat, so provide sufficient clearance and airflow to maintain 0°C to 70°C operating temperature range. Use two screws (not provided) in the 0.19 inch mounting holes shown below to fasten the CDN060 to the mounting surface. 1.25

All dimensions are inches

0.65

0.45 3.80 4.30 3.30 0.50 0.12 Mtg. Holes (2) 0.19 DIA.

1.225

1.225

0.725 0.625 DIA. On Case Wall

0.70 0.542 1.10

MKS Instruments, Inc.

D.I.P. Products Group

5

Page 6

CDN060 User Manual revision 1.00

Wiring The CDN060 requires two connections – one to the DeviceNet network (male 5-pin micro connector) and one to the target serial device (male DB9 connector). Follow all applicable electrical codes in your area when mounting and wiring any electrical device. All power is received from the DeviceNet network. The CDN060 draws up to 50mA from the 24VDC power supply. Select your DeviceNet cables and power supply so that it can provide sufficient current for all networked devices at their peak operating power. DeviceNet Interface Male 5-Pin Micro Connector DRAIN

V+

CAN_L VPIN 1 2 3 4 5

CAN_H SIGNAL DRAIN V+ VCAN_H CAN_L

COLOR NONE RED BLACK WHITE BLUE

DESCRIPTION Cable shield or drain wire. DeviceNet 24VDC(+) power. DeviceNet 24VDC(-) power. Communication signal. Communication signal.

Serial Channel Interface Male DB9 Serial Connector

1

2

6

3

7

4

8

5

9

CDN066 (RS232) PIN 1 2 3 4 5 6 7 8 9

SIGNAL NC RXD TXD NC GND NC RTS CTS NC

MKS Instruments, Inc.

DESCRIPTION No Connect. Do not connect any wires to NC pins. Receive Data. RS232 input signal. Transmit Data. RS232 output signal. No Connect. Ground. Common for RS232 signals. No Connect. Request To Send. RS232 output signal. Clear To Send. RS232 input signal. No Connect.

D.I.P. Products Group

6

Page 7

CDN060 User Manual revision 1.00

CDN067 (2-WIRE RS485 configuration) PIN 1 2 3

SIGNAL DATAB DATAA TR

4 5 6 7 8 9

NC NC NC NC NC RC

DESCRIPTION RS485 differential data I/O signal. RS485 differential data I/O signal. Internal 120Ω Terminating Resistor, connected between pins 1 and 3. Connect pin 2 to pin 3 to terminate DATA signals. Use at end of long twisted-pair cable. No Connect. Do not connect any wires to NC pins. No Connect. No Connect. No Connect. No Connect. Repeater Control. Output signal for controlling a half-duplex RS485 repeater. Active low when gateway is receiving.

CDN067 (4-WIRE RS422 configuration) PIN 1 2 3

SIGNAL RXB RXA TR

4 5 6 7 8

LOOP LOOP TXB TXA TR2

9

NC

DESCRIPTION RS422 differential receive data input signal. RS485 differential receive data input signal. Internal 120Ω Terminating Resistor, connected between pins 1 and 3. Connect pin 3 to pin 2 to terminal RX signals. Use at end of long twisted-pair cable. Connect pin 4 to pin 5 to enable transmitter on pins 6 & 7. Connect pin 4 to pin 5 to enable transmit on pins 6 & 7. RS422 differential transmit data output signal. RS422 differential transmit data output signal. Internal 120Ω Terminating Resistor, connected between pins 6 and 8. Connect pin 8 to pin 7 to terminal TX signals. Use at end of long twisted-pair cable. No Connect. Do not connect any wires to NC pins.

Wiring Examples The following are typical CDN060 gateway wiring configurations. Your RS232 or RS422/485 interface may vary. Refer to your device’s documentation for the required data and control signals. Simple RS232 Interface

RS232 Serial Device

2 RXD 3 TXD 5 GND

MKS Instruments, Inc.

RXD 2 TXD 3 GND 5

CDN066

1 2 3 4 5

D.I.P. Products Group

DRAIN VDC+ VDCCAN H CAN L

7

Page 8

CDN060 User Manual revision 1.00

RS232 Interface, HW Flow Control

RS232 Serial Device

2 3 5 7 8

RXD TXD GND RTS CTS

RXD TXD GND RTS CTS

2 3 5 7 8

CDN066

1 2 3 4 5

DRAIN VDC+ VDCCAN H CAN L

1 2 3 4 5

DRAIN VDC+ VDCCAN H CAN L

Simple RS485 Interface

RS485 Serial Device

DATAB DATAA

DATAB 1 DATAA 2 TR

120

3

CDN067

Connect pins 2 & 3 to terminate cable

RS485 Interface with Repeater

DATAB DATAA

DATAB 1 DATAA 2 120

RX/TX Control

TR

3

RC

9

Repeater

CDN067

1 2 3 4 5

DRAIN VDC+ VDCCAN H CAN L

Connect pins 2 & 3 to terminate cable

RS422 4-Wire Interface

RS422 Serial Device

TX B TX A

RXB RXA

1 2

RX B

TR LOOP LOOP TXB

3 4 5 6

TXA TR2

7 8

RX A

120

CDN067

1 DRAIN 2 VDC+ 3 VDC4 CAN H 5 CAN L

120

Connect pins 2 & 3 (RX) and pins 7 & 8 (TX) to terminate cables. Connect pins 4 & 5.

MKS Instruments, Inc.

D.I.P. Products Group

8

Page 9

CDN060 User Manual revision 1.00

Chapter 3 – Theory of Operation This chapter describes how the CDN060 gateway operates. You should have a working knowledge of DeviceNet and asynchronous serial communications before continuing. The Open DeviceNet Vendors Association (www.odva.com) is a good source for general DeviceNet information. Refer to your serial device documentation for its protocol information. Gateway Operation The CDN060 gateway receives asynchronous serial messages over its serial channel and returns the received bytes as input data to the DeviceNet master. The gateway transmits bytes sent as output data from the DeviceNet master out its serial channel. The following diagram shows the major gateway components.

DeviceNet Poll Command output data

DC:DC Power Conversion • 24VDC DeviceNet power input • VDC for Core & DeviceNet channel • isolated VDC for serial channel

5-pin male micro connector

Male DB9 connector Gateway Core • microcontroller • RAM • Flash ROM

Devicenet Poll Response input data

DeviceNet Channel • 24VDC power • communications

DeviceNet Object or Rotary Switches Configures the DeviceNet interface baud rate and MAC ID address.

serial messages Serial Channel • communications • flow control

Serial Stream Object

Configures the serial channel. Receives and transmits serial messages. Controls optional synchronization.

DeviceNet Object Model The DeviceNet Specification defines an Object Model that consists of Objects and Attributes. An Object is a predefined software process, and an Object Attribute is a data value used or generated by that process. An Object Instance is one occurrence of an Object, operating on its unique set of Attribute values. The CDN060 gateway has six different Object Classes, or types. Five are standard objects defined by the DeviceNet Specification (Identity, Router, DeviceNet, Assembly, Connection). One is a device-specific object defined for the CDN060 gateway (Serial Stream). The Serial Stream Object configures and controls the serial channel. It receives and packages serial data into DeviceNet input bytes, and transmits DeviceNet output bytes as serial data. Chapter 5 contains detailed information on each DeviceNet object class, instance, and their associated attributes. MKS Instruments, Inc.

D.I.P. Products Group

9