background image

CDN36X User Manual 

 

revision 1.30 

Chapter 3 – Theory of Operation 

 
This chapter describes how the CDN36X 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 CDN36X gateway receives asynchronous serial messages over its serial channel, converts 
them to data values, and returns the values as input data to the DeviceNet master.  The gateway 
receives output data from the DeviceNet master, converts them into serial messages, and 
transmits the messages out its serial channel.  The following diagram shows the major gateway 
components. 
 

Gateway Core 
• microcontroller 
• RAM 
• Flash ROM 

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

DeviceNet Channel 
• 24VDC power 
• communications 

Serial Channel 
• c
• flow control 

ommunications 

5-pin male 

micro connector 

Male DB9 

connector 

Serial Stream Object 

Serial Transmit Object 

(up to 8 Instances) 

Serial Receive Object 

(up to 8 Instances) 

Devicenet I/O Response 

input data 

serial 

messages 

DeviceNet Object 

or Rotary Switches 

DeviceNet I/O Command 

output data 

Configures the DeviceNet 
interface baud rate and 
MAC ID address. 

Converts output data from 
DeviceNet master to message 
packet.  Transmits message 
packet out the serial channel. 

Converts received message 
packet to input data.  Input 
data returned to DeviceNet 
master. 

Configures the serial channel.  
Scans channel for valid message 
packets, which are passed to 
Serial Receive Object instances. 

MKS Instruments, Inc. 

D.I.P. Products Group 

9

Summary of Contents for CDN366

Page 1: ...CDN36X Series DeviceNet Gateway User Manual CDN366 1 isolated RS232 channel CDN367 1 isolated RS422 RS485 channel ...

Page 2: ...ization 25 Receive Synchronization 25 Transmit Synchronization 26 CHAPTER 4 GATEWAY CONFIGURATION 28 CONFIGURE DEVICENET INTERFACE 28 DeviceNet Baud Rate Switch 28 MAC ID Switches 28 POWER UP GATEWAY 29 DeviceNet Status LEDs 29 Serial Channel Status LEDs 29 Register EDS File 30 CONFIGURE SERIAL CHANNEL 31 SERIAL RECEIVE OBJECT SETTINGS 34 SERIAL TRANSMIT OBJECT SETTINGS 37 CONFIGURE DEVICENET MAST...

Page 3: ...GURATION EXAMPLES 82 EXAMPLE 1 RECEIVING DATA 82 Barcode Scanner 82 CDN366 Gateway 82 EXAMPLE 2 RECEIVING DELIMITED DATA 84 Barcode Scanner 84 CDN366 Gateway 84 EXAMPLE 3 TRANSMITTING DATA 86 Serial Printer 86 CDN366 Gateway 86 EXAMPLE 4 TRANSMITTING DELIMITED DATA 88 Serial Printer 88 CDN366 Gateway 88 CHAPTER 8 TROUBLESHOOTING 90 APPENDIX A PRODUCT SPECIFICATIONS 91 DEVICENET INTERFACE 91 SERIAL...

Page 4: ... DeviceNet MAC ID Rotary Switches DeviceNet Baud Rate DeviceNet Status LEDs NET MOD Rotary Switch DeviceNet Channel male 5 pin micro connector Product Features CDN366 CDN367 500V isolated serial channel X X RS232 with RTS CTS flow control X RS422 full duplex 4 wire with terminating resistors X RS485 half duplex 2 wire with terminating resistor repeater control signal X XON XOFF software flow contr...

Page 5: ...65 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 CDN36X to the mounting surface 0 65 0 45 0 50 0 12 Mtg Holes 1 225 2 0 19 DIA 1 22...

Page 6: ...ating power DeviceNet Interface DRAIN V V CAN_H CAN_L Male 5 Pin Micro Connector PIN SIGNAL COLOR DESCRIPTION 1 DRAIN NONE Cable shield or drain wire 2 V RED DeviceNet 24VDC power 3 V BLACK DeviceNet 24VDC power 4 CAN_H WHITE Communication signal 5 CAN_L BLUE Communication signal Serial Channel Interface 1 9 5 6 2 3 7 8 4 Male DB9 Serial Connector CDN366 RS232 PIN SIGNAL DESCRIPTION 1 NC No Connec...

Page 7: ...2 RXB RS485 differential receive data input signal 3 TR 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 4 NC No Connect Do not connect any wires to NC pins 5 GND Ground 6 TXA RS422 differential transmit data output signal 7 TXB RS422 differential transmit data output signal 8 TR2 Internal 120Ω Ter...

Page 8: ... TR 1 2 3 4 5 DRAIN VDC VDC CAN H CAN L DATAB DATAA RS485 Serial Device Simple RS485 Interface 120 Connect pins 2 3 to terminate cable CDNx67 1 2 3 RXB RXA TR 1 2 3 4 5 DRAIN VDC VDC CAN H CAN L TX B TX A RS422 Serial Device RS422 4 Wire Interface 120 RX A RX B 4 5 6 7 8 LOOP LOOP TXB TXA TR2 120 Connect pins 2 3 RX and pins 7 8 TX to terminate cables Connect pins 4 5 MKS Instruments Inc D I P Pro...

Page 9: ... major gateway components Gateway Core microcontroller RAM Flash ROM DC DC Power Conversion 24VDC DeviceNet power input VDC for Core DeviceNet channel isolated VDC for serial channel DeviceNet Channel 24VDC power communications Serial Channel c flow control ommunications 5 pin male micro connector Male DB9 connector Serial Stream Object Serial Transmit Object up to 8 Instances Serial Receive Objec...

Page 10: ...ial channel You can configure up to 8 Instances each for the Serial Receive Object and Serial Transmit Object Chapter 5 contains detailed information on each DeviceNet object class DeviceNet Interface The CDN36X gateway operates as a DeviceNet slave It supports Explicit Messages Polled I O Messages and Change of State COS I O Messages of the predefined master slave connection set The Explicit Unco...

Page 11: ... data bytes contain serial message data that has been received and processed by the gateway Up to 8 different input data values can be returned in an I O Response Message one for each enabled Serial Receive Object Instance The following diagram shows how the gateway s input and output data bytes map into the DeviceNet I O Response and I O Command Messages The diagram includes all 8 Serial Receive ...

Page 12: ... Serial Receive Object Instances 1 8 respectively STO Inst Serial Transmit Object Instance TX Data Serial Transmit Object Transmit Data attribute DeviceNet Master Inputs DeviceNet I O Response Message Data input bytes TX Ack Byte RX Toggle Byte SRO Inst 1 RX Data SRO Inst 2 RX Data SRO Inst 3 RX Data SRO Inst 4 RX Data SRO Inst 5 RX Data SRO Inst 6 RX Data SRO Inst 7 RX Data SRO Inst 8 RX Data inp...

Page 13: ...is determined by one of three Delimiter 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 When a message packet is received it is processed by all enabled Serial Receive Ob...

Page 14: ..._String data size 4 Use Pre String Use Data Field Use Post String 4 Integer USINT data size 1 Use Pre String Use Data Field Use Post String 13 VALUE 100 F 4 VALU 8 VALUE 3 100 2 F 8 VALUE 0x64 2 F You can configure up to 8 Serial Receive Object Instances allowing you to process a received message packet against 8 different filters Each enabled Instance parses through the message packet consuming b...

Page 15: ... Receive Object Instance 4 configured to convert 2 bytes into 8 bit unsigned integer 0x34 0x35 are ASCII chars 45 Converted data 0x2D Data 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45 5 Serial Receive Object Instance 5 configured to locate 2 bytes bracketed by Pre String 7 0x01 0x37 and Post String AB 0x02 0x41 0x42 and convert them to 8 bit unsigned integer 0x38 0x39...

Page 16: ...t receives Message Packet 1 Serial Receive Object Instance 1 finds matching Pre String and Post String values converts 100 data field into 0x64 VALUE 100 UNITS VALUE 100 UNITS Serial Receive Object Instance 2 does not find matching Pre String field so it skips this message packet 2 Serial Stream Object receives Message Packet 2 VAR B IS 104 Serial Receive Object Instance 1 does not find matching P...

Page 17: ...s by linking together each instance s message packet The Serial Transmit Object sequentially processes the I O Command Message output data in order of instance number starting with Instance 1 Each enabled instance converts its output data bytes into a message packet that is loaded into the transmit buffer The following examples show how the Serial Transmit Object Instances create messages Instance...

Page 18: ...e String1 Before Use Data Use String2 After String1 0x04 REF String2 0x01 0x03 Data Type USINT width 2 conversion D with leading zeros Converts output data byte 0x13 into two ASCII chars 0x31 0x39 REF 19 ETX The three message packets are transmitted sequentially so complete message is STX V8 034 REF 19 ETX Asynchronous Serial Communictaion Devices communicating on an asynchronous serial link excha...

Page 19: ...ta Type Data Size Value Range SINT signed 8 bit integer 1 128 to 127 INT signed 16 bit integer 2 32768 to 32767 USINT unsigned 8 bit integer 1 0 to 255 UINT unsigned 16 bit integer 2 0 to 65535 REAL 32 bit floating point 4 1 175E 38 to 3 4028E 38 Short_String byte array 2 to 128 string of bytes 1st byte defines length The Serial Transmit Object and Serial Receive Object Instances attributes config...

Page 20: ...ts the ASCII bytes as a decimal number If hexadecimal is selected then the gateway converts the ASCII bytes as a hex number 1234 Æ If decimal integer 1234 1234 Æ If hexadecimal 0x1234 integer 4660 For the Serial Transmit Object the Conversion attribute also denotes if the ASCII bytes represent a decimal or hexadecimal integer If decimal is selected then the gateway converts the integer into a deci...

Page 21: ... 2345E 16 The Serial Receive Object Instance converts this to 4 bytes of Receive Data 0xNN 0xNN 0xNN 0xNN This is the 32 bit floating point representation for 1 2345E 16 Example 7 Data Type REAL Width 7 Received ASCII data is 1 2345E 16 The Serial Receive Object Instance converts this to 4 bytes of Receive Data 0xNN 0xNN 0xNN 0xNN This is the 32 bit floating point representation for 1 2345 With Wi...

Page 22: ...nce also toggles its Receive Toggle bit to signal the reception of new data When the gateway receives a DeviceNet I O Command Message it builds and sends a DeviceNet I O Response Message The Transmit Acknowledge bits from Serial Transmit Object instances 1 8 are loaded in the first byte The Receive Toggle bits from Serial Receive Object instances 1 8 are loaded in the second byte The Receive Data ...

Page 23: ...0x03 3 Serial Receive Object Instance 1 processes message packet Pre String 0x07 TEMP 0x54 0x45 0x4D 0x50 0x20 0x3D 0x20 0x36 0x34 0x20 0x43 Data 64 Post String 0x02 C 4 Instance 1 converts ASCII data to Data Type value Data Type SINT Width 2 Conversion D 0x36 0x34 0x36 0x34 64 64 decimal 0x40 hex 0x40 5 Instance 1 Receive Data value sent to DeviceNet master I O RESPONSE MESSAGE TA RT xxxxxxx1 0x4...

Page 24: ...when the serial channel transmitter is available When the new message is loaded in the transmit buffer Instance 1 toggles its Transmit Acknowledge bit indicating that is it ready to receive the next Transmit Data value The updated Transmit Acknowledge bit is sent to the application in the next DeviceNet I O Response Message There may have been subsequent DeviceNet I O message transactions in betwe...

Page 25: ...e gateway receive synchronization feature is optional for each Serial Receive Object instance It is enabled by the Sync Enable attribute When enabled the instance will not process a new message packet until the last Receive Data value has been read and acknowledged by the application program When a Serial Receive Object Instance updates its Receive Data value it also toggles its Receive Toggle bit...

Page 26: ...e When the user application sends new Transmit Data to an instance is must toggle that instance s Transmit Toggle bit This enables the Instance to process the new output value and load the resulting serial message into the transmit buffer When the message is loaded for transmission the Instance acknowledges transmission by setting its Transmit Acknowledge bit equal to the Transmit Toggle bit The a...

Page 27: ...User Manual revision 1 30 bit 0 bit 0 TX Toggle TX Ack copy variable to TX Data TX Toggle bit 1 bit 1 bit 1 TX Toggle TX Ack copy variable to TX Data TX Toggle bit 0 MKS Instruments Inc D I P Products Group 27 ...

Page 28: ...N36X cover if necessary to access the rotary switches DeviceNet Baud Rate Switch Valid settings are 125K 250K 500K or PGM When PGM is selected the CDN36X uses the 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 CDN36X for a few seconds Power down and set the switch to PGM You may also write to the DeviceNet Object...

Page 29: ...ceNet master Solid Green Normal runtime device allocated as a slave State Module Status LED MOD Off No power Flashing Red Configuration error Check object attribute settings Solid Red Unrecoverable error Flashing Green Not defined Solid Green Normal Operation Serial Channel Status LEDs The gateway has two bi color LEDs to indicate serial channel activity The TX LED flashes green when a packet is b...

Page 30: ...S files you should now register the gateway s EDS file with the software The latest EDS file versions can be downloaded from www mksinst com Select the EDS file that matches your gateway s part number and firmware version Follow your configuration tool instructions to register EDS file MKS Instruments Inc D I P Products Group 30 ...

Page 31: ...ist Short_String List mode String of 1 9 bytes 13 Packet Timeout USINT Timeout mode delay between received bytes 1 255 msec 14 Packet Length USINT Length mode Number of message bytes 1 128 15 Serial Status USINT Bit 0 RX buffer overrun error Bit 1 RX parity error Bit 4 TX buffer overrun error Bit 5 TX parity error 16 Byte Swap USINT 0 disable 1 enable 18 RS422 Mode USINT 0 4 wire mode RS422 full d...

Page 32: ...elimiter string can be from 1 to 9 bytes in length When the gateway receives the Pre Delimiter string it saves the subsequent data bytes until the Post Delimiter string is received The Pre Delimiter and Post Delimiter bytes are not saved in the message packet The following is a simple ASCII message example STX data1 data2 dataN ETX CR Pre Delimiter Message Packet Post Delimiter Length mode is used...

Page 33: ...nd output message data in high byte low byte format and receive input message data in high byte low byte format The following example shows how the CDN36X byte swap feature modifies the input bytes in a DeviceNet I O Response Message Normal Format TX Ack Byte RX Toggle Byte SRO1 RXData 1 SRO1 RXData 2 SROx RXData N SROx RXData N 1 Swapped Format The following example shows how the CDN36X byte swap...

Page 34: ... String Data Size bytes 10 Data Size USINT 1 128 11 Width USINT 1 16 13 Conversion USINT D 0x44 decimal integer X 0x58 hexadecimal integer 14 Pad Char CHAR Pad byte value Pad Poll Response if Rx data does not fill up Poll response message data 15 Data in I O Response BOOL 0 no 1 yes 16 Enabled BOOL 0 disabled 1 enabled 17 Sync Enabled BOOL 0 disabled 1 enabled Receive Data Data from the last valid...

Page 35: ...ute value Post String Required if Use Post String selected in Receive Mode Enter a string of 1 9 bytes in Short_String data format with 1st byte string length Example Post String is 0x02 0x42 0x43 where string length is 2 and post string characters are 0x42 B and 0x43 C You must use the RSNetworx Class Instance Editor Set Attribute Single command to write a Short_String attribute value Data Type T...

Page 36: ...I O Response Message Typically you would always have this attribute enabled when the Instance is enabled For more complex applications the Instance s Receive Data can be read using the Get_Attribute command explicit message reducing the number of input bytes in the I O Response Message All disabled Instances must have this attribute set to zero Enabled Enables the Serial Receive Object instance Wh...

Page 37: ...9 0xC7 UINT 2 bytes 202 0xCA REAL 4 bytes 218 0xDA Short String Data Size bytes 10 Data Size USINT 1 128 11 Width USINT 1 16 12 Precision USINT 0 6 13 Conversion USINT Bit 0 hex 0 for decimal 1 for hex Bit 7 use leading zeros to pad number 15 Data In I O Command BOOL 0 no 1 yes Transmit Data Data to be transmitted by this Instance as a serial message packet The Transmit Data value is typically rec...

Page 38: ...tring2 Before or String2 After selected in Transmit Mode Enter a string of 1 9 bytes in Short_String data format with 1st byte string length Example String2 is 0x03 0x43 0x44 0x45 where string length is 3 and post string characters are 0x43 C 0x44 D and 0x45 E You must use the RSNetworx Class Instance Editor Set Attribute Single command to write a Short_String attribute value Data Type Defines the...

Page 39: ...cription 0 0 0 0x00 no leading zeros decimal integer 0 1 1 0x01 no leading zeros hexadecimal integer 1 0 128 0x80 leading zeros decimal integer 1 1 129 0x81 leading zeros hexadecimal integer When bit 0 0 the ASCII bytes represent the Transmit Data integer number in a decimal format When bit 0 1 the ASCII bytes represent the integer number in a hexadecimal format This bit only applies to SINT INT U...

Page 40: ...e CDN36X and application program to synchronize the transmit and receive operations The remaining bytes are the Transmit Data attributes for every enabled Serial Transmit Object Instance The number of bytes is determined by the Data Size configured for each enabled Instance For real and integer numbers the Data Size is predefined by the selected Data Type For Short_String data type the Data Size a...

Page 41: ...or real and integer numbers the Data Size is predefined by the selected Data Type For Short String data byte the Data Size attribute is user defined The following equation is used to calculate the CDN36X I O Produce Size Only include the Data Size for enabled Serial Receive Object Instances Transmit Acknowledge Byte 1 Receive Toggle Byte 1 Serial Receive Object Instance 1 Data Size ____ Serial Rec...

Page 42: ...xx CDN36X MAC ID DeviceNet Class Services The CDN36X is a Group 2 Slave Device that supports the following class services and instance services SERVICE CODE SERVICE NAME 05 0x05 Reset 14 0x0E Get Attribute Single 16 0x10 Set Attribute Single 75 0x4B Allocate Group 2 Identifier Set 76 0x4C Release Group 2 Identifier Set DeviceNet Object Classes The CDN366 device supports the following DeviceNet obj...

Page 43: ... STRUCT of Major Revision USINT 1 Minor Revision USINT 9 5 Get Device Status WORD bit 0 owned 0 available 1 allocated bit 2 configured 0 no 1 yes bit 4 7 vendor specific 0 bit 8 minor configuration fault bit 9 minor device fault bit 10 major configuration fault bit 11 major device fault bit 1 3 12 15 reserved 0 6 Get Serial Number UDINT unique serial number for every device 7 Get Product Name STRU...

Page 44: ...in the CDN36X device Router Object Class Code 02 0x02 Class Attribute Access Name Type Value 1 Get Revision UINT 1 6 Get Max Class Identifier UINT 7 7 Get Max Instance Attribute UINT 2 Instance Attribute Access Name Type Value 2 Get Number of Connections UINT 2 Common Services Service Code Class Instance Service Name 14 0x0E Yes Yes Get_Attribute_Single MKS Instruments Inc D I P Products Group 44 ...

Page 45: ...ting this attribute forces counter value to zero 5 Get Allocation Information STRUCT of Choice Byte BYTE bit 0 explicit msg set to 1 to allocate bit 1 polled IO set to 1 to allocate bit 2 strobed IO not supported bits 3 7 reserved set to 0 Master Node Address USINT Allocated to this DeviceNet master 6 Get MAC ID Switch Changed BOOL 0 No Change 1 Changed since last Power up or Reset 7 Get Baud Rate...

Page 46: ...e 14 0x0E Yes Yes Get_Attribute_Single 16 0x10 No Yes Set_Attribute_Single Instance 100 Input Data Stream and Instance 101 Output Data Stream are structured as either an array of bytes or as a Short_String consisting of a single byte length field and N data bytes The Input Data Stream is the data returned in the I O Response Message The Output Data Stream is the data returned in the I O Command Me...

Page 47: ...roduced connection id 10xxxxxx101 consumed connection id 5 Get Consumed Connection UINT 6 Get Initial Communication Characteristics USINT 0x21 for Explicit Message 0x01 for I O Message 7 Get Production Size UINT 67 for Explicit Message See Stream Object for I O Message 8 Get Consumed Size UINT 71 for Explicit Message See Stream Object for I O Message 9 Get Set Expected Packet Rate UINT Default 250...

Page 48: ... USINT 0x04 Log Seg Instance USINT 0x24 Instance Number USINT 0x02 Log Seg Attribute USINT 0x30 Attribute Number USINT 0x03 17 Get Production Inhibit UINT 0 Common Services Service Code Class Instance Service Name 05 0x05 Yes Yes Reset 14 0x0E Yes Yes Get_Attribute_Single 16 0x10 No Yes Set_Attribute_Single MKS Instruments Inc D I P Products Group 48 ...

Page 49: ...imiter List Short_String List mode String of 1 9 bytes 12 Get Set Post Delimiter List Short_String List mode String of 1 9 bytes 13 Get Set Packet Timeout USINT Timeout mode delay between received bytes 1 255 msec 14 Get Set Packet Length USINT Length mode Number of message bytes 1 128 15 Get Set Serial Status USINT Bit 0 RX buffer overrun error Bit 1 RX parity error Bit 4 TX buffer overrun error ...

Page 50: ...ve Mode USINT Bit 0 use Data Field Bit 1 use Pre String Field Bit 2 use Post String Field 7 Get Set Pre String Short_String String of 1 9 bytes 8 Get Set Post String Short_String String of 1 9 bytes 9 Get Set Data Type USINT 194 0xC2 SINT 1 byte 195 0xC3 INT 2 bytes 198 0xC6 USINT 1 byte 199 0xC7 UINT 2 bytes 202 0xCA REAL 4 bytes 218 0xDA Short String Data Size bytes 10 Get Set Data Size USINT 1 ...

Page 51: ...Toggle when the latest Transmit Data message has been sent 6 Get Set Transmit Mode USINT Bit 0 use Data Bit 1 use String1 before data Bit 2 use String2 before data Bit 3 use String1 after data Bit 4 use String2 after data 7 Get Set String1 Short_String String of 1 9 bytes 8 Get Set String2 Short_String String of 1 9 bytes 9 Get Set Data Type USINT 194 0xC2 SINT 1 byte 195 0xC3 INT 2 bytes 198 0xC6...

Page 52: ...Scale or etc To PC RS232 9 pin Serial Interface For Used with RSLinx RSNetWorx Prog V BUS data high CAN H Male Connector DeviceNet Color Description clear red shield Drain V BUS blue data low CAN L Fuse 1A Fuse 6A RXD TXD GND RTS CTS DeviceNet Connector black white to pin 1 DeviceNet connector black clear data high CAN H V BUS Terminal Connector BUS 0vdc Shield Drain white Description red V BUS da...

Page 53: ...e gateway to the DeviceNet network to power it up During power up the NET and MOD LEDs cycle through a sequence of alternating red and green After power up the NET LED should be flashing green and the MOD LED should be solid green Connect Register EDS File 1 Start up the RSNetworx program Select the Online operation from the Network menu MKS Instruments Inc D I P Products Group 53 ...

Page 54: ...rks connected to your computer 3 Click on the 1770 KFD 1 to show all connected DeviceNet devices The gateway is at MAC ID 03 verifying its DeviceNet connection It is an Unrecognized Device until the gateway s EDS file is registered with RSNetworx MKS Instruments Inc D I P Products Group 54 ...

Page 55: ... 30 4 Click Cancel to close Browse for network window Select the EDS Wizard operation from the Tools menu Click Next to continue 5 Select the Register an EDS file s option and click Next MKS Instruments Inc D I P Products Group 55 ...

Page 56: ...ad the latest EDS and ICON files from the www mksinst com website Click Next when you have the correct path and EDS file name in the Named box 7 The next screen shows the RSNetworx installation test results Click View file to view the actual EDS file text Click Next to continue MKS Instruments Inc D I P Products Group 56 ...

Page 57: ...llows you to customize the gateway s icon for RSNetworx Click on Change icon 9 The Change Icon screen pops up Click Browse to enter path for CDN366 icon file You can download the icon file from www mksinst com MKS Instruments Inc D I P Products Group 57 ...

Page 58: ...revision 1 30 10 Enter the path to CDN366 icon file in the File name box Click Open to continue 11 The CDN366 icon should have changed to the proper icon Click Next to continue MKS Instruments Inc D I P Products Group 58 ...

Page 59: ...r Manual revision 1 30 12 The final step is to finish EDS file registration Click Next to complete the registration process Click Finish to close the EDS Wizard window MKS Instruments Inc D I P Products Group 59 ...

Page 60: ...0 13 Repeat steps 1 2 and 3 to browse the DeviceNet network RSNetworx should now recognize the device at MAC ID 03 as a CDN366 gateway and display the CDN366 icon Click Cancel when finished MKS Instruments Inc D I P Products Group 60 ...

Page 61: ... values The Serial Stream Object attributes control the physical layer settings for the gateway s serial channel The following steps show how to configure the Serial Stream Object attributes using the RSNetworx program 1 Select the Online operation from the Network menu Select the DeviceNet adapter 1770 KFD 1 in this example and click OK 2 RSNetworx prompts you to upload the network configuration ...

Page 62: ...X User Manual revision 1 30 3 RSNetworx displays the following text box while it uploads the network configuration 4 The following screen displays the online nodes MKS Instruments Inc D I P Products Group 62 ...

Page 63: ...con to select it Right click and select Properties from the pop up menu You can also double click on the CDN366 icon to open its properties box 6 RSNetworx displaces the following text box while is reads CDN366 EDS file MKS Instruments Inc D I P Products Group 63 ...

Page 64: ...splayed 7 Select the Parameters tab You will be prompted for the parameters source Select the Upload button to upload CDN366 parameters from the actual device All the CDN366 parameters are now shown in the Properties window MKS Instruments Inc D I P Products Group 64 ...

Page 65: ...bject types The Serial Stream Object is used to configure the serial channel physical interface This object will be configured in this section The Serial Receive Object and Serial Transmit Object are in the next sections MKS Instruments Inc D I P Products Group 65 ...

Page 66: ...it the Serial Stream Object attributes in this window Note that the Pre Delimiter List and Post Delimiter List attributes are not listed These attributes use Short_String data type which is not supported by RSNetworx EDS File interface Use the Class Instance Editor to configure Short_String attributes MKS Instruments Inc D I P Products Group 66 ...

Page 67: ...a bytes Example is 0x01 0x02 for 1 byte Pre Delimiter List of 0x02 ASCII STX Enter the remaining Serial Stream Object attributes in the Parameters Box window Baud Rate Click on the current value to change the baud rate Enter the desired value in bits per second as a decimal number Data Bits Click on arrow to the right of the current value to select from pull down menu Stop Bits Click on the curren...

Page 68: ...g bits 2 3 6 7 The serial status bits are set bit 1 by the CDN36X gateway when an error occurs You must acknowledge the receipt of an error by clearing the appropriate bit bit 0 Clearing an error bit causes the gateway to clear that error condition and resume normal operation You must either reset the CDN36X or clear each error bit using a Set_Attribute explicit message command in order to resume ...

Page 69: ...worx open the CDN366 gateway Properties window Select the Parameters tab Select Rx Inst 1 from the Groups pull down menu You show see the 10 attributes for this object instance You may now edit the Serial Receive Object Instance 1 attributes in this window Note that the Pre String and Post String attributes are not listed These attributes use Short_String data type which is not supported by RSNetw...

Page 70: ... Short_String data as length byte then data bytes Example is 0x01 0x41 for 1 byte Pre String of 0x41 ASCII A Enter the remaining Serial Receive Object attributes in the Parameters Box Receive Toggle Read only attribute Bit toggled 0 to 1 or 1 to 0 when a new data packet has been received indicating that it is ready to be read as DeviceNet inputs Receive Acknowledge Click on current value to change...

Page 71: ... Conversion Type Click on current value to change Enter D for decimal and X for hex Data in I O Response Click on current value and select from pull down menu Enabled Click on current value and select from pull down menu Select Ignore this instance to disable the Serial Receive Object instance Select Search receive string to enable the Serial Receive Object instance Sync Enabled Click on current v...

Page 72: ...ng RSNetWorx open the CDN366 gateway Properties window Select the Parameters tab Select Tx Inst 1 from the Groups pull down menu You show see the 9 attributes for this object instance You may now edit the Serial Receive Object Instance 1 attributes in this window Note that the String1 and String2 attributes are not listed These attributes use Short_String data type which is not supported by RSNetw...

Page 73: ...t_String data as length byte then data bytes Example is 0x01 0x41 for 1 byte String1 of 0x41 ASCII A Enter the remaining Serial Transmit Object attributes in the Parameters Box Transmit Toggle Click on current value to change Enter 0 to clear 1 to set Transmit Acknowledge Read only attribute Bit toggled 0 to 1 or 1 to 0 after Instance loads serial message packet into the transmit buffer and is rea...

Page 74: ...not enter a Data Size for integer or real number Data Types Width Click on current value to change Enter expected width as decimal number 1 16 Conversion Type Click on current value to change Enter decimal number see Ch 4 Precision Click on current value to change Enter desired precision in decimal 0 6 Data in I O Command Click on current value and select from pull down menu MKS Instruments Inc D ...

Page 75: ...o calculate these values You can also read them directly from the gateway Serial Stream Object I O Product Size and I O Consume Size attributes Follow the steps in Configure Serial Channel section to read these attribute values 2 Match sure all unused Serial Receive Object and Serial Transmit Object instances are disabled Follow the steps in Configure Serial Receive Object Instances and Configure ...

Page 76: ...ts you for the Scanner Configuration Click Upload to upload current 1747 SDN configuration from the node RSNetworx displays the upload progress 5 The next window shows the Available Devices that can be added to the 1747 SDN Scanlist MKS Instruments Inc D I P Products Group 76 ...

Page 77: ...ap on Add checkbox if you want RSNetworx to automatically map the CDN366 input and output bytes into the 1747 SDN memory 7 Select the CDN366 under Available Devices and click the button to transfer to Scanlist MKS Instruments Inc D I P Products Group 77 ...

Page 78: ...and buttons to set Rx Size to the calculated I O Consume Size value and the Tx Size to the calculated I O Produce Size value Click OK to update I O parameters 9 RSNetworx prompts to Automap the new input and output data bytes Select Yes to automap If you select No then you must manually map the I O bytes in the memory tables MKS Instruments Inc D I P Products Group 78 ...

Page 79: ...Manual revision 1 30 10 RSNetworx prompts if you want to download the changes to the 1747 SDN Click Yes 11 Select the Input tab to view the automapped CDN366 input bytes MKS Instruments Inc D I P Products Group 79 ...

Page 80: ...hange the mapping to suit your application Click Apply Mapping button after you make changes Click Yes at the RSNetworx prompt to download any changes to the 1747 SDN Click Close to continue 13 Select the Output tab to view the automapped CDN366 output bytes MKS Instruments Inc D I P Products Group 80 ...

Page 81: ...iew current input mapping detail Change the mapping to suit your application Click Apply Mapping button after you make changes Click Yes at the RSNetworx prompt to download any changes to the 1747 SDN Click Close to continue MKS Instruments Inc D I P Products Group 81 ...

Page 82: ...ge format The first step is to determine the Delimiter Mode The barcode scanner transmits a variable length message packet so Length Mode cannot be used Timeout Mode may be used but without specific timing information for the barcode scanner s RS232 channel it may be difficult to derive a suitable Packet Timeout value List Mode is best suited for this application because the serial message always ...

Page 83: ...n I O Response 1 0x41 0x01 0x0F 0x01 Enable data in I O response 16 Enabled 1 0x41 0x01 0x10 0x01 Instance 1 enabled Make sure Serial Receive Object instances 2 8 are disabled since only Instance 1 is used in this application The gateway will return 15 input bytes to the DeviceNet scanner in the I O Response Message The I O Produce Size is 15 with the data organized as follows Transmit Acknowledge...

Page 84: ...age so Length Mode cannot be used Timeout Mode may be used but without specific timing information for the barcode scanner s RS232 channel it may be difficult to derive a suitable Packet Timeout value List Mode is best suited for this application because the serial message always begins and ends with the same characters The Serial Stream Object can now be configured The following shows the Serial ...

Page 85: ...he serial number message packet The serial number range is 1 to 60000 so the Data Type is set for UINT with a Width of 5 and Conversion is set to decimal The Data Size is 2 bytes for UINT Serial Receive Object Instance 2 Configuration Class Code 65 or 0x41 Attribute Data Class Instance Attribute Data Description 6 Receive Mode 3 0x41 0x02 0x06 0x03 use Data Pre String fields 7 Pre String 0x04 SN 0...

Page 86: ...0 Attribute Data Class Instance Attribute Data Description 3 Baud Rate 300 0x40 0x01 0x03 0x01 0x2C 300 bps 4 Data Bits 7 0x40 0x01 0x04 0x07 7 data bits 5 Parity 2 0x40 0x01 0x05 0x02 Even parity 6 Stop Bits 2 0x40 0x01 0x06 0x02 2 stop bit 7 Flow Control 1 0x40 0x01 0x07 0x01 XON XOFF The next step is to configure the CDN366 gateway to transmit data received from the DeviceNet scanner to the ser...

Page 87: ... always send 67 outputs in the I O Command Message even if the text message is shorter than 64 characters The gateway uses the Short_String length byte to determine the number of valid characters to be transmitted Transmit synchronization must be used by the application The application toggles the Instance 1 Transmit Toggle bit in the I O Command Message when it sends a new text message and monito...

Page 88: ... Control 1 0x40 0x01 0x07 0x01 XON XOFF The next step is to configure the CDN366 gateway to transmit the specific messages Three Serial Transmit Object Instances are used two for Message 1 two variables and one for Message 2 one text message Serial Transmit Object Instance 1 is configured to transmit the first part of Message 1 TEMP xxx C It receives an integer value from the DeviceNet scanner con...

Page 89: ...0x52 0x4D 0x0D 0x0A Short String length 7 ALARM CR LF 9 Data Type 198 0x42 0x03 0x09 0xC6 USINT 8 bit unsigned integer 11 Width 1 0x42 0x03 0x0B 0x01 convert to 1 ASCII bytes 15 Data in I O Command 1 0x42 0x03 0x0F 0x01 Enable data in I O command Make sure the Serial Transmit Object instances 4 8 are disabled since only Instances 1 3 are used in this application The gateway expects to receive 7 ou...

Page 90: ...ons Check DeviceNet power supply voltage Make sure Gateway baud rate matches network baud rate Verify Gateway baud rate is set from rotary switches or retentive memory value MOD LED is flashing or solid red Gateway has failed Cycle power to reset Replace Gateway if necessary RX LED does not flash green when data is sent to the Gateway If Sync Enabled make sure Receive Toggle and Receive Acknowledg...

Page 91: ...nnel Isolation 500 Volts ESD Protection 10 kV Overload Protection 30 Volts Short Circuit Indefinite RS232 Output Levels 7 9 Volts unloaded typical Environmental Operating Temperature 0o C to 70o C Storage Temperature 25o C to 85o C Size inches 3 25 x 2 37 x 1 08 Mounting inches 0 5 tabs 3 16 diameter mounting holes PCB Encapsulation RTV Silicon Compound MKS Instruments Inc D I P Products Group 91 ...

Page 92: ...CDN36X User Manual revision 1 30 Appendix B DeviceNet Template Class Instance Attribute Default Setting Unit Comments MKS Instruments Inc D I P Products Group 92 ...

Page 93: ...3 CR Carriage 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 48 0 0x50 80 P 0x70 112 p 0x11 17 DC1 Device control 1 Ctrl Q 0x31 49 1 0x51 81 Q 0x71 113 q 0x12 18 DC2 Device control 2 Ctrl R 0x32 50 2 0x52 82 R 0x72 114 r 0x13 19 DC3 Device control 3 ...

Reviews: