background image

 

 

ToolLink User Manual 

MKS Instruments, Inc. 

 

  Page 11 of 30   

The first 4 output data bytes received from the DeviceNet master contain used to control and monitor the 
flow of data through the gateway.  The remaining output data bytes contain serial message data to be 
transmitted out the serial channel.   
 
The ToolLink Gateway can receive serial message packets up to 68 bytes long.  Set the 

Maximum 

Receive Size

 equal to the size of the largest receive message packet for your application.  This 

parameter defines the Data Field size (M) for the input bytes. 

 
 
 
 
 
 

The ToolLink Gateway can transmit serial message packets up to 68 bytes long.  Set the 

Maximum 

Transmit Size

 equal to the size of the largest transmit message packet for your application.  This 

parameter defines the Data Field size (N) for the output bytes. 

 
 
 
 
 

Serial Interface

 

The 

Serial Stream Object

 attributes configure the serial channel’s baud rate, number of data bits and stop 

bits, parity, and flow control.  This configuration applies to both the serial transmitter and receiver.  The 
gateway has separate 128-byte serial transmit and receive FIFO buffers, allowing full duplex operation 
when supported by the physical layer media. 
 
The 

Serial Stream Object

 is also used to configure the message packet format

.

  A message packet is 

determined by one of three modes.  

List

 mode searches for 

Pre-Delimiter

 and 

Post-Delimiter

 byte strings 

at the beginning and end of a message.  

Length

 mode captures a specific number of message bytes, 

defined by 

Packet Length

.  

Timeout

 mode uses an inter-byte delay (

Packet Timeout

) to signal the end of 

a message.  The following examples show the three 

Serial Stream Object Delimiter

 modes. 

 

When the Receive Mode is set to List, the ToolLink Gateway uses start and stop delimiter strings to 
identify the beginning and end of a message packet.  The 

Start Delimiter String

 attribute defines the 

beginning of a message, and the 

Stop Delimiter String

 attribute defines the end of a message. 

 
The 

Start Delimiter String

 attribute format is [length][byte1][byte2][byte3][byte4].  The length byte is 0 to 

4.  The remaining byte(s) define the start of a message packet, which must be a unique byte string that is 
not used elsewhere in the message packet.  The ToolLink Gateway monitors received bytes for a match 
to the Start Delimiter byte string.  When a match is found, the start delimiter byte(s) and all subsequent 
bytes are saved in the RX buffer, until a Stop Delimiter byte string is received.  If the Start Delimiter String 
is null (length = 0), the gateway starts saving the first received byte in the RX buffer. 
 
The 

Stop Delimiter String

 attribute format is [length][byte1][byte2][byte3][byte4].  The length byte is 0 to 

4.  The remaining byte(s) define the end of a message packet, which must be a unique byte string that is 
not used elsewhere in the message packet.  Once a Start Delimiter String is received, the ToolLink 
Gateway monitors the received bytes for a match to the Stop Delimiter byte string.  When a match is 
found, the gateway saves the stop delimiter bytes and the message packet is complete.  If the Stop 
Delimiter String is null (length = 0), then the gateway saves the start delimiter bytes and all subsequent 
bytes until the 

Maximum Receive Number

 of bytes are received.  This is a modified version of the 

Length Mode, using a start message delimiter to signal the start of a new fixed length message packet. 
 
When Receive Mode = TIMEOUT, 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.   

STATUS 

RXCTR 

TXACK

LENGTH

1 byte 

1 byte 

1 byte 

1 byte 

M bytes 

ToolLink DeviceNet Input Bytes 

DATA FIELD

COMMAND 

RXACK 

TXCTR

LENGTH

1 byte 

1 byte 

1 byte 

1 byte 

N bytes 

ToolLink DeviceNet Output Bytes 

DATA FIELD

Summary of Contents for ToolLink CDN466

Page 1: ...ToolLink DeviceNet Gateway User Manual Control Information Technology Group 3350 Scott Blvd Bldg 4 Santa Clara CA 95054 Main 408 235 7620 Fax 408 235 7625 Rev 01 01 04...

Page 2: ...pes 15 DEVICENET OBJECT CLASSES 15 IDENTITY OBJECT CLASS CODE 01 0X01 15 Revision Attribute 4 16 Device Status Attribute 5 16 Serial Number Attribute 6 16 ROUTER OBJECT CLASS CODE 02 0X02 17 DEVICENET...

Page 3: ...p Delimiter String Attribute 10 25 Rx Handshake Enable Attribute 11 25 TX Handshake Enable Attribute 11 26 Maximum Rx Size Attribute 19 26 Maximum TX Size Attribute 20 26 Byte Swapping Attribute 21 27...

Page 4: ...micro connector 1 SHIELD 2 V 3 V 4 CAN H 5 CAN L PIN SIGNAL 1 2 3 4 5 DeviceNet Status LED NET OFF No power RED BLINK Configuration error RED Unrecoverable error GREEN BLINK Not allocated to a master...

Page 5: ...nd 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 wiri...

Page 6: ...FF 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 hardwar...

Page 7: ...hever 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 numbe...

Page 8: ...vice net cable Device net master PC with HyperTerminal Serial gateway System Configuration Configure the HyperTerminal properties in the File Menu of HyperTerminal with the following parameters 9600 b...

Page 9: ...ceive 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 se...

Page 10: ...al Stream Object configures the serial channel and scans the incoming serial stream for valid message packets The CDN46X gateway operates as a DeviceNet slave It supports Explicit Messages and Polled...

Page 11: ...String attribute defines the beginning of a message and the Stop Delimiter String attribute defines the end of a message The Start Delimiter String attribute format is length byte1 byte2 byte3 byte4...

Page 12: ...ACK RXCTR to acknowledge receipt of an RX message before the ToolLink Gateway will load the next RX message into the input Data Field A ladder logic algorithm for Receive Synchronization is shown belo...

Page 13: ...baud rate saved in its retentive memory To save a valid baud rate in memory set the switch to the desired baud rate and power up the CDN46X for a few seconds Power down and set the switch to PGM You m...

Page 14: ...TX LED flashes green when a packet is being transmitted The RX LED flashes green when a packet is being received A fault is indicated by solid red After power up both LEDs should be off State Transmi...

Page 15: ...Check Message 10xxxxxx110 Unconnected Explicit Request Message 10xxxxxx101 Master I O Poll Command Message 10xxxxxx100 Master Explicit Request Message xxxxxx Node Address DeviceNet Object Classes The...

Page 16: ...tribute 4 MKS CIT maintains strict revision control The major revision number will increment as functional enhancements are implemented The minor revision will increment if minor changes are incorpora...

Page 17: ...Attribute Access Name Type Value 2 Get Number of Connections UINT 2 Table 7 Common Services Service Code Class Instance Service Name 14 0x0E Yes Yes Get_Attribute_Single DeviceNet Object Class Code 0...

Page 18: ...ast value set Switch Value Speed 52 125 kbits 52 250 kbits 52 500 kbits 52 Software settable Allocation Information Attribute 5 Allocation_byte bit 0 explicit set to 1 to allocate bit 1 polled set to...

Page 19: ...0x05 The Connection Objects manage the characteristics of each communication connection As a Group II Only Slave device the unit supports one explicit message connection and a POLL message connection...

Page 20: ...USINT 0x20 Class Number USINT 0x04 Log Seg Instance USINT 0x24 Instance Number USINT 0x100 default Log Seg Attribute USINT 0x30 Attribute Number USINT 0x03 15 Get Cons Path Length USINT3 6 16 Get Set...

Page 21: ...Revision UINT 1 2 Get Max Object Instance UINT 1 6 Get Max Class Identifier UINT 7 7 Get Max Instance Attribute UINT 18 Table 20 Serial Stream Object Instance 1 Attributes Attribute Access Name Type V...

Page 22: ...ld TX Acknowledge Increments from 0 255 each time a complete serial message has been transmitted by the CDN66 Length The number of bytes of the serial message in the Data field Data Data received by t...

Page 23: ...e Baud Rate 0 19200 1 600 2 1200 3 2400 4 4800 5 9600 6 19200 Parity Attribute 7 The Parity attribute sets the format for characters transmitted and received across the serial connection Note that the...

Page 24: ...search for a fixed strings to mark the stop and or end of a serial message Behavior in this mode depends on the setting of the Start Delimiter String and Stop Delimiter String attributes Start Stop If...

Page 25: ...e Mode attribute is in the Start Stop Delimiter mode The number of bytes in the string can be 0 not used to 4 The Stop Delimiter set as a DeviceNet SHORT_STRING which includes a length byte followed b...

Page 26: ...e Status Rx Counter TX ACKNOWLEDGE Length Data Maximum Rx Size Attribute 19 Value 0 to 64 default 16 Maximum Rx Size sets the length of the data field in the I O response It should be set greater or e...

Page 27: ...in the data field poll command and poll response This is useful with many PLC devices that reverse the positions of each byte pair in memory garbling up string data Default byte positions 1 2 3 4 5 6...

Page 28: ...ignal Levels ISO11898 Serial Channel Isolation 500 Volts ESD Protection 10 kV Overload Protection 30 Volts Short Circuit Indefinite RS232 Output Levels 7 9 Volts unloaded typical Environmental Operati...

Page 29: ...e return Ctrl M 0x2D 45 0x4D 77 M 0x6D 109 m 0x0E 14 SO Shift out Ctrl N 0x2E 46 0x4E 78 N 0x6E 110 n 0x0F 15 SI Shift in Ctrl O 0x2F 47 0x4F 79 O 0x6F 111 o 0x10 16 DLE Data line escape Ctrl P 0x30 4...

Page 30: ...er for any breach by MKS of this warranty The purchaser before returning any equipment covered by this warranty which is asserted to be defective by the purchaser shall make specific written arrange m...

Reviews: