Home
D.I.P. CDN060 Series DeviceNet Gateway User Manual
Contents
1. Get Set Baud Rate USINT 0 9600 bps 4 600 bps 1 4800 bps 5 300 bps 2 2400 bps 6 19200 bps 3 1200 bps 7 Get Set Parts USINT 0 no parity 5 mark force to 1 1 even parity 6 space force to 0 2 odd parity ata Size SINT 7 parity enabled or 8 no parity top Bits T 10 Flow Control 0 none 2 CTS RTS 1 XON XOFF 4 CTS Detect Mode Receive Count Number of bytes in Receive Buffer Write to clear Transmit Count Number of bytes in Transmit Buffer Write to clear Maximum Receive Size USINT Maximum bytes returned by Receive Buffer read Get Set Data Format USIN Bit 0 String Format 0 Short String 1 Array Bit 1 Strip Parity Bits 0 retain 1 strip Bit 2 Pad Justification 0 left 1 right Bit 3 Pad Received Message 0 no 1 yes Get Set Block Mode USINT Bit 0 Pre Post Delimiter 0 Pre 1 Post Bit 1 Strip Delimiter 0 keep 1 strip Bit 2 Delimiter Enable 0 no 1 yes Bit 3 Enable Receive Sequence Number Bit 4 Enable Transmit Sequence Number Bit 5 Resend 0 no 1 yes Bit 6 Synchronization 0 no 1 yesl Delimiter Delimiter byte value Coop Pad Character 3 Maximum Transmit Size J a Co H Z a Z 3 es JSIN c n Z 35 3 3 Lote KE CSR ez Rea Fre eel FEER WW E 2 4 5 6 7 1 1 1 1 1 1 1 MKS Instruments Inc D LP Products Group 35 CDN060 User Manu
2. 0x02 Class Access Name Value Attribute i Co N 7 et Max Instance Attribute INT Instance Access Name Attribute Number of Connections UINT Common Services Fr isi ST Ge Max Chass Identifier UIN RES Max Instance Atti 14 0x0E Get_Attribute_Single MKS Instruments Inc D LP Products Group 30 CDN060 User Manual revision 1 00 DEVICENET OBJECT The DeviceNet Object contains information about the CDN060 DeviceNet interface configuration DeviceNet Object Class Code 03 0x03 Class Access Name Value Attribute Tr Ga N Instance Access Name Value Attribute Get Set MAC ID USINT Settable only if MAC ID switches gt 63 Valid numbers are 0 to 63 Returns last value set or switch value Get Set Baud Rate USINT Settable only if Baud switch gt 2 Valid settings are 0 125K 1 250K 2 500K Returns last value set or switch value Get Set Bus Off Interrupt BOOL 0 hold CAN in OFF state default 1 reset CAN 4 Bus Off Counter USINT Writing this attribute forces counter value to zero 5 Allocation Information STRUCT of Neg eee SE 1 2 3 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 Common Services 14 0x0E Get Attribute Single 16 0x10 Set Attribute Single 75 0x4B Allocate Master Slave 76 Ox
3. 30 to 39 9 0to9 stored address 4 0to9 40 to 49 5 0 to9 50 to 59 6 0 to 3 60 to 63 MKS Instruments Inc D I P Products Group 19 CDN060 User Manual revision 1 00 Serial Channel Baud Rate Option Switch The CDN060 gateway has a rotary switch for the serial channel This switch has different functions for the CDN066 and CDN067 models The CDN066 model uses the rotary switch to select the RS232 channel baud rate Valid settings are 300 600 1200 2400 4800 9600 19200 bits per second and PRG table below When PRG is selected the CDN066 uses the Baud Rate attribute in the Serial Stream Object A valid baud rate must be written over DeviceNet to this attribute POSITION SETTING POSITION SETTING 0 9600 bps 5 300 bps 1 4800 bps 6 19200 bps 2 2400 bps 7 invalid 3 1200 bps 8 invalid 4 600 bps 9 PRG The CDN067 model does not use the rotary switch for configuration but the current switch position 0 9 can be accessed in the Serial Stream Object Option Switch attribute Power Up Gateway Connect the gateway to a DeviceNet network to power up the gateway DeviceNet Status LEDs The CDN060 gateway has two bi color status LEDs VET and MOD that indicate operational status During power up the LEDs cycle through a sequence of alternating red and green After power up the NET LED should be flashing green or solid green if allocated to a DeviceNet master and the MOD LED should be solid green If this does not occur disconnect fro
4. 7 data bits are used If no parity 8 data bits are used Stop Bits Read only attribute indicates number of stop bits in one serial byte Fixed at 1 Flow Control Selects the method of flow control used across the serial interface NONE means there is no flow control over the serial data exchange The transmitting device can overflow the receiving device s buffer XON XOFF is a software flow control option Receiving device sends an XOFF character to the transmitting device when its buffer is full stopping further transmission It sends an XON character when it can again receive data The XOFF and XON characters are not saved as message data CTS RTS is an RS232 hardware flow control option available only on the CDN066 gateway The RTS is an output and CTS is an input signal The gateway keeps RTS active low when it can receive data It only transmits data when CTS is active low CTS Detect Mode is an RS232 hardware flow control option available only on the CDN066 gateway When CTS is asserted the CDN066 serial channel can transmit and receive When CTS is not asserted the CDN066 serial channel is disabled and Receive Buffer cleared Receive Count Number of bytes currently available in the Receive Buffer Writing any value to this attribute will clear the Receive Buffer Transmit Count Number of bytes currently in the Transmit Buffer Writing any value to this attribute will clear the Transmit Buffer Maximum Rec
5. The gateway always receives 26 output bytes in the Poll Command Message regardless of the variable length messages The gateway uses the Short_String length byte to determine the valid number of message bytes in the Poll Command Message It will only transmit the valid message bytes All remaining output bytes are ignored If the gateway receives a Poll Command Message with Short_String length 0 no output bytes are transmitted The application can send variable length Short_Strings to be transmitted and send Null Data length 0 when there is no message to transmit MKS Instruments Inc D I P Products Group 67 CDN060 User Manual revision 1 00 Chapter 8 Troubleshooting Possible Cause DeviceNet Configuration Program e Register Gateway EDS file with Configuration Program does not recognize Gateway DeviceNet Configuration Program e Check Major and Minor Revisions for Gateway and EDS file to see if you have does not recognize Gateway after correct EDS file for your Gateway s firmware version loading EDS file Gateway does not appear on Check wiring and cable connections DeviceNet network 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 Make sure Gateway MAC ID is not used by another device After setting Gateway MAC ID Disconnect Gateway from network before changing MAC ID DeviceNet Master does n
6. bit in the Status Clear output byte will reset Receive Parity Error Receive Buffer Overflow Framing Error and Transmit Buffer Overflow error conditions MKS Instruments Inc D LP Products Group 12 CDN060 User Manual revision 1 00 Status Status Clear Bytes Bi Status 1 input byte Status Clear OUT output byte 0 Transmit Channel Blocked not used 1 Transmit Buffer Empty not used 2 Receive Parity Error Set 0 to clear Receive Parity Error condition 3 Receive Buffer Empty not used 4 Receive Buffer Overflow Set 0 to clear Receive Buffer Overflow condition 5 Framing Error Set 0 to clear Framing Error condition 6 Transmit Buffer Overflow Set 0 to clear Transmit Buffer Overflow condition 7 CTS Signal State 1 asserted not used A user application can use the Transmit Buffer Empty and Receive Buffer Empty status bits to monitor the transmitter and receiver states However the CDN060 gateway also has three data synchronization features Receive Sequence Number Transmit Sequence Number Handshake Protocol that an application can use to better monitor the serial operations Receiving Messages The CDN060 gateway has two modes for receiving serial data Stream Mode and Block Mode Stream Mode is best suited for applications with fixed length serial messages but it can also be used to capture any stream of serial data Block Mode is intended for both fixed and variable length message applications where a Delimiter byte denot
7. can be configured with a more robust transmit and receive synchronization process The Handshake protocol requires the user application to acknowledge the receipt of new RX Message input bytes The protocol also requires the gateway to acknowledge the transmission of the last TX Message output bytes When enabled both the Receive Sequence Number input byte and Transmit Sequence Number output byte are used They are segmented into four 4 bit numbers shown below Valid numbers are to 15 with O reserved to reset the gateway s numbers Transmit Sequence Number byte Receive Acknowledge Number Transmit Request Number Bits 4 7 upper nibble Bits 0 3 lower nibble Receive Sequence Number byte Receive Request Number Transmit Acknowledge Number Bits 4 7 upper nibble Bits 0 3 lower nibble The Receive Request Number is incremented by the gateway when it returns new RX Message input bytes in the Poll Response Message The gateway will increment from 15 to 1 skipping 0 The user application acknowledges receipt of this RX Message by setting the Receive Acknowledge Number equal to the Receive Request Number The updated Receive Acknowledge Number is sent back to the gateway in the next Poll Command Message When the Receive Acknowledge Number equals the Receive Request Number the gateway can return the next set of RX Message If the user application sends 0 as the Receive Acknowledge Number the gateway resets its Receive Request Number t
8. either a Short_String byte array with 1 byte length or a Byte Array no length byte The number of bytes in an RX Message string can be less than or equal to the Maximum Receive Size but never larger When the number is less the remaining Poll Response input bytes are either padded or undefined In Stream Mode the gateway will always try to fill Poll Response message with bytes from the Receive Buffer The only time the RX Message size is less than the Maximum Receive Size is when there are no more bytes in the Receive Buffer In Block Mode the gateway will not return any data in a Poll Response message unless it has a complete serial message saved in the Receive Buffer If the message sizes are small the gateway may have several messages saved in the Receive Buffer depending upon how fast the DeviceNet master polls the gateway for data The messages are returned one at a time in a Poll Response message regardless of their size If the message is large then it is returned in multiple Poll Response messages MKS Instruments Inc D I P Products Group 14 CDN060 User Manual revision 1 00 Padding Message Data If the number of RX Message bytes currently in the Receive Buffer is less than the Maximum Receive Size number then the remaining input bytes are undefined The gateway can optionally fill the unused input bytes with a Pad character The Pad characters can be added at the beginning or end of the message Poll Response Mess
9. evaluates each EDS file for errors in the EDS file This test do guarantee EDS file validity 4 Installation Test Results t A Cum documents downloads cdn0661r9 eds View file Cancel MKS Instruments Inc D I P Products Group 41 CDN060 User Manual revision 1 00 8 The next screen allows you to customize the gateway s icon for RSNetworx Click on Change icon Rockwell Software s EDS Wizard Change Graphic Image You can change the graphic image that is associated with a device Product Types CDN066 Change icon 9 The Change Icon screen pops up Click Browse to enter path for CDN066 icon file You can download the icon file from www mksinst com Change Icon FEU E i S mi ED An gt Cancel Browse 10 Enter the path to CDN066 icon file in the File name box Click Open to continue MKS Instruments Inc D I P Products Group 42 CDN060 User Manual revision 1 00 Look in Downloads met EF File name CDNOB7_3 Files of type Icon Files D o bw d T Cancel 11 The CDN066 icon should have changed to the proper icon Click Next to continue Rockwell Software s EDS Wizard Change Graphic Image You can change the graphic image that is associated with a de ice Froduct Types E Communication Adapter lt Back Next gt Cancel MKS Instruments Inc D I P Products Group 43 CDN060 User Manual revisi
10. no parity selected and 7 if party selected Stop Bit Read only value always set to 1 Flow Control Click on arrow to the right of the current value to select from pull down menu Receive Count Read only value Transmit Count Read only value Maximum Receive Size Click on current value and enter desired number in decimal Maximum Transmit Click on current value and enter desired number in decimal Data Format Click on kal to open selection box Click on check box to select the desired option The Delimiter Mode uses bits 0 1 2 3 of the byte Ignore bits 4 through 7 Data format EI 00 String Format O 01 Strip Parity O 02 Pad Left 0 Right 1 03 Pad 04 05 DE 07 i Cancel Block Mode Click on L to open up selection box Click on check box to set or clear the desired bit The Serial Status byte uses bits 0 through 6 Ignore bit 7 Block Mode Pre Post Delimeter Stript Delimeter Delimeter Enable Rev Seq Number Enable Xmit Seq Number Resend Sync Bit i Cancel Receive Delimiter Click on current value and enter number in decimal Pad Char Click on current value and enter number in decimal MKS Instruments Inc D I P Products Group 52 CDN060 User Manual revision 1 00 Configure DeviceNet Master Scanlist After all the object instances have been configured the DeviceNet master can be configured to poll the gateway 1 Before using the RSNe
11. serial printer RS232 channel is connected to a CDN066 serial channel The CDN066 DeviceNet channel is connected to the PLC DeviceNet scanner The DeviceNet network is powered by an external 24VDC power supply PLC amp DeviceNet Scanner CDN066 Serial Printer Gateway Serial Printer The serial printer s RS232 channel is set for 300 bps 7 data bits even parity and 1 stop bit It uses XON XOFF software flow control CDN066 Gateway The CDN066 serial channel is configured to transmit this RS232 message format A string format will be Byte Array since the message size is fixed Transmit Sequence Numbers will be used to signal a new message to transmit The Maximum Transmit Size is 25 which is the number of message bytes The Serial Stream Object attributes are shown below for this application The 3rd column lists the address string if using Set_Attribute_Single commands to write the attribute values Serial Stream Object Configuration Class Code 64 or 0x40 Attribute Data Class Instance Attribute Data Description 6 Baud Rate 5 0x40 0x01 0x06 0x05 5 300 bps 7 Parity 1 0x40 0x01 0x07 0x01 1 Even parity 10 Flow Control 1 0x40 0x01 Ox0A 0x01 1 XON XOFF 14 Data Format 00000000 0x40 0x01 Ox0E 0x00 String Format Byte Array 15 Block Mode 00010000 0x40 0x01 OxOF 0x10 Transmit Sequence Number enabled 18 Max Transmit Size 25 0x40 0x01 0x12 0x19 Fixed message size of 25 bytes The gateway will transmit 25 out
12. 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 CDN060 User Manual revision 1 00 DeviceNet Interface The CDN060 gateway operates as a DeviceNet slave It supports Explicit Messages and Polled I O Messages of the predefined master slave connection set The Explicit Unconnected Message Manager UCMM is not supported There are four independent processes operating in a CDN060 gateway application The first process is the exchange of input and output data between the user application program and the DeviceNet master The second process is the exchange of input and output data between the gateway and DeviceNet master using Polled I O messaging The third process is receiving serial messages and converting it to input data The fourth process is converting output data and transmitting it as serial messages The DeviceNet Polled I O Message process consists of the Dev
13. used to indicate when a new message is returned The Serial Stream Object can now be configured The following shows the Serial Stream Object attribute settings for this application The 3rd column lists the address string if using Set_Attribute_Single commands to write the attribute values Serial Stream Object Configuration Class Code 64 or 0x40 Attribute Data Class Instance Attribute Data Description 6 Baud Rate 0 0x40 0x01 0x06 0x00 0 9600 bps 7 Parity 0 0x40 0x01 0x07 0x00 0 no parity 10 Flow Control 2 0x40 0x01 Ox0A 0x02 2 CTS RTS 13 Max Receive Size 15 0x40 0x01 0x0D 0x0F Receive messages up to 15 bytes 14 Data Format 00001101 0x40 0x01 0x0E 0x0D Pad receive message Pad justificaiton right end of msg String Format Short_String 15 Block Mode 00101101 0x40 0x01 Ox0F 0x2D Resend enabled Receive Sequence Number enabled Delimiter enabled Pre Delimiter 16 Delimiter STX 0x40 0x01 0x10 0x02 0x02 ASCII STX character 17 Pad Character NUL 0x40 0x01 0x11 0x00 0x00 ASCII NUL character The gateway will return up to 16 bytes of Receive Data because the Maximum Receive Size is set to 15 and the data format is Short String add 1 for length byte The Status byte is not enabled The Receive Sequence Number byte is enabled The Poll Produce Size can now be calculated for this CDN060 configuration Status byte 0 Receive Sequence Number byte 1 Short_String length byte 1 Maximum Receive Size 15 Poll Prod
14. using the rotary switches Configure switches before connecting to the DeviceNet network There is either a small triangular indicator or white indicator on the switch Use a small screwdriver to align that indicator with the desired setting Remove the CDN060 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 CDN060 uses the baud rate saved in its retentive memory A valid baud rate must be stored before the PGM selection can be used The baud rate is stored from the previous CDN060 power cycle It can also be set over the network DeviceNet Object Baud Rate attribute POSITION SETTING POSITION SETTING 0 125 Kbps 5 invalid 1 250 Kbps 6 invalid 2 500 Kbps 7 invalid 3 invalid 8 invalid 4 invalid 9 PGM MAC ID Switches The two MAC ID switches represent decimal numbers from 00 to 99 The LSB switch selects the Ones digit and the MSB switch selects the Tens digit Walid MAC IDs are 00 to 63 Setting a MAC ID address greater than 63 forces the gateway to use the MAC ID saved in retentive memory A valid MAC ID must first be stored before this feature can be used The MAC ID is stored from the previous CDN060 power cycle It can also be set over the network DeviceNet Object MAC ID attribute MSB LSB Address MSB LSB Address 0 0to 9 00 to 09 6 4to9 stored address 1 0to9 10 to 19 7 0to 3 stored address 2 0to9 20 to 29 8 0to9 stored address 3 0to9
15. 066 serial channel is configured to transmit this RS232 message format A string format will be Short_String since the message size is variable The Maximum Transmit Size is 25 since the largest text message contains 25 characters The Serial Stream Object attributes are shown below for this application The 3rd column lists the address string if using Set_Attribute_Single commands to write the attribute values Serial Stream Object Configuration Class Code 64 or 0x40 Attribute Data Class Instance Attribute Data Description 6 Baud Rate 5 0x40 0x01 0x06 0x05 5 300 bps 7 Parity 1 0x40 0x01 0x07 0x01 1 Even parity 10 Flow Control 1 0x40 0x01 0x0A 0x01 1 XON XOFF 14 Data Format 00000001 0x40 0x01 OxOE 0x01 String Format Short_String 15 Block Mode 00000000 0x40 0x01 0x0F 0x00 Transmit Sequence Number disabled 18 Max Transmit Size 25 0x40 0x01 0x12 0x19 Fixed message size of 25 bytes The gateway will transmit the output bytes received in a Poll Command Message The Status Clear byte is not enabled The Transmit Sequence Number is not enabled The Length Byte is enabled Short String format The Poll Consume Size can now be calculated for this CDN060 configuration Status Clear byte 0 Transmit Sequence Number byte 0 Short_String length byte 1 Maximum Receive Size 25 Poll Produce Size 26 The format of the Poll Command Message output bytes is as follows Short_String length message data 1 byte 25 bytes
16. 0x01 0x06 0x00 0 9600 bps 7 Parity 0 0x40 0x01 0x07 0x00 0 no parity 10 Flow Control 2 0x40 0x01 0x0A 0x02 2 CTS RTS 13 Max Receive Size 15 0x40 0x01 0x0D 0x0F Receive messages up to 15 bytes 14 Data Format 00000001 0x40 0x01 OxOE 0x01 String Format Byte Array 15 Block Mode 00000110 0x40 0x01 OxOF 0x06 Delimiter enabled Strip Delimiter enabled Post Delimiter 16 Delimiter ETX 0x40 0x01 0x10 0x03 0x03 ASCII ETX character The gateway will return up to 16 bytes of Receive Data because the Maximum Receive Size is set to 15 and the data format is Short String add 1 for length byte The Status byte is enabled The Receive Sequence Number byte is not enabled The Poll Produce Size can now be calculated for this CDN060 configuration Status byte 1 Receive Sequence Number byte 0 Short_String length byte 1 Maximum Receive Size 15 Poll Produce Size 17 MKS Instruments Inc D I P Products Group 63 CDN060 User Manual revision 1 00 The format of the Poll Response Message input bytes is as follows Status Short String length Short String data undefined bytes 1 byte 1 byte 0 15 bytes The gateway always returns 16 input bytes in the Poll Response Message even if the scanned barcode data contains fewer bytes or if a new barcode message has not been received The gateway returns new message data only once and returns a null data string if there is no new message data The application should use the Short Stri
17. 4C Release Master Slave MKS Instruments Inc D LP Products Group 31 CDN060 User Manual revision 1 00 ASSEMBLY OBJECT The Assembly Object instances bind attributes of multiple objects to allow data to or from each object to be sent or received over a single connection Assembly Object Class Code 04 0x04 Class Access Name Type Value Ga Revision on P 2 ca Macs onr P Instance Access Name Type Value Attribute 3 Get Data Stream note 1 Instance 1 for input data stream Instance 2 for output data stream Common Services 14 0x0E Get Attribute Single 16 0x10 Set Attribute Single Instance 1 Input Data Stream and Instance 2 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 Poll Response Message The Output Data Stream is the data returned in the Poll Command Message See Chapter 3 for a complete description of the the Poll Format Poll Response Status byte Receive Sequence Number byte Short_String Length byte RX data bytes Poll Command Status Clear byte Transmit Sequence Number byte Short_String Length byte TX data bytes MKS Instruments Inc D I P Products Group 32 CDN060 User Manual revision 1 00 CONNECTION OBJECT The Connection Object instances manage the characteristics of each communication connection The CDN060 is a Group 2 Only Slav
18. 66 device supports the following DeviceNet object classes 04 0x04 Assembly 05 0x05 64 0x40 Serial Stream Object MKS Instruments Inc D LP Products Group 28 CDN060 User Manual revision 1 00 IDENTITY OBJECT The Identity Object is required on all DeviceNet devices It provides product identification and general information Identity Object Class Code 01 0x01 Class Access Name Value Attribute I a Revision ver P 2 ca Ma Objectnsence Sr d Max Class Identifier 7 7 Max Instance Attribute 7 Attribute 1 Get Vendor 59 D LP Products NT JE Product Type Get Product Code et Revision Major Revision Minor Revision et G G 5 Device Status 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 Cc Z Bit 1 3 12 15 reserved 0 Ger Serial Number 7 Get Product Name TRUCTof TI Length PUNT ff Name Common Services Service Code Instance 05 0x05 Yes 14 Ox0E Yes Get Attribute Single MKS Instruments Inc D LP Products Group 29 CDN060 User Manual revision 1 00 ROUTER OBJECT The Message Router Object provides a messaging connection point through which a Client may address a service to any object class or instance residing in the CDN060 device Router Object Class Code 02
19. Appendix C ASCII Character Codes ee 5 54 E te EE Null Start of heading Start of text End of text End of transmit Enquiry Acknowledge Bell Backspace Horizontal tab Line feed Vertical tab Form feed Carriage return Shift out Shift in Data line escape Device control 1 Device control 2 Device control 3 Device control 4 Negative acknowledge Synchronous idle End of transmit block Cance End of medium Substitute Escape File separator Group separator Record separator Unit separator OD JO OS Oh zz OH oO OO JO Om P Go MA Or Sne bei S Se 40 HO 00 Sr Se OmnmpOm SG 1 e e HM re X Ec E en D a D D OD n Er TO D Oo o S H MKS Instruments Inc D LP Products Group 71
20. CDNO60 Series DeviceNet Gateway User Manual CDN066 1 isolated RS232 channel CDN067 1 isolated RS422 RS485 channel CDN060 User Manual revision 1 00 Table of Contents CHAPTER T OVERVIENW EE 4 CHAPTER 2 INS TATA TION ee Ee 5 MOUNTING tg EE 5 WIRING tect IEEE Seite let SYES Pig LET EE 6 GATEWAY fO RA T ON ae Ae EA EE HERE DeviceNet Object Model DeviceNet Inter ACE Sess DE A EEN ENE EA eege Serial Channel Interface Asynchronous Serial Communictaion Status Information Receiving Mossad e Siero e E E tee Stream Mode crose sorger isen a a A E A a A S Eed sade E e EEN Ea Block Mode saa sirene Returning Received Data Padding Message Data Resending Received Data Transmitting Messages 2 Synchronization eee Receive Sequence Number Transmit Sequence Number Synchronous Handshake Protocol CHAPTER 4 GATEWAY CONFIGURATION uuu ssssscsssessssesecsssesessssssssssssssssnsesscsssessssssssessssssssesesessssesssssssssossssesees 19 CONFIGURE DEVIGENET INTERFACE eet gg EEN EE EES obese is EEN ed 19 DeviceNet Baud Rate Switch 19 Device et Status LE DS ar ie asta a ae ia a SGA ves SEE Said a i Sahai cia cai bankas Serial Channel Status LEDs Register EDS File s r CONFIGURE SERIAL CHANNEL CONFIGURE DEVICENET MASTER SCANLIST stenten ttost tee st ostten ttost esestesteseseesteneetnt 27 POLL TEE 27 IE E EAS E AEE ANETES ENEE E TEE EAEE ENA 27 CHAPTER 5 DEVICENET SPECIFICATIONS eeess
21. Enable Transmit Sequence Number 0 no 1 yes Bit 5 Resend 0 no 1 yes Bit 6 Synchronization 0 no 1 handshake protocol 19 Idle String Short String 1 16 byte string transmitted when gateway receives a null Poll i d Stri th 0 for no Idle String MKS Instruments Inc D I P Products Group 22 g es ata Size top Bits G Nn Ea FA 10 e Flow Control 11 12 3 14 C Lo E 4 Receive Count Transmit Count C Lo 5 E 4 n 5 Z 4 Maximum Receive Size Data Format 15 Block Mode C Lo 5 Z 4 CDN060 User Manual revision 1 00 Fault String Short String 1 16 byte string transmitted when gateway s Polled I O connection times out Short String length 0 for no Fault String Status Enable USINT Set to any nonzero value to enable Status input byte USINT CDN067 only Enables RS422 full duplex 4 wire operation Status Clear Enable USINT Set to any nonzero value to enable Status Clear output byte Option Switch USINT CDN067 only Position of Option rotary switch 0 9 Receive Data Data from the last valid message packet Receive Data includes the Status and Receive Sequence Number bytes if enabled and the RX Message bytes The RX Message format is either Short_String or Byte Array defined by Data Format attribute If no message data is available the RX Message will be a null packet or Short String with length 0 Receive Data is returne
22. NOOO Gateways E 67 CHAPTER 8 TROUBLES LOOTING wiieccsvccecdsccccscccecasascsccsuschiccscsensubsecstenssedtessesasecavistecssecsconssesnonsescsesteessesseachesesessescses ad 68 APPENDIX A PRODUCT SPECIFICATIONS ssssscssssssscsssecsssessscsccessscescocsssosssceccassncassassccassssacsasscsessasscsassssaseasess 69 DEVICENET INTERESSE SEO ni 69 DERTAL CHANNEL estate cahesesovesevaceoseeesvceesteschsseeeetsuesewegessetevadaeapbedesshesesdveseceesdones sbavesueochssteegesessuoceseasdspnedeepmadesshescseveseotss 69 ENVIRONMENEAT sees EE ei Ng ae ie gos 69 APPENDIX B DEVICEN ET TEMPLATE crnci osios eisie oa oies ae Eisi eiaei rias 70 APPENDIX C ASCII CHARACTER CODES esssesesesosescococseseccocoscececcososeeccceosesescoceesescocosceseocososcececsososescecsoseseoceceessosoese 71 MKS Instruments Inc D I P Products Group 3 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 Serial Channel CDN066 RS232 full duplex CDN067 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 leve
23. P Products Group 62 CDN060 User Manual revision 1 00 Example 3 Receiving Post Delimited Data Same configuration as Example 1 Barcode Scanner The barcode scanner s RS232 channel is set for 9600 bps 8 data bits no parity and 1 stop bit When it reads a UPC label it transmits following ASCII message format The message always begins ends with the ASCII ETX end of text 0x03 character The barcode data will consist of a variable number of 1 to 14 ASCH characters depending upon the UPC label being scanned It will not transmit a 0x03 in the barcode data field ASCII barcode data ETX CDN066 Gateway The receive mode will be Post Delimiter Mode because the barcode messages always end with the same character The Delimiter is 0x03 ETX and will not be included in the receive data The Maximum Receive Size is 15 because the largest message contains 14 ASCII bytes and 1 ETX byte The received bytes will be returned a Short String The gateway will only return new data bytes once in the Poll Response Message The Status byte will be enabled The Serial Stream Object can now be configured The following shows the Serial Stream Object attribute settings for this application The 3rd column lists the address string if using Set_Attribute_Single commands to write the attribute values Serial Stream Object Configuration Class Code 64 or 0x40 Attribute Data Class Instance Attribute Data Description 6 Baud Rate 0 0x40
24. Poll Response Message or Byte Array 4 Transmit Data Short_String Message data to transmit Received in Poll Command Message or Byte Array 5 Status USINT Bit 0 Transmit Channel Blocked Bit 1 Transmit Buffer Empty Bit 2 Receive Parity Error set 0 to clear Bit 3 Receive Buffer Empty Bit 4 Receive Buffer Overflow Error set 0 to clear Bit 5 Framing Error set 0 to clear Bit 6 Transmit Buffer Overflow Error set 0 to clear Bit 7 CTS Signal State 1 asserted Baud Rate USINT 0 9600 bps 4 600 bps 1 4800 bps 5 300 bps 2 2400 bps 6 19200 bps 3 1200 bps 7 Parity USINT 0 no parity 5 mark force to 1 1 even parity 6 space force to 0 2 odd parity SINT T SINT 0 none 2 CTS RTS 1 XON XOFF 4 CTS Detect Mode Number of bytes in Receive Buffer Any write clears buffer Number of bytes in Transmit Buffer Any write clears buffer Defines the maximum bytes returned by RX Message read Bit 0 String Format 0 Short String 1 Byte Array Bit 1 Strip Parity Bits 0 retain 1 strip Bit 2 Pad Justification 0 left justify 1 right justify Bit 3 Pad Received Message 0 no 1 yes Bit 0 Pre Post Delimiter 0 pre delimiter 1 post delimiter Bit 1 Strip Delimiter 0 keep delimiter 1 strip delimiter Bit 2 Delimiter Enable 0 no 1 yes Bit 3 Enable Receive Sequence Number 0 no 1 yes Bit 4
25. TION 1 NC No Connect Do not connect any wires to NC pins 2 RXD Receive Data RS232 input signal 3 TXD Transmit Data RS232 output signal 4 NC No Connect 5 GND Ground Common for RS232 signals 6 NC No Connect 7 RTS Request To Send RS232 output signal 8 CTS Clear To Send RS232 input signal 9 NC No Connect MKS Instruments Inc D I P Products Group 6 CDN060 User Manual revision 1 00 CDN067 2 WIRE RS485 configuration PIN SIGNAL DESCRIPTION 1 DATAB RS485 differential data I O signal 2 DATAA RS485 differential data I O signal 3 TR Internal 120Q Terminating Resistor connected between pins and 3 Connect pin 2 to pin 3 to terminate DATA signals Use at end of long twisted pair cable 4 NC No Connect Do not connect any wires to NC pins 5 NC No Connect 6 NC No Connect 7 NC No Connect 8 NC No Connect 9 RC Repeater Control Output signal for controlling a half duplex RS485 repeater Active low when gateway is receiving CDN067 4 WIRE RS422 configuration PIN SIGNAL DESCRIPTION 1 RXB RS422 differential receive data input signal 2 RXA RS485 differential receive data input signal 3 TR Internal 120Q Terminating Resistor connected between pins and 3 Connect pin 3 to pin 2 to terminal RX signals Use at end of long twisted pair cable 4 LOOP Connect pin 4 to pin 5 to enable transmitter on pins 6 amp 7 5 LOOP Connect pin 4 to pin 5 to enable transmit on pins 6 amp 7 6 TXB RS422 differentia
26. Tx Size jo 4 Bytes Poll Rate Even Scan v Cancel Restore 0 Sizes 8 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 Scanner Configuration Applet 3 The changes that have been made result in additional 1 0 data that is not mapped we Do you want to Automap this data MKS Instruments Inc D I P Products Group 56 CDN060 User Manual revision 1 00 10 Select the Input tab to view the automapped CDN066 input bytes 1747 SDN Scanner Module i 03 CDN066 Polled 16 1 1 1 0 Options Memory Discrete D Start Word fo SS Bits 15 0 15 14 1312 11 10 al ele 615 413 2 iio E S Cancel 11 Click the Advanced button to view 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 Advanced Mapping 03 CDNO66 0 0 Discrete 1 0 128 lt not mapped gt lt not mapped gt lt not mapped gt Map From Message Polled v Byte 0 4 D Map To Word 1 fa Bit H SM Memory Discrete v Apply Mapping Delete Mapping MKS Instruments Inc BitLength 128 H Close Help Close D I P Products Group 57 CDN060 User Manual revision 1 00 12 Sel
27. age Data Receive Sequence Number other input bytes 1 The are enough message bytes in Receive Buffer to fill Poll Response RX Message bytes 2 The are not enough message bytes in Receive Buffer to fill Poll Response Unused RX Message bytes input bytes are undefined undefined 3 The are not enough message bytes in Receive Buffer to fill Poll Response Pad bytes RX Message bytes are added after message bytes Pad Bytes 4 The are not enough message bytes in Receive Buffer to fill Poll Response Pad bytes Pad Bytes are added before message bytes RX Message Bytes If configured for Pre Delimiter Block Mode and the Delimiter byte is saved the Pad characters are added either after the last valid message byte right justification or before the Delimiter byte left justification If configured for Post Delimiter Block Mode and the Delimiter byte is saved the Pad characters are added either before the first valid message byte left justification or after the last valid message byte but before the Delimiter byte right justification Resending Received Data The CDN060 gateway can be configured to return received message bytes only once in a Poll Response message and return no data null value in subsequent Poll Response messages until new message bytes are received For the Short_String data type a null value consists of the length byte 0 For the Byte Array data type a null value consists of no data The gateway
28. al revision 1 00 Get Set Idle String Short_String Byte string transmitted when gateway receives null Poll no input bytes Length 0 for no Idle String connection times out Length 0 for no Fault String 24 Geuse Option Swich Common Services Instance 05 0x05 No 14 0x0E Get_Attribute_Single 16 0x10 No ___ Yes_ __ Set_Attribute_Single MKS Instruments Inc D I P Products Group 36 CDN060 User Manual revision 1 00 Chapter 6 RSNetworx Configuration Example This chapter shows how to set up configure a CDN066 gateway using the Rockwell Software RSNetworx software and your gateway s Electronic Data Sheet EDS file The system configuration uses an Allen Bradley 1770 KFD DeviceNet adapter MAC ID 62 to connect the PC running RSNetworx to the DeviceNet network A SLC500 system with a 1747 SDN DeviceNet Scanner MAC ID 00 is the DeviceNet master CDN066 gateway has MAC ID 03 Allen Bradley SLC500 4 Slot Rack 1746 A4 L N 120VAC 24vdc output SLC502 DeviceNet 8 pt Input 8 pt Output Input Fuse 3A 1747 P1 PLC CPU Scanner module module CH S 120 240VAC 1747 L524 1747 SDN 1746 IV8 1746 OB8 Neutral TT e imal OG Ki GND 5 SE e R S 2 oO Le o O PC Interface d o To PC RS232 25 Module S 2 o Pin Serial Interface 1747 PIC Z PS to DeviceNet Dist S a For Used with RS232 PLC IG Pn i aj L BUS gel RS232 serial S 2 Shield Drain c
29. can also be configured to always return received message bytes in a Poll Response message If no new bytes in the Receive Buffer then the last received bytes are returned If new bytes are in the Receive Buffer then they are returned The gateway provides Receive Sequence Number or Handshake Protocol synchronization options to indicate whether the returned bytes represent old or new data MKS Instruments Inc D I P Products Group 15 CDN060 User Manual revision 1 00 Transmitting Messages The Serial Stream Object receives output bytes TX Message from the DeviceNet master in a Poll Command message It saves the output bytes in the Transmit Buffer to be transmitted when the serial channel is available The maximum number of bytes that can be sent in one Poll Command message is defined by the Maximum Transmit Size attribute The Transmit Buffer can hold up to 64 bytes Because the DeviceNet Polled I O data exchange may occur many times faster than the transmission of serial data the application may need to synchronize the transmit data exchange with the gateway The number of output bytes in the Poll Command message is fixed The Status Clear and Transmit Sequence Number bytes are always sent if enabled The remaining number of bytes in the Poll Command is defined by the Maximum Transmit Size attribute If the number of TX Message bytes sent is less than the Maximum Transmit Size number then the remaining output bytes are undefined The gatewa
30. d in the DeviceNet Poll Response Message Receive Data Receive Sequence Number RX Message Data Format Data Format XXXXXxx0 XXXXXxxl1 Short_String data bytes Byte Array data bytes Transmit Data Data to transmit out the serial channel by the gateway Transmit Data includes the Status Clear and Transmit Sequence Number bytes if enabled and the TX Message bytes Format is either Short_String or Byte Array defined by Data Format attribute Transmit Data is typically received in the DeviceNet Poll Command Message Reading Transmit Data returns the last byte in the Transmit Buffer Transmit Data Transmit Sequence Number TX Message Data Format ee Data Format XXXXXXXO XXXXXXX 1 Short_String data bytes Byte Array data bytes Status Contains bit mapped serial channel status and error bits for transmit and receive operations Clearing the bits indicated will clear the error condition Baud Rate Sets the serial channel s data or baud rate Enter number from 1 6 to select corresponding baud rate value For CDN066 the RS232 Baud Rate switch must be set to PRG before this attribute can be used to set the baud rate MKS Instruments Inc D I P Products Group 23 CDN060 User Manual revision 1 00 Parity Selects the parity type used in the serial byte Data Size Read only attribute indicates number of data bits in one serial byte This number does not include start parity or stop bits If parity is enabled
31. e added to the 1747 SDN Scanlist t 1747 SDN Scanner Module General Module Scanlist Input Output Summary Available Devices Scanlist G nz CDN066 IV Automap on Add Ee ol Upload from Scanner Deiere Download to Scanner SES Cancel Apply Help 5 Select the Automap on Add checkbox if you want RSNetworx to automatically map the CDN066 input and output bytes into the 1747 SDN memory MKS Instruments Inc D I P Products Group 54 CDN060 User Manual revision 1 00 6 Select the CDN066 under Available Devices and click the button to transfer to Scanlist 1747 SDN Scanner Module General Module Scanlist Input Output Summary Available Devices Scanlist m w CDNOEE IV Automap on Add ode Acti E t Key Upload from Scanner ei one e SS Download to Scanner g Scanner Configuration Applet WARNING Node 03 CDN366 4 does not contain any I O data MKS Instruments Inc D I P Products Group 55 CDN060 User Manual revision 1 00 8 Click on the Edit I O Parameters button Use the and buttons to set Rx Size to the calculated Poll Consume Size value and the Tx Size to the calculated Poll Produce Size value Click Apply to update I O parameters Edit 1 0 Parameters 03 CDNO66 T Strobed 4 rf Change of State Cyclic 7 o Rix Size Bytes r Rx Size WW Polled Tx Size Fix Size fo H Bytes Heartbeat Rate
32. e device that supports 1 Explicit Message Connection Instance 1 and 1 Poll Message Connection Instance 2 Connection Object Class Code 05 0x05 Class Access Name Type Value Attribute S Instance Access Name Value Attribute Instance Type 0 Explicit Message 1 I O Message Transport Class Trigger USINT 0x83 for Explicit Message 0x82 for I O Message 4 Get Production Connection UINT Explicit Message 10xxxxxx011 produced connection id T O Message 01111xxxxxx produced connection id 0 non existent 1 configuring 2 established 3 timed out 1 2 3 5 Consumed Connection Explicit Message 10xxxxxx100 consumed connection id T O Message 10xxxxxx101 consumed connection id 0x21 for Explicit Message 0x01 for I O Message 67 for Explicit Message See Stream Object for I O Message IN Lo IS gl ais Initial Communication Characteristics Production Size Consumed Size U U 7 U i T T T 71 for Explicit Message See Stream Object for I O Message Expected Packet Rate T Default 2500 msec 12 Get Set Timeout Action 0 Timeout Explicit Message default 1 Auto Delete 2 Auto Reset I O Message default Production Path Length USINT 0 for Explicit Message 6 for I O Message Production Path STRUCT of Null for Explicit Message STRUCT for I O Message 14 Get Log Seg Class USINT i SIS Z Class Number Log Seg Instance Instance Number Log Se
33. ect the Output tab to view the automapped CDN066 output bytes 1747 SDN Scanner Module G nz CDN066 Polled 16 0 1 1 0 Options Memory Discrete DI Start Word fo Bits 15 0 15 14 13 12 11 10 31817 6 5 4 3 2 i fo i l i ojo kl kazi LA opm 1 Cancel 13 Click the Advanced button to view 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 Advanced Mapping 03 CDN066 OCH ole Polled 0 0 Discrete 1 0 128 lt not mapped gt lt not mapped gt lt not mapped gt Map From rr Map To Message Polled D Memory Discrete D Byte H 4 Word 1 a D D Bit H Bit H 29 Apply Mapping BitLength 128 H Delete Mapping Help MKS Instruments Inc D I P Products Group 58 CDN060 User Manual revision 1 00 Chapter 7 Configuration Examples This chapter contains four example gateway configurations Example I Receiving Fixed Length Data Read UPC labels into a PLC using a serial barcode scanner a CDN066 gateway and a DeviceNet scanner master The barcode scanner RS232 channel is connected to a CDN066 serial channel The CDN066 DeviceNet channel is connected to the PLC DeviceNet scanner The DeviceNet network is powered by an external 24VDC power supply Barcode Scan
34. eive Size Defines the maximum number of data bytes to be returned when the Receive Buffer is read using either an Explicit Message or a Poll Response Message Data Format Control byte that defines the format of the TX Message and RX Message bytes transferred across DeviceNet Bit 3 selects whether the RX Message bytes are padded with the Pad bytes Set this bit 1 to enable If there are not enough message bytes in the Receive Buffer to fill up the RX Message input bytes then Pad characters are added at either the beginning or end of the message bytes Bit 2 selects whether Pad bytes are added at the beginning of the message 0 left justify or at the end of the message 1 right justify This bit is used only if the Pad option is enabled MKS Instruments Inc D LP Products Group 24 CDN060 User Manual revision 1 00 Bit 1 defines whether the gateway saves the parity bit in received message bytes set 0 or if the gateway forces the parity bit to 0 in received message bytes set 1 This is typically used when receiving 7 bit ASCII data Bit 0 defines String Format for TX Message and RX Message byte strings Set to 0 for Short_String format and 1 for Byte Array format Short_String defines the first byte as an explicit length byte containing the number of bytes that follow Byte Array has an implied length derived from the Maximum Receive Size attribute Block Mode Control byte that defines the serial receive mode s
35. es the beginning or end of a message Stream Mode Stream Mode saves all received message bytes in the Receive Buffer There is no defined beginning or end to the message stream The only limitation is the gateway must send bytes from the Receive Buffer to the DeviceNet master Poll Response message faster than it saves new message bytes in the Receive Buffer or the 64 byte buffer may eventually overflow Stream Mode 0x45 0x62 0x02 0x31 0x32 0x32 0x42 0x45 0x02 0x42 0x43 0x44 Message Bytes Block Mode Block Mode uses a configurable Delimiter byte to signal the start or end of a new message packet The Delimiter cannot be used in any other part of the message or it would be incorrectly interpreted as the start or end of a message The gateway can be configured to save the Delimiter byte in the Receive Buffer or discard it In Block Mode the gateway does not return any new message data to the DeviceNet master until the entire serial message has been received The Pre Delimiter Block Mode configuration expects the Delimiter at the start of a message When a Delimiter byte is received the gateway saves all subsequent bytes in the Receive Buffer until another Delimiter is received signaling the start of another message or until the Maximum Receive Size number of bytes has been saved All bytes received after the Maximum Receive Size and before the next Delimiter are discarded In this mode the maximum number of bytes in a single message
36. g 15 Block Mode 00000000 0x40 0x01 0x0F 0x00 The gatway will return 6 bytes of Receive Data because the Maximum Receive Size is set to 5 and the data format is Short String add 1 for length byte The Status and Receive Sequence Number bytes are not enabled The Poll Produce Size can now be calculated for this CDN060 configuration MKS Instruments Inc D I P Products Group 59 CDN060 User Manual revision 1 00 Status byte 0 Receive Sequence Number byte 0 Short String length byte 1 Maximum Receive Size 5 Poll Produce Size 6 The format of the Poll Response Message input bytes is as follows Short String length Short String data 1 byte 5 bytes The gateway always returns 6 input bytes in the Poll Response Message even if a new barcode message has not been received The gateway will return new message data only once and return a null data string if there is no new message data The application should check the Short String length byte to determine if a new message is being returned A length of 5 indicates valid data bytes new message data A length of 0 indicates no valid data bytes no new message The Barcode Scanner sends the following 5 byte serial message when it reads a UPC label printed with 12345 ASCH numbers 0x31 0x32 0x33 0x34 0x35 The gateway generates the following Poll Response Message in response to the first Poll Command Message after its receives the Barcode message The Short String length i
37. g Awribuie Atribute Number U Consumed Path Length USINT 0 for Explicit Message 6 for I O Message MKS Instruments Inc D LP Products Group 33 CDN060 User Manual revision 1 00 16 Get Consumed Path STRUCT of Null for Explicit Message STRUCT for I O Message i og Seg ae Jeer Glass Number USINT on Sees inne Instance Number Tog Seg Auribute USINT Atribute Number DR Common Services 05 0x05 Reset 14 0x0E Get Attribute Single 16 0x10 Set Attribute Single MKS Instruments Inc D LP Products Group 34 CDN060 User Manual revision 1 00 SERIAL STREAM OBJECT The Serial Stream Object configures the CDN060 serial channel DN erial Stream Object Class Code 64 0x40 Class Access Name Type Attribute CU Revision 2 Max Object Instance Max Class Identifier Get 7 Max Instance Attribute 2 CDN066 24 CDNO067 Instance Access Name Type Value Attribute 3 Get Receive Data Received message data Returned in Poll Response 4 Get Set Transmit Data Data Format Message data to transmit Received in Poll Command 5 Get Set Status USINT Bit 0 Transmit Channel Blocked Bit 1 Transmit Buffer Empty Bit 2 Receive Parity Error 0 to clear Bit 3 Receive Buffer Empty Bit 4 Receive Buffer Overflow Error 0 to clear Bit 5 Framing Error 0 to clear Bit 6 Transmit Buffer Overflow Error 0 to clear Bit 7 CTS Signal State 1 asserted
38. ial 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 All dimensions are inches i 0 625 DIA On Case Wall MKS Instruments Inc D LP Products Group 5 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 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 Commu nication signal 5 CAN L BLUE Communication signal Serial Channel Interface Male DB9 Serial Connector O0000 O EE EN 6 7 8 9 CDN066 RS232 PIN SIGNAL DESCRIP
39. iation 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 DC DC Power Conversion e 24VDC DeviceNet power input VDC for Core amp DeviceNet channel isolated VDC for serial channel DeviceNet Poll Command output data 5 pin male Male DB9 mick connector connector Gateway Core e microcontroller lt a gt e RAM serial Ed Flash ROM messages Devicenet Poll Response DeviceNet Channel Serial Channel input data e 24VDC power e communications e communications DeviceNet Object or Rotary Switches e flow control Serial Stream Object Configures the DeviceNet Configures the serial channel interface baud rate and Receives and transmits serial MAC ID address 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
40. iceNet master sending output data to the CDN060 in the form of a Poll Command message and the CDN060 returning input data to the DeviceNet master in a Poll Response message The output and input data bytes are typically mapped into data files inside the DeviceNet master These data files are exchanged with the user application program The application processes the received input data from the gateway and writes new output data to the DeviceNet master which sends them to the gateway The Polled I O data exchange typically occurs at a faster rate than the serial transmit and receive operation because the DeviceNet baud rate is much greater than the serial channel baud rate The CDN060 has transmit and receive buffers to handle the slower serial processes The gateway also provides synchronization features to ensure delivery of received messages to the application program and transmission of application messages out the serial channel Input File Inputs ee a a ee ee eceive i imana Message Packet Outputs Output File DeviceNet Poll Command md Transmit gt Message Packet Serial Device DeviceNet Master Application Program CDN060 Gateway DeviceNet network MKS Instruments Inc D I P Products Group 10 CDN060 User Manual revision 1 00 The CDN060 configuration defines the number of output bytes in a Poll Command message and the number of input bytes in a Poll Response message Each Poll Command and Poll Re
41. is defined by the Maximum Receive Size attribute MKS Instruments Inc D I P Products Group 13 CDN060 User Manual revision 1 00 Incoming data stream 0x45 0x62 0x02 0x31 0x32 0x32 0x42 0x45 0x02 0x42 0x43 0x44 Pre Delimiter Mode 0x31 0x32 0x32 0x42 0x45 0x42 0x43 0x44 Delimiter 0x02 Delimiter Message Bytes Delimiter Message Bytes The Post Delimiter Block Mode configuration expects the Delimiter at the end of a message The gateway saves all received bytes in the Receive Buffer until a Delimiter is received In this mode the maximum number of bytes in a single message is limited by the Receive Buffer size 64 bytes not the Maximum Receive Size attribute ee Post Delimiter Mode 0x45 0x62 0x31 0x32 0x32 0x42 0x45 0x42 0x43 0x44 Delimiter 0x02 Message Bytes Delimiter Message Bytes Delimiter Message Bytes Returning Received Data When the gateway receives a Poll Command message it removes some or all of the bytes currently in the Receive Buffer and returns them as input bytes in a Poll Response message The Maximum Receive Size attribute defines the maximum number of bytes that can be returned in a single Poll Response message If the Receive Buffer contains more bytes than can fit into one Poll Response message the remaining bytes are returned in subsequent Poll Response messages RX Message is the string of valid message bytes returned in a single Poll Response message The RX Message byte string can be formatted as
42. it Right click and select Properties from the pop up menu You can also double click on the CDNO066 icon to open its properties box DeviceNet RSNetWorx for DeviceNet File Edit Yiew Network Device Tools Help ae WaLL Eg a SI SS 1747 SDN MDSIMS1 Scanner Module A Cut Ctrl X 00 T F Copy Ctrl C E Paste trl Delete Del Upload from Device Download to Device Class Instance Editor 6 RSNetworx displaces the following text box while is reads CDN066 EDS file Verifying Identity Verifying Identity of Node 03 CDN066 MKS Instruments Inc D I P Products Group 48 CDN060 User Manual revision 1 00 7 The CDN066 Properties Box is displayed S i CDNO66 General Parameters 120 Defaults EDS File aD conose Name CON O66 Description Address 3 i Device Identity Primary Vendor biewer Device Communication Adapter Product CDNOBBII056 ooo Catalog R5232 Gateway Revision Wm Cancel T Select the Parameters tab You will be prompted for the parameters source Select the Upload button to upload CDN066 parameters from the actual device All the CDN066 parameters are now shown in the Properties window EDS Editor Do you want to upload the configuration from the device updating the software s configuration or download the software s configuration to the device updating the device For more information press F1 Upload Download MKS I
43. ity of an incoming byte and compares it to the parity bit sent by the transmitter If the two bit values do not match then at least one serial bit value was corrupted during transmission Flow control enables the receiving device to regulate the rate of incoming data Hardware flow control uses RTS CTS signals between the devices to control the rate of transmission Software flow control uses serial characters XON OFF to control the rate CTS Detect Mode uses the CTS signal to enable serial communications Flow control helps prevent data loss if the receiving device cannot store incoming data fast enough or if its Receive Buffer is full and cannot accept more data until existing data is processed The CDN060 supports baud rates from 300 to 19200 bits per second It supports 8 data bits with no parity 7 data bits with parity and 1 stop bit The CDN067 model supports XON XOFF flow control The CDN066 model supports RTS CTS XON XOFF and CTS Detect Mode flow control options Status Information The gateway can be configured to return serial channel status information in the Poll Response message and receive error clearing commands in the Poll Command message When enabled the Status byte is returned as an input byte and the Status Clear byte is received as an output byte These bytes contain 8 status bits defined below Each bit represents either an error or state condition for the serial transmitter and receiver Clearing the associated error
44. l and customized gateways are also available upon request Serial Status LEDs Isolated Serial Channel RX TX male DB9 connector Serial Baud Rate Rotary Switch Mounting Holes DeviceNet MAC ID Rotary Switches DeviceNet Status LED REE ets s DeviceNet Channel NET MOD i i male 5 pin micro connector DeviceNet Baud Rate Rotary Switch Product Features CDN066 CDN067 e 500V isolated serial channel X X e RS232 with RTS CTS flow control X e RS422 full duplex 4 wire with terminating resistors X e RS485 half duplex 2 wire with terminating resistor repeater control signal X e XON XOFF software flow control X X e 300 600 1200 2400 4800 9600 19200 bps serial data rates X X e Configurable parity X X e 64 byte transmit and receive FIFO buffers X X e Powered from DeviceNet 24VDC X X e Loss of ground protection circuitry X X e DeviceNet slave mode supports POLL and EXPLICIT messages X X e Rotary switches set DeviceNet baud rate and MAC ID x x e Rotary switch sets serial data rate x e 4bi color status LEDs X X e Encapsulated circuit board in compact industrial case X X MKS Instruments Inc D I P Products Group 4 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 ser
45. l transmit data output signal 7 TXA RS422 differential transmit data output signal 8 TR2 Internal 120Q 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 9 NC 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 MKS Instruments Inc D I P Products Group 7 CDN060 User Manual RS232 Interface HW Flow Control RS232 ND ND Serial ers enz CDN066 Coie Whee ee RE Device Simple RS485 Interface TRA Serial Device Connect pins 2 amp 3 to terminate cable RS485 Interface with Repeater RX TX Control Repeater Connect pins 2 amp 3 to terminate cable RS422 4 Wire Interface RS422 Serial Device Connect pins 2 amp 3 RX and ecm 4 pins 7 amp 8 TX to terminate cables Connect pins 4 amp 5 MKS Instruments Inc D I P Products Group revision 1 00 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 Assoc
46. lash green when e If Transmit Sequence Number enabled make sure number is being incremented Gateway should be transmitting by the application Gateway will not transmit new data unless the Transmit data Sequence Number is changed e Verify data is being saved in Transmit Data 1747 SDN Scanner displays error e Gateway Poll Produce Size and or Poll Consume Size value do not 1747 SDN code 77 Poll Rx Tx settings MKS Instruments Inc D I P Products Group 68 CDN060 User Manual revision 1 00 Appendix A Product Specifications DeviceNet Interface Power Requirements Loss of Ground Reverse Polarity Signal Levels Serial Channel Isolation ESD Protection Overload Protection Short Circuit RS232 Output Levels Environmental Operating Temperature Storage Temperature Size inches Mounting inches PCB Encapsulation MKS Instruments Inc 11 28 Vdc 50 mA Yes 30 Vdc ISO11898 500 Volts 10 kV 30 Volts Indefinite 7 9 Volts unloaded typical 0 C to 70 C 25 C to 85 C 3 25 x 2 37 x 1 08 0 5 tabs 3 16 diameter mounting holes RTV Silicon Compound D I P Products Group 69 revision 1 00 CDN060 User Manual Appendix B DeviceNet Template 2 E OD E E je We amp E 5 O S a Kei 3 3 d gL IJ 2 Z x OD QI C S LO lt WY LO amp i 70 D LP Products Group MKS Instruments Inc CDN060 User Manual revision 1 00
47. lowing 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 770 KFD 1 in this example and click OK Browse for network Select a communications path to the desired network IV Autobrowse _Refresh_ Workstation MDSIMS1 es Linx Gateways Ethernet 2 dr 1770 KFD 1 DeviceNet 00 1747 SDN Scanner Module Gp 03 CDN066 62 Workstation MDSIMS1 RSNetWorx for DeviceNet e Before the software allows you to configure online devices you must upload or download device information When the upload or download operation J is completed your offline configuration will be synchronized with the online network Note You can upload or download device information on either a network wide or individual device basis MKS Instruments Inc D I P Products Group 46 CDN060 User Manual revision 1 00 3 RSNetworx displays the following text box while it uploads the network configuration Browsing network Not found Device at node 14 Hane Cancel 4 The following screen displays the online nodes DeviceNet RSNeiWors for DeviceNet De DR Ven Rent Device Tots Hebd A SCH EWL ANKE SEKR RH WDSMSI D D 62 Ha 3 Gren iod 3 NSE Al MKS Instruments Inc D I P Products Group 47 CDN060 User Manual revision 1 00 5 Left click on the CDN066 icon to select
48. m DeviceNet and verify all the switch settings See Chapter 8 for additional troubleshooting topics Solid Green Normal runtime device allocated as a slave Solid Green Normal Operation MKS Instruments Inc D LP Products Group 20 CDN060 User Manual revision 1 00 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 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 Register EDS File If using a DeviceNet configuration tool that supports Electronic Data Sheet EDS 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 LP Products Group 21 CDN060 User Manual revision 1 00 Configure Serial Channel The Serial Stream Object attributes control the CDN060 serial channel These settings apply to all serial transmit and receive operations Before you can set or change any gateway configuration settings make sure the gateway is not in the DeviceNet master scanlist Serial Stream Object Instance Attributes Class Code 64 3 Receive Data Short String Received message data Returned in
49. ner PLC amp DeviceNet Scanner lt CDN066 Gateway UPC labels Power Supply RS232 DeviceNet network Barcode Scanner The barcode scanner s RS232 channel is set for 9600 bps 8 data bits no parity and 1 stop bit When it reads a UPC label it transmits a 5 byte serial message which consists of the 5 ASCII characters printed on the UPC label CDN066 Gateway The receive mode will be Stream Mode since there is no defined Delimiter for the start of a message or the end of a message All received data bytes will be returned as DeviceNet input bytes The Maximum Receive Size is 5 because the Barcode Scanner messages have a fixed length of 5 bytes The data bytes will be returned as a Short_String The gateway will only return the data bytes once in a Poll Response Message The Serial Stream Object can now be configured The following shows the Serial Stream Object attribute settings for this application The 3rd column lists the address string if using Set_Attribute_Single commands to write the attribute values Serial Stream Object Configuration Class Code 64 or 0x40 Attribute Data Class Instance Attribute Data Description 6 Baud Rate 0 0x40 0x01 0x06 0x00 0 9600 bps 7 Parity 0 0x40 0x01 0x07 0x00 0 no parity 10 Flow Control 2 0x40 0x01 0x0A 0x02 2 CTS RTS 13 Max Receive Size 5 0x40 0x01 0x0D 0x05 Fixed message size of 5 bytes 14 Data Format 00000001 0x40 0x01 0x0E 0x01 String Format Short_Strin
50. ng length byte to determine if a new message is being returned A length greater than zero indicates the number of valid data bytes new message data A length of 0 indicates no valid data bytes no new message The Barcode Scanner sends the following 6 byte serial message when it reads a UPC label printed with 12345 ASCII numbers 0x31 0x32 0x33 0x34 0x35 0x03 The gateway generates the following Poll Response Message in response to the first Poll Command Message after its receives the Barcode message The Status Byte is 0x0A indicating no transmit or receive errors an empty Transmit Buffer and an empty Receive Buffer The Delimiter is stripped so the Short_String length is 5 There are 5 valid data bytes and the remaining 10 input bytes are undefined 0x31 0x32 0x33 0x34 0x35 XX XX XX XK XX XK XX XX XX XX The gateway generates the following Poll Response Message in response to subsequent Poll Command Messages until it receives another Barcode message The Short String length is 0 indicating a null data string The 15 other input bytes are undefined XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX MKS Instruments Inc D I P Products Group 64 CDN060 User Manual revision 1 00 Example 4 Transmitting Fixed Length Data Print an ASCI string from a PLC to a serial printer using a CDN066 gateway and a DeviceNet scanner master The text message string is always 25 characters long including any ASCII control characters The
51. ns What task do you want to complete AA Unregister a device This option will remove a device that has been registered by an EDS file from our database Change a device s graphic image This option allows you to replace the graphic image icon file associated with a device Create an EDS file This option creates a new EDS file that allows our software to recognize your device lt Back Cancel MKS Instruments Inc D I P Products Group 40 CDN060 User Manual revision 1 00 6 Select Register a single file option Browse for your gateway s EDS file You can download the latest EDS and ICON files from the www mksinst com website Click Next gt when you have the correct path and EDS file name in the Named box Rockwell Software s EDS Wizard Registration E Electronic Data Sheet file s will be added to your system for use in Re Software applications Register a single file Register a directory of EDS files Named C Sedn06619 eds X Browse G If there is an icon file ico with the same name as the file s you are registering then this image will be associated with the device To perform an installation test on the file s click Next lt Back Cancel 7 The next screen shows the RSNetworx installation test results Click View file to view the actual EDS file text Click Next gt to continue Rockwell Software s EDS Wizard EDS File Installation Test Results This test
52. nstruments Inc D I P Products Group 49 CDN060 User Manual i CDNO66 General Parameters 1 0 Defaults EDS File eg Select the parameter s that you want to configure and initiate an D d action using the toolbar Groups Ta Be od amp Status 00001010 Baud Rate 9600 baud Parity No parity Data Size 8 Stop bit 1 Flow control Receive count Transmit count Maximum receive size Maximum Transmit oon oon bk Go P rs CO No flow control 0 0 4 4 revision 1 00 Data format xxxx1000 Block Mode x0011000 Receive Delimiter a Pad Char a Cancel Apply Help You may now edit the Serial Stream Object attributes in this window fa e e rs e Go P rz Note that the Idle String and Fault String 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 DeviceNet RSNetWorx for DeviceNet it View Network Device Tools Help e H Apr ke 1747 SDN MDSIMS1 Scanner Module amp cut Ctrl X Copy Ctrl C E past Delete Del Upload From Device Download to Device Class Instance Editor Properties MKS Instruments Inc D I P Products Group 50 CDN060 User Manual revision 1 00 Select the Set Attribute Single service code to write an attribute value and the Get Attribute Single service code to read an attribute val
53. o 0 The following ladder logic rung shows how the user application program can monitor the gateway s Receive Request Number RX Rqst Num save the new RX Message bytes and set Receive Acknowledge Number RX Ack Num equal to Receive Request Number RX Rqst Num Did gateway increment the RX Rqst Num indicating new data Save the RX Message bytes Compare Function Copy Function RX Rqst Num lt gt RX Ack Num lt byte array gt RX Message Acknowledge receipt of new data Copy Function RX Ack Num RX Rqst Num MKS Instruments Inc D LP Products Group 17 CDN060 User Manual revision 1 00 The Transmit Request Number is incremented by the user application when it sends new TX Message output bytes in the Poll Command Message After the gateway transmits these TX Message bytes it sets the Transmit Acknowledge Number equal to the Transmit Request Number acknowledging the transmission The updated Transmit Acknowledge Number is returned in the next Poll Response Message If the user application sends 0 as the Transmit Request Number the gateway ignores the TX Message output bytes and resets its Transmit Acknowledge Number to 0 The following ladder logic rungs show how the user application program writes a new TX Message value increments the Transmit Request Number TX Rost Num and waits for the Transmit Acknowledge Number TX Ack Num to equal the Transmit Request Number TX Rast Num Note the application must wrap
54. ommunication 2 red BUS 24vdc To PC RS232 9 pin PC Interface Mod Serial Interface For gt i 1770 KFD AS DIP790 Device Used with RSLinx RS232 DeviceNet kat Net Dist Board amp RSNetWorx Proa i of N WW DeviceNet 9 pin DIN RS232 Serial Gateway Module in Color Interface to Barcode C D j CDN066 i Reader Scanner H RS232 DeviceNet F data low CAN L shield Drain data high CAN H V BUS Weigh Scale or etc DeviceNet Male Connector 3 no el crs st ano Pin 1 4 6 9 are unused ara data high CAN H data low CAN L MKS Instruments Inc D LP Products Group 37 CDN060 User Manual revision 1 00 Configure DeviceNet Interface Follow instructions in Chapter 4 to set the gateway s rotary switches to 125Kbps baud rate and MAC ID to 03 Set the RS232 Baud Rate switch to PRG mode Connect the 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 amp Register EDS File 1 Start up the RSNetworx program Select the Online operation from the Network menu DeviceNet RSNefWorx for DeviceNet Ee Edt yew fetset Devoe Took ep em i e a Et e za JEE HK 4 b M L Gioe Greatest 3 Mask Togga the be siata of the natvert Citire MKS Instruments Inc D I P Products Gro
55. on 1 00 12 The final step is to finish EDS file registration Click Next gt to complete the registration process Click Finish to close the EDS Wizard window Rockwell Software s EDS Wizard Final Task Summary This is a review of the task you want to complete You would like to register the following device CDNOEE lt Back Cancel Rockwell Software s EDS Wizard Completing the EDS Wizard You have successfully completed the EDS Wizard MKS Instruments Inc D I P Products Group 44 CDN060 User Manual revision 1 00 13 Repeat steps 1 2 and 3 to browse the DeviceNet network RSNetworx should now recognize the device at MAC ID 03 as a CDN066 gateway and display the CDN066 icon Click Cancel when finished Browse for network Select a communications path to the desired network IV Autobrowse L Workstation MDSIMS1 ee Linx Gateways Ethernet ER 70 KFD 1 DeviceNet H 00 1747 SDN Scanner Module G 03 CDN066 62 Workstation MDSIMS1 Cancel Help MKS Instruments Inc D I P Products Group 45 CDN060 User Manual revision 1 00 Configure Serial Channel Once the gateway is connected to DeviceNet and communicating with RSNetworx you can configure its serial channel Make sure the gateway is not in the DeviceNet master scanlist before changing any attribute values The Serial Stream Object attributes control the gateway s serial channel transmit and receive operations The fol
56. ot Make sure Gateway MAC ID is not used by another device recognize Gateway Verify Gateway MAC ID is set from rotary switches or retentive memory value Verify DeviceNet baud rate NET LED is flashing red e Gateway is removed from DeviceNet Master scanlist or network Power cycle Gateway to reset NET LED is solid red e Make sure Gateway MAC ID is not used by another device Possible DeviceNet network failure NET LED is off Check wiring and cable connections Check DeviceNet power supply voltage e Make sure Gateway baud rate matches network baud rate e Verify Gateway baud rate is set from rotary switches or retentive memory value If Sync enabled make sure Receive Request Number and Receive Acknowledge Number are equal Application must acknowledge last received message before gateway will receive the next message Verify data is being received in Receive Data Verify source device is transmitting data to Gateway Make sure hardware flow control signals are properly connected RX LED is solid red after Gateway Check Status byte for any Receiver errors Reset Gateway or clear Status error receives data bits if necessary e Make sure parity is set to match transmitting device settings TX LED is solid red after receiving e Check Status byte for Transmitter errors Reset Gateway or clear Status error data from DeviceNet Master bits if necessary e Make sure parity is set to match receiving device settings TX LED does not f
57. parate 64 byte serial transmit and receive FIFO buffers allowing full duplex operation when supported by the physical layer media MKS Instruments Inc D LP Products Group 11 CDN060 User Manual revision 1 00 Asynchronous Serial Communictaion Devices communicating on an asynchronous serial link exchange information one bit at a time Each bit is transmitted for a specific period of time defined by the baud rate Devices use internal timing circuitry to generate the baud rate There is no clocking signal between devices to synchronize the serial data flow hence the term asynchronous serial communications Serial data bits are organized into bytes When a data byte is asynchronously transmitted it is preceded by a start bit followed by the data bits an optional parity bit and one or more stop bits There can be a variable transmission delay between successive data bytes since each byte is framed by its own start and stop bits The receiver starts saving bits after is receives a valid start bit 0 and stops when it receives the expected number of stop bits 1 The data byte s least significant bit is transmitted first data bit 0 and the most significant bit is last data bit N start bit data bit O data bit 1 data bit N optional parity bit stop bit s The parity bit detects single bit errors in the transmission The parity bit is calculated and inserted by the transmitter The receiver calculates the par
58. put bytes received in a Poll Command Message The Status Clear byte is not enabled The Transmit Sequence Number is enabled The Length Byte is not enabled Byte Array format The Poll Consume Size can now be calculated for this CDN060 configuration Status Clear byte 0 Transmit Sequence Number byte 1 Short_String length byte 0 Maximum Receive Size 25 Poll Produce Size 26 MKS Instruments Inc D I P Products Group 65 CDN060 User Manual revision 1 00 The format of the Poll Command Message output bytes is as follows Transmit Sequence Number message data 1 byte 25 bytes The gateway always receives 26 output bytes in the Poll Command Message It will not transmit anew serial message until the Transmit Sequence Number received in the Poll Command is different than the number received in a previous Poll Command The application should increment the Transmit Sequence Number when it sends new output byte values in the Poll Command Message to enable the transmission of the new message MKS Instruments Inc D I P Products Group 66 CDN060 User Manual revision 1 00 Example 5 Transmitting Variable Length Data Same configuration as Example 4 except the text message string can be from 1 to 25 characters long including ASCII control characters Serial Printer The serial printer s RS232 channel is set for 300 bps 7 data bits even parity and 1 stop bit It uses XON XOFF software flow control CDN066 Gateway The CDN
59. s 5 since 5 bytes were received 0x31 0x32 0x33 0x34 0x35 The gateway generates the following Poll Response Message in response to subsequent Poll Command Messages until it receives another Barcode message The Short_String length is 0 indicating a null data string The 5 data bytes are undefined XX XX XX XK KX MKS Instruments Inc D I P Products Group 60 CDN060 User Manual revision 1 00 Example 2 Receiving Pre Delimited Data Same configuration as Example 1 Barcode Scanner The barcode scanner s RS232 channel is set for 9600 bps 8 data bits no parity and 1 stop bit When it reads a UPC label it transmits following ASCII message format The message always begins with the ASCII STX start of text 0x02 character The barcode data will consist of a variable number of 1 to 14 ASCII characters depending upon the UPC label being scanned It will not transmit a 0x02 in the barcode data field STX ASCII barcode data CDN066 Gateway The receive mode will be Pre Delimiter Mode because the barcode messages always begin with the same character The Delimiter is 0x02 STX The Maximum Receive Size is 15 because the largest message contains 1 STX byte and 14 ASCII bytes The received bytes will be returned as a Short String An ASCII NUL Pad character 0x00 will be added at the end of the message if needed The gateway will always return the data bytes in the Poll Response Message The Receive Sequence Number will be
60. s the maximum size of TX Message output bytes or the maximum number of data bytes to be transmitted across the RS232 channel from one Poll Command message Idle String Defines the byte string that is transmitted when the gateway receives a null Poll no input bytes or a Short_String value with length 0 Enter the byte string in Short_String data MKS Instruments Inc D I P Products Group 25 CDN060 User Manual revision 1 00 format with 1 byte string length Set the length byte to 0 if you don t want to transmit an Idle String The Idle String can be from 0 to 16 bytes long not counting Short_String length byte Example Idle String is 0x01 0x41 where string length is 1 and data byte is 0x41 A You must use the RSNetworx Class Instance Editor Set Attribute Single command to write a Short_String attribute value Fault String Defines the byte string that is transmitted when the gateway s connection to the DeviceNet master times out Enter the byte string in Short String data format with 1 byte string length Set the length byte to 0 if you don t want to transmit a Fault String The Fault String can be from 0 to 16 bytes long not counting Short_String length byte Example Fault String is 0x02 0x42 0x43 where string length is 2 and data bytes are 0x42 B and 0x43 CC You must use the RSNetworx Class Instance Editor Set Attribute Single command to write a Short_String attribute value S
61. sescccosossecccsososcscsososescococoescococosceccocoscscececsosesceccosesescoceesescocoscesecsosossse 28 DEVICENET MESSAGE TYPES DEVICENET CLASS SERVICES DEVICENET OBJECT CLASSES es Get Ge IDENTITY OBJEC E ROUTER OBJECT euer EE aa E can EEE EREA A ETES AREE E EEEE E y DEVICENET OBJECT ASSEMBLY OBJECT CONNECTION OBJEC Pd nes ear ee a anaa a ee eee T E Era E es SERIAL STREAM OBJECT MKS Instruments Inc D I P Products Group 2 CDN060 User Manual revision 1 00 CHAPTER 6 RSNETWORXM CONFIGURATION EXAMP LE u cccscssssssssssssssssessssesssscsesssssssssssssessesesessssesees 37 CONFIGURE DEVIGCENET INTERFACE vieii a E ensretter E A E Reece EN 38 CONNECT amp REGISTERED SEE edu EEN Eee a E ege d eet d de 38 CONFIGURE SERTALs CHANNEL fist E E E E EA ee dee 46 CONFIGURE DEVICENET MASTER SCANLIST T a n n E A A E E E NEEN 53 CHAPTER 7 CONFIGURATION EXAMPLES EXAMPLE 1 RECEIVING FIXED LENGTH DATA Barcode Scanner CDN066 Gateway EXAMPLE 2 RECEIVING PRE DELIMITED DATA Barcode Scanner CDN066 Gateway EXAMPLE 3 RECEIVING POST DELIMITED DATA BGT COU CSS CANMET Ais SS eee RE ee EE CDN066 Gate EXAMPLE 4 TRANSMITTING FIXED LENGTH DATA Serial Printer occeccccccccccccscccssscssccsssssssssscssesscssssscsssessssseess CIVNOO6 Gate wy ss cciicisininvsinctasensaisans es ERE AEE PE wis NEEE REEN E EEN ERR ANN E EERROR EXAMPLE 5 TRANSMITTING VARIABLE LENGTH DATA 67 Serial Printer CI
62. sponse message can contain up to 2 overhead bytes for CDN060 status and data synchronization information The remaining bytes contain output data to be transmitted out the serial channel or input data received by the serial channel The following diagram shows how the input and output bytes map into the Poll Response and Poll Command messages The gateway supports a maximum of 67 output bytes in a Poll Command message and a maximum of 67 input bytes in a Poll Response message DeviceNet Master Mapping of DeviceNet Poll Command and Poll Response Data DeviceNet Master Outputs DeviceNet Poll Command Message Data Status Clear TX Sequence Number if Other Output Bytes if enabled enabled 1 65 bytes output bytes output byte output byte output byte output byte output byte output byte output byte output byte output byte output byte DeviceNet Master Inputs DeviceNet Poll Response Message Data input bytes input byte input byte input byte input byte input byte input byte input byte input byte input bytes Serial Channel Interface The CDN060 serial channel consists of an asynchronous serial transmitter and receiver The serial interface is configured and controlled by the Serial Stream Object The Serial Stream Object attributes configure the serial channel baud rate parity and flow control This configuration applies to both the serial transmitter and receiver The CDN060 gateway has se
63. tatus Enable Write any nonzero value to include the Status byte in Receive Data input bytes Status Clear Enable Write any nonzero value to include the Status Clear byte in Transmit Data output bytes Four Wire CDN067 model only Set 0 for RS485 half duplex mode 2 wire Set 1 for RS422 full duplex mode 4 wire Option Switch CDN067 model only Returns the current Option rotary switch position 0 9 MKS Instruments Inc D I P Products Group 26 CDN060 User Manual revision 1 00 Configure DeviceNet Master Scanlist You must calculate the number of input and output bytes required by your CDN060 configuration before you can add the gateway to the DeviceNet master scan list You need to configure the DeviceNet master to send the specific number of output bytes in its Poll Command Message and receive the specific number of input bytes in the gateway s Poll Response Message Once the input and output bytes are mapped in the DeviceNet master the user application program will be able to read and write data values to the input and output bytes Poll Consume Size The Poll Consume Size is the size in bytes of the Poll Command Message data field that is sent by the DeviceNet master to the CDNO060 Poll Command data Status Clear byte Transmit Sequence Number byte Short_String length byte TX data bytes 0 64 The first 3 bytes are present if enabled The following equation is used to calculate the CDN060 Poll Cons
64. the Transmit Request Number from 15 to 1 Did gateway finish acknowledge transmitting the last message Write next output bytes to transmit Compare Function Copy Function TX Ack Num TX Rqst Num TX Message lt byte array gt Increment TX Rqst Num new data Addition Function TX Rast Num TX Rqst Num 1 If TX Rqst Number greater than 15 then reset number to I 1 15 range Compare Function Write Function TX Rqst Num 16 TX Rast Num 1 MKS Instruments Inc D I P Products Group 18 CDN060 User Manual revision 1 00 Chapter 4 Gateway Configuration This chapter describes how to configure and operate the CDN060 gateway You configure the gateway by reading and writing attribute values over its DeviceNet interface There are a variety of DeviceNet configuration tools available Simple configuration tools use GET ATTRIBUTE and SET ATTRIBUTE explicit message commands to read and write attribute values addressing each attribute by its Object Instance and Attribute numbers This information is contained in Chapter 5 More sophisticated configuration tools use EDS files to simplify attribute configuration You can configure the gateway using pull down menus buttons and data entry fields from the gateway s Electronic Data sheet EDS file Chapter 6 contains a configuration example using the Rockwell Software RSNetworx program Configure DeviceNet Interface Set the DeviceNet Baud Rate and MAC ID Address
65. tworx to map the gateway s Polled I O connection to 1747 SDN DeviceNet master scanner you must calculate the Poll Produce Size amp Poll Consume Size Chapter 4 describes how to calculate these values 2 Double click on the 1747 SDN icon to open its Properties box You can also left click on the icon to select it right click for the pop up menu and select Properties 1 1747 SDN Scanner Module General Module Scanlist Input Output Summary H 1747 SDN Scanner Module Name fi 747 SDN Scanner Module Description Address 0 Device Identity Primary Vendor Rockwell Automation AllenBradley 1 Device CommunicationAdapter 12 0 Product 1747 5DN Scanner Module 19 Catalog i 747 SDN B Revision Bo ooo Kl S Cancel Help 3 Select the Scanlist tab RSNetworx prompts you for the Scanner Configuration Click Upload to upload current 1747 SDN configuration from the node RSNetworx displays the upload progress MKS Instruments Inc D I P Products Group 53 CDN060 User Manual revision 1 00 Scanner Configuration Applet Do you want to upload the configuration from the device updating the software s configuration or download the software s configuration to the device updating the device For more information press F1 Upload Download Uploading from Scanner Uploading Scanlist Node 4 na Cancel 4 The next window shows the Available Devices that can b
66. uce Size 17 MKS Instruments Inc D I P Products Group 61 CDN060 User Manual revision 1 00 The format of the Poll Response Message input bytes is as follows Receive Sequence Number Short String length Short String data Pad bytes 1 byte 1 byte 0 15 bytes The gateway always returns 17 input bytes in the Poll Response Message even if the scanned barcode data contains fewer bytes The application should check the Short_String length byte to determine the number of valid data bytes being returned in a particular Poll Response Message The remaining input bytes have undefined values The gateway will always return the last received Short_String data in its Poll Response Message The gateway increments the Receive Sequence Number when new Short_String data is returned The application can use the Receive Sequence Number to determine if the Short_String data is new or old information The Barcode Scanner sends the following 8 byte serial message when it reads a UPC label printed with 1234567 ASCII numbers 0x02 0x31 0x32 0x33 0x34 0x35 0x36 0x37 The gateway generates the following Poll Response Message The Receive Sequence Number is 1 since this is the first message received from the Barcode Scanner The Short_String length is 8 since 8 bytes were received 7 Pad characters are added at the end of the message 0x02 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x00 0x00 0x00 0x00 0x00 0x00 0x00 MKS Instruments Inc D I
67. ue Check Values in decimal box to enter class instance attribute and data values in decimal The Idle String address is Class 64 Instance 1 Attribute Number 19 The Fault String address is Class 64 Instance 1 Attribute Number 20 Enter the Short String data as length byte then data bytes Example is 0x01 0x02 for a single byte string 0x02 ASCII STX Z Class Instance Editor Node 3 e Cum Execute Transaction Aroumertz Service Code Object Address Class Instance Attribute Value Description h i 1 i Get Single Attribute v vi Transmit Data Size Data sent to the device I Values in decimal Execute Receive Data Size Data received from the device Byte e Radix Decimal Close Help Enter the remaining Serial Stream Object attributes in the Parameters Box window Status Click on L to open selection box Shows current status and error information Click on any errors to clear check Press OK to continue Transmit Block Transmit FIFO empty Receive Parity error Receive FIFO empty Receive overflow Framing error Transmit FIFO overflow State of CTS j Cancel Baud Rate Click on arrow to the right of the current value to select from pull down menu Parity Click on arrow to the right of the current value to select from pull down menu MKS Instruments Inc D I P Products Group 51 CDN060 User Manual revision 1 00 Data Size Read only value set to 8 if
68. ume Size Only include the overhead bytes that are enabled Status Clear byte 1 Transmit Sequence Number byte 1 Short_String length byte 1 Maximum Transmit Size Poll Consume Size Poll Produce Size The Poll Produce Size is the size in bytes of the Poll Response Message data field that is sent from the CDN060 to the DeviceNet master Poll Response data Status byte Receive Sequence Number byte Short_String length byte RX data bytes 0 64 The first 3 bytes are present if enabled The following equation is used to calculate the CDN060 Poll Produce Size Only include the overhead bytes that are enabled Status byte 1 Receive Sequence Number byte 1 Short_String length byte 1 Maximum Receive Size San Poll Produce Size MKS Instruments Inc D I P Products Group 27 CDN060 User Manual revision 1 00 Chapter 5 DeviceNet Specifications This chapter describes the CDN060 gateway DeviceNet specifications DeviceNet Message Types The CDN060 is a Group 2 Slave Device that supports the following message types CAN IDENTIFIER GROUP 2 MESSAGE TYPE 10xxxxxx111 Duplicate MAC ID Check Message 10xxxxxx110 Unconnected Explicit Request Message 10xxxxxx101 Master I O Poll Command Message 10xxxxxx100 Master Explicit Request Message XXXXXX CDN060 MAC ID DeviceNet Class Services The CDN060 is a Group 2 Slave Device that supports the following class services and instance services DeviceNet Object Classes The CDN0
69. up 38 CDN060 User Manual revision 1 00 2 The following text box should pop up showing the networks connected to your computer Browse for network Select a communications path to the desired network IV Autobrowse R Workstation MDSIMS1 a n Linx Gateways Ethernet g 1770 KFD 1 DeviceNet 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 Browse for network Select a communications path to the desired network IV Autobrowse Workstation MDSIMS1 Linx Gateways Ethernet erg 1770 KFD 1 DeviceNet 00 1747 SDN Scanner Module 03 Unrecognized Device m 62 Workstation MDSIMS1 OK Cancel Help MKS Instruments Inc D I P Products Group 39 CDN060 User Manual revision 1 00 4 Click Cancel to close Browse for network window Select the EDS Wizard operation from the Tools menu Click Next gt to continue Rockwell Software s EDS Wizard x elcome to Rockwell Software s EDS Wizard The EDS Wizard allows you to register EDS based devices unregister a device change the graphic images associated with a device create an EDS file from an unknown device o continue click Next Cancel 5 Select the Register an EDS file s option and click Next gt Rockwell Software s EDS Wizard Optio
70. y uses the Short String length to determine the valid number of bytes to transmit If Byte Array format is used all the bytes are transmitted Poll Command Message Data Transmit Sequence Number other output bytes 1 TX Message bytes fill Poll Command message TX Message bytes 2 TX Message is smaller than Poll Command message Unused output bytes are undefined TX Message bytes undefined Synchronization To ensure that no information is lost between the gateway s serial channel and the user application program the CDN060 has three synchronization options Receive Sequence Number Transmit Sequence Number and Handshake Protocol Receive Sequence Number When enabled the gateway returns a Receive Sequence Number input byte in the DeviceNet Poll Response message The 8 bit Receive Sequence Number is incremented by the gateway whenever it returns new data in the input bytes The user application uses the Receive Sequence Number to signal the receipt of new message data Valid numbers are 0 255 Transmit Sequence Number When enabled the gateway receives a Transmit Sequence Number output byte in the DeviceNet Poll Command message The gateway will not send the TX Message bytes out the serial channel unless the 8 bit Transmit Sequence Number is different than the last received value Valid numbers are 0 255 MKS Instruments Inc D I P Products Group 16 CDN060 User Manual revision 1 00 Synchronous Handshake Protocol The gateway
71. ynchronization mode and resend message option Bit 6 enables the Handshake Protocol synchronization option When enabled the Receive Sequence Number byte is added to Receive Data input bytes and the Transmit Sequence Number byte is added to the Transmit Data output bytes Bit 5 enables the resend message option When enabled the gateway continuously returns RX Message data in the Poll Response message If no new data has been received then the last data bytes are returned Bit 4 enables the Transmit Sequence Number synchronization option When enabled the Transmit Sequence Number byte is added to the Transmit Data output bytes Bit 3 enables the Receive Sequence Number synchronization option When enabled the Receive Sequence Number byte is added to the Receive Data output bytes Bit 2 selects the serial receive mode Set 0 for Stream Mode and set 1 for Block Mode Bit 1 selects whether the Delimiter is saved in the Receive Buffer set 0 or it is discarded set 1 This bit is only used when Block Mode is enabled Bit 0 selects Pre Delimiter Mode set 0 or Post Delimiter Mode set 1 This bit is only used when Block Mode is enabled Delimiter Byte value used to indicate the start of a new message Pre Delimiter Mode or the end of a received message Post Delimiter Mode This attribute is only used in Block Mode Pad Character Byte value used to pad the RX Message bytes Maximum Transmit Size Define
Download Pdf Manuals
Related Search
Related Contents
User`s Manual Samsung AR5600 - Aparat de aer condiționat cu sistem Fast Cooling, 12.000 BTU/h Manual de utilizare PNY VCQ400BLK-1 NVIDIA Quadro 400 0.5GB graphics card SolidWorks 資産をより広く活用する ハンズオンセミナー in 名古屋 National Instruments GPIB Olympus IR-500 User's Manual Description générale de HOMARD 屈折式鏡筒ユニット 取扱説明書 Diversos investigadores han podido crear películas Copyright © All rights reserved.
Failed to retrieve file