SERIAL INTERFACE....................................................................................................................................................7
SYSTEM CONFIGURATION..........................................................................................................................................8
CONFIGURING THE GATEWAY ...................................................................................................................................8
SERIAL INTERFACE..................................................................................................................................................11
MAC ID Switches...............................................................................................................................................13
POWER UP GATEWAY..............................................................................................................................................13
DeviceNet Status LEDs......................................................................................................................................13
Serial Channel Status LEDs...............................................................................................................................14
Device Status – Attribute 5.................................................................................................................................16
Serial Number – Attribute 6...............................................................................................................................16
Allocation Information – Attribute 5..................................................................................................................18
State – Attribute 1 ..............................................................................................................................................20
Connection ID’s – Attributes 4 and 5 ................................................................................................................20
Production and Consumed Sizes – Attributes 7 and 8.......................................................................................21
Watch Dog Timeout Activity – Attribute 12.......................................................................................................21
USER DEFINED (SERIAL STREAM)OBJECTCLASS CODE:100(0X64)..................................................................21
Receive Data – Attribute 3.................................................................................................................................22
Transmit Data – Attribute 4...............................................................................................................................22
Flow Control – Attribute 8.................................................................................................................................23
No Delimiters:....................................................................................................................................................25
SERIAL CHANNEL....................................................................................................................................................28
APPENDIX B – ASCII CHARACTER CODES ....................................................................................................29
MKS Instruments, Inc. Page 3 of 30
ToolLink User Manual
Chapter 1 – Overview
This document describes how to install, configure, and operate the CDN46X series of serial to DeviceNet
gateways. The following products are covered in this user manual:
Part Number FW Rev. Serial Channel
CDN466 1.01 or higher RS232 full duplex
CDN467 1.01 or higher RS485 half duplex
The CDN46X gateways allow you to easily interface a wide variety of serial devices to any DeviceNet
industrial control network. Standard CDN46X products are tightly packaged and sealed in a rugged
industrial case. Board-level and customized gateways are also available upon request
Hardware
Receive Status LED (RX)
STATE DESCRIPTION
OFF Not receiving data
RED BLINK Not defined
RED Receive error
GREEN BLINK Receiving data
GREEN Not defined
Serial Baud Rate
Rotary Switch
DeviceNet Address
Rotary Switches
Transmit Status LED (TX)
STATE DESCRIPTION
OFF Not transmitting data
RED BLINK Not defined
RED Transmit error
GREEN BLINK Transmitting data
GREEN Not defined
*Pins 4 and 6 connected internally.
**Connect pins 2 & 3 to terminate RS485
with 120Ω resistor.
.
1
Isolated Serial Channel
(male DB9 connector)
52 3 4
96 7 8
DeviceNet Data Rate
Rotary Switch
DeviceNet Status LED (NET)
STATE DESCRIPTION
OFF No power
RED BLINK Configuration error
RED Unrecoverable error
GREEN BLINK Not allocated to a master
GREEN Allocated to a master
Module Status LED (MOD)
STATE DESCRIPTION
OFF No power
RED BLINK Configuration error
RED Unrecoverable error
GREEN BLINK Not defined
GREEN Normal operation
DeviceNet Channel
(male 5-pin micro connector)
PIN SIGNAL
1 SHIELD
2 V+
3 V 4 CAN H
5 CAN L
5
3 4
1 2
MKS Instruments, Inc. Page 4 of 30
ToolLink User Manual
INSTALLATION
Mount the ToolLink Gateway on a horizontal or vertical
surface, in a suitable location or enclosure for your
application. Provide sufficient clearance and airflow to
maintain 0°C to 70°C ambient operating temperature
range. Fasten the ToolLink Gateway to the mounting
surface using two screws (not provided) in the 0.19 inch
0.650.45
All dimensions are inches
3.80
4.30
3.30
0.50
Mtg. Holes1.225
(2) 0.19 DIA .
0.12
1.25
1.225
WIRING
The ToolLink Gateway requires two connections – one to the
DeviceNet network (male 5-pin micro connector) and one to the
serial device (male DB9 connector). DeviceNet and serial cables
are available from a variety of industrial sources. Follow all
applicable electrical codes in your area when mounting and wiring
any electrical device.
All power is received from the DeviceNet network. The ToolLink
Gateway draws up to 200mA 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.
The following are typical ToolLink Gateway wiring examples. Your
RS232 or RS485 interface may vary. Refer to your device’s
documentation for the required data and control signals.
RS232 Interface
2
RXD
2
TXD
RS232
3
GND
5
Serial
Device
RS232 Interface, HW Flow Control
RXD
TXD
GND
3
5
CDN466
1
2
3
4
5
DRAIN
VDC+
VDCCAN H
CAN L
0.542
1.10
0.725
0.625 DIA. On Case Wall
0.70
ROTARY SWITCHES
Set the ToolLink rotary switches to the desired settings. Use
a small slotted screwdriver to rotate the switches. Align the
indicator arrow to the desired setting, as shown below.
switch position
switch indicator arrow
switch screw slot
Each rotary switch parameter has a PGM option. Setting a
switch to PGM allows the parameter to be remotely set over
DeviceNet. However, it must first be initialized. To initialize,
set the switch to desired value and power up the gateway.
The new settings are saved in its memory. Power down and
change switch to PGM mode.
2
RS232
3
5
Serial
Device
RS485 Interface
RS485
Serial
Device
RXD
TXD
GND
RTS
CTS78
DATAA
DATAB
Connect pins 2 & 3
to terminate cable
RXD
TXD
GND
CTS
DATAA
DATAB
TR
2
3
5
78RTS
1
2
3
CDN466
120
CDN467
1
2
3
4
5
1
2
3
4
5
DRAIN
VDC+
VDCCAN H
CAN L
DRAIN
VDC+
VDCCAN H
CAN L
MKS Instruments, Inc. Page 5 of 30
ToolLink User Manual
CONFIGURATION
Rotary switches and software parameters configure the ToolLink Gateway’s DeviceNet Interface, Serial
Interface, Serial Receive, and Serial Synchronization functions. The ToolLink Gateway can be configured
over its DeviceNet channel. Use your DeviceNet Configuration application program and the ToolLin k
EDS file to set the software parameters over the DeviceNet channel.
FUNCTION PARAMETER TYPE VALUE DESCRIPTION
DeviceNet
Interface
Data Rate Switch 0 = 125Kbps
Maximum Receive Size Software 0 to 64 bytes Defines the maximum receive message packet size. The total
Maximum Transmit Size Software 0 to 64 bytes Defines the maximum transmit message packet size. The total
Byte-Swap Enable Software 0 = disabled
Serial Interface Baud Rate Switch 0 = 300 4 = 4800
Parity Software 0 = No parity
Flow Control Software 0 = None
Serial Receive Receive Mode Software 0 = Timeout
Start Delimiter String Software String of 0-4 bytes:
Stop Delimiter String Software String of 0 to 4 bytes:
Serial
significant digit (0x to 6x). LSD switch sets the least significant
digit (x0 to x9).
Sets DeviceNet data rate.
number of ToolLink input bytes is Maximum Receive Size + 4.
number of ToolLink output bytes is Maximum Transmit Size + 4.
Defines how ToolLink formats its input and output data fields.
When enabled, ToolLink swaps every 2 bytes in the data field.
Sets the serial channel baud rate.
Sets the serial channel parity mode. Received byte is tested for
errors, and then parity bit is cleared before the byte is saved in
RX buffer.
Sets the serial channel flow control.
XON/XOFF is a software flow control. Receiving device sends
XOFF when its buffer is full, suspending further transmissions
until it sends XON, indicating it is ready to again receive data.
XON and XOFF bytes are not saved as message data.
CTS/RTS is an RS232 hardware flow control option (CDN466
only). Gateway keeps RTS output active (low) when it can
receive data. Gateway only transmits data when CTS input is
active (low)
Selects how the gateway receives a complete message packet.
Used when Receive Mode = Start/Stop Delimiter.
Defines the start of a received message packet.
Used when Received Mode = Start/Stop Delimiter.
Defines the end of a received message packet.
Optional receive serial message handshake protocol between
ToolLink Gateway and application program.
Optional transmit serial message handshake protocol between
ToolLink Gateway and application program.
DeviceNet Interface
The ToolLink Gateway can receive serial message packets up to 68 bytes long. The DeviceNet Output
Size (Produce Size) is equal to the Maximum Receive Size + 4 bytes of overhead. The Maximum Receive Size parameter defines the Data Field size (M) for the input bytes.
The ToolLink Gateway can transmit serial message packets up to 68 bytes long. The DeviceNet Input
Size (Consume Size) is equal to the Maximum Transmit Size + 4 bytes of overhead. The Maximum Transmit Size parameter defines the Data Field size (N) for the output bytes.
MKS Instruments, Inc. Page 6 of 30
ToolLink DeviceNet Input Bytes
STATUS RXCTR TXACKLENGTH
1 byte 1 byte 1 byte 1 byte M bytes
ToolLink DeviceNet Output Bytes
COMMAND RXACK TXCTRLENGTH
1 byte 1 byte 1 byte 1 byte N bytes
DATA FIELD
DATA FIELD
ToolLink User Manual
Serial Interface
The Receive Mode parameter defines how the ToolLink Gateway receives serial message packets. The
three supported modes include Timeout mode, Length mode and Delimiter mode.
When in Timeout mode, the ToolLink Gateway waits for an inter-byte delay to signal the end of a
message packet. If the receiver is idle for more than 3.5 byte times (or 5 msec, whichever value is
greater), then all bytes received before the timeout are grouped into a single message packet. 1 byte
time = 10 bits ÷ baud rate.
When in Length mode, the ToolLink Gateway receives a fixed number of bytes as a complete message
packet. The Maximum Receive Size parameter defines the message packet size (0 to 64 bytes) for the
LENGTH mode.
When in delimiter mode, the ToolLink Gateway uses start and stop delimiter strings to identify the
beginning and end of a message packet. The Start Delimiter String parameter defines the beginning of
a message, and the Stop Delimiter String parameter defines the end of a message.
MKS Instruments, Inc. Page 7 of 30
ToolLink User Manual
Chapter 2 – Quick Start Guide
This chapter describes the setup for a simple gateway solution using a DeviceNet master and the serial
port of a PC using HyperTerminal. Before beginning a basic understanding of DeviceNet and rs232 is
required. Experience using explicit and poll transactions from the software provided with your DeviceNet
master is essential. For more information on generating explicit and poll messages consult the DeviceNet
master’s software user’s guide.
Hardware Setup
Setup a gateway connection between a device net master and the serial port of a PC.
Required Hardware:
• Null modem cable
• Device net cable
Com Port 1
• Device net master
• PC with HyperTerminal
• Serial gateway
Null Modem
Cable
CDN466/CDN467
System Configuration
Configure the HyperTerminal properties in the File Menu of
HyperTerminal with the following parameters.
• 9600 baud
• 1 stop bit
• 8 bits of data
• Odd parity
• No flow control
DeviceNet
Cable
DeviceNet
Master
Configuring the Gateway
The major steps for configuring the gateway include setting up the Serial Stream Object, the Serial
Receive Object, and the Serial Transmit Object. This example is for the CDN466. For
Configure the gateway switches as follows:
• MACID MSD to 0
• MACID LSD to 1
• DeviceNet Data rate to 500
• RS2323 baud rate to 9600
Once all of the hardware is setup and powered up, make sure that the master can allocate both poll and
explicit connections to the gateway. Once allocated, both the net and mod LED will be solid green.
MKS Instruments, Inc. Page 8 of 30
ToolLink User Manual
Using the DeviceNet master’s software loads the parameters for the serial stream object, the serial
receive object, and the serial transmit object in the tables below for the gateway through the device net
connection by using explicit messaging.
Table 1 Configure the serial stream object class 100 (0x64)
Attribute Access Name Value
6 Get/Set Baud Rate 9600
7 Get/Set Parity None
8 Get/Set Flow Control None
9 Get Receive Mode Timeout
13 Get/Set RX Handshake Enable 0 = No
16 Get/Set TX Handshake Enable 0 = No
19 Get/Set Max Receive Size 1
20 Get/Set Max Transmit Size 1
Transferring data
The ToolLink Gateway is now set up the receive data. The Output Size (Produce Size) will be equal to 5.
The 5 Byte poll response will is described below
The ToolLink Gateway is now set up the Transmit data. The Input Size (Consume Size) will be equal to
5. The 5 Byte poll will is described below.
ToolLink DeviceNet Input Bytes
STATUS RXCTR TXACKLENGTH
1 byte 1 byte 1 byte 1 byte 1 byte
ToolLink DeviceNet Output Bytes
COMMAND RXACK TXCTRLENGTH
1 byte 1 byte 1 byte 1 byte 1 byte
DATA FIELD
DATA FIELD
MKS Instruments, Inc. Page 9 of 30
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.