D.I.P. CDN366 User Manual

Cdn36x series devicenet gateway cdn366 – 1 isolated rs232 channel cdn367 – 1 isolated rs422/rs485 channel
Table of Contents

Advertisement

Quick Links

CDN36X Series
DeviceNet Gateway
User Manual
CDN366 – 1 isolated RS232 channel
CDN367 – 1 isolated RS422/RS485 channel

Advertisement

Table of Contents
loading

Summary of Contents for D.I.P. CDN366

  • Page 1 CDN36X Series DeviceNet Gateway User Manual CDN366 – 1 isolated RS232 channel CDN367 – 1 isolated RS422/RS485 channel...
  • Page 2: Table Of Contents

    CDN36X User Manual revision 1.30 Table of Contents CHAPTER 1 – OVERVIEW ............................4 CHAPTER 2 – INSTALLATION ..........................5 ................................5 OUNTING ..................................6 IRING DeviceNet Interface .............................6 Serial Channel Interface ............................6 Wiring Examples..............................7 CHAPTER 3 – THEORY OF OPERATION......................8 CHAPTER 3 – THEORY OF OPERATION......................9 ..............................9 ATEWAY PERATION...
  • Page 3 NSTANCES ......................75 ONFIGURE EVICE ASTER CANLIST CHAPTER 7 – CONFIGURATION EXAMPLES....................82 1 – R ..........................82 XAMPLE ECEIVING Barcode Scanner..............................82 CDN366 Gateway ..............................82 2 – R ......................84 XAMPLE ECEIVING ELIMITED Barcode Scanner..............................84 CDN366 Gateway ..............................84 3 – T ........................86 XAMPLE RANSMITTING Serial Printer ..............................86...
  • Page 4: Chapter 1 - Overview

    DeviceNet Status LEDs DeviceNet Channel (NET, MOD) (male 5-pin micro connector) DeviceNet Baud Rate Rotary Switch Product Features CDN366 CDN367 • 500V isolated serial channel • RS232 with RTS/CTS flow control • RS422 full duplex (4-wire) with terminating resistors •...
  • Page 5: Chapter 2 - Installation

    CDN36X User Manual revision 1.30 Chapter 2 – Installation This chapter describes how to install and connect the CDN36X 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 CDN36X serial channel connector is not rated for NEMA4 / IP65 environments.
  • Page 6: Wiring

    WHITE Communication signal. CAN_L BLUE Communication signal. Serial Channel Interface Male DB9 Serial Connector CDN366 (RS232) SIGNAL DESCRIPTION No Connect. Do not connect any wires to NC pins. Receive Data. RS232 input signal. Transmit Data. RS232 output signal. No Connect.
  • Page 7: Wiring Examples

    CDN36X User Manual revision 1.30 CDN367 (2-WIRE RS485 configuration) SIGNAL DESCRIPTION RS485 differential data I/O signal. RS485 differential data I/O signal. Internal 120Ω Terminating Resistor, connected between pins 1 and 3. Connect pin 2 to pin 3 to terminate DATA signals. Use at end of long twisted-pair cable. No Connect.
  • Page 8 CDN36X User Manual revision 1.30 RS232 Interface, HW Flow Control DRAIN VDC+ RS232 CDNx66 VDC- Serial CAN H Device CAN L Simple RS485 Interface DATAB DATAB DRAIN DATAA DATAA VDC+ RS485 VDC- Serial CAN H Device CAN L CDNx67 Connect pins 2 & 3 to terminate cable RS422 4-Wire Interface TX B...
  • Page 9: Chapter 3 - Theory Of Operation

    CDN36X User Manual revision 1.30 Chapter 3 – Theory of Operation This chapter describes how the CDN36X gateway operates. You should have a working knowledge of DeviceNet and asynchronous serial communications before continuing. The Open DeviceNet Vendors Association (www.odva.com) is a good source for general DeviceNet information.
  • Page 10: Devicenet Object Model

    CDN36X User Manual revision 1.30 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 created by that process. An Object can have multiple Instances, or the same process operating with different sets of Attributes or data values.
  • Page 11 CDN36X User Manual revision 1.30 Input File Inputs DeviceNet I/O Response Receive input data Message Packet Outputs Output File DeviceNet I/O Command Transmit output data Message Packet DeviceNet Master Serial Device Application Program CDN36X Gateway DeviceNet network The first 2 output data bytes received from the DeviceNet master contain synchronization bits for the gateway transmit and receive operations.
  • Page 12 CDN36X User Manual revision 1.30 DeviceNet Master Mapping of DeviceNet I/O Command and I/O Response Data DeviceNet Master Outputs DeviceNet I/O Command Message Data TX Toggle RX Ack STO Inst 1 STO Inst 2 STO Inst 3 STO Inst 4 STO Inst 5 STO Inst 6 STO Inst 7...
  • Page 13: Serial Channel Interface

    CDN36X User Manual revision 1.30 Serial Channel Interface The CDN36X serial channel consists of an asynchronous serial transmitter and receiver. The serial interface is configured and controlled by the Serial Stream Object, Serial Receive Object, and Serial Transmit Object. Serial Stream Object The Serial Stream Object attributes configure the serial channel’s baud rate, number of data bits and stop bits, parity, and flow control.
  • Page 14: Serial Receive Object

    CDN36X User Manual revision 1.30 Serial Receive Object The Serial Receive Object processes the Message Packet bytes, converting them into an input data value that is returned to the DeviceNet master in an I/O Response Message. The Message Packet bytes can be converted into a Short_String data type (byte array, with 1 byte = length).
  • Page 15 CDN36X User Manual revision 1.30 Example 1 Serial Receive Object instances 1, 4, 5, 7 are configured to use portions of a received message packet. 1) Serial Stream Object configured to capture a 15 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45 byte message packet (Length Mode, Packet Length = 15).
  • Page 16 CDN36X User Manual revision 1.30 Example 2 Serial Receive Object Instances 1 & 2 are configured to process two different ASCII message strings. Each instance uses unique Pre-String and Post-String values to identify its message string in the message packet. Instance 1 message string = ‘VALUE = xxx U’.
  • Page 17: Serial Transmit Object

    CDN36X User Manual revision 1.30 Serial Transmit Object The Serial Transmit Object receives an output data value from the DeviceNet master in the I/O Command Message. The object converts the output data into a serial message packet to transmit out the serial channel. The output data format can be a Short_String (byte array, with 1 byte = length), a signed or unsigned integer, or a real number data type.
  • Page 18: Asynchronous Serial Communictaion

    CDN36X User Manual revision 1.30 Example 1 Serial Transmit Object Instances 1 & 2 configured to transmit two different serial messages. 1) Serial Transmit Object Instance 1 configured to convert a Short_String data output value into message bytes. DeviceNet output bytes = [ 0x04 0x30 0x31 0x32 0x33 ] Transmitted message packet = [ ‘0123’...
  • Page 19: Data Conversion

    CDN36X User Manual revision 1.30 The parity bit is used to detect single-bit errors in the transmission. The parity bit is automatically calculated and inserted by the transmitter. The receiver calculates the parity 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.
  • Page 20 CDN36X User Manual revision 1.30 The Precision attribute is only used for transmitted messages. It defines the number of digits (1 to 6) after the decimal point for a floating-point number. The gateway will automatically add trailing zeros to the converted number if needed. Precision is only used for the REAL data type. The following examples show how to calculate the Data Size, Width, and Precision attributes for the different Data Types.
  • Page 21 CDN36X User Manual revision 1.30 Example 1 – Data Type = Short_String, Data Size = 9 Received ASCII data is ‘12345678’. The Serial Receive Object Instance coverts this to 9 bytes of Receive Data , [0x08, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38] or [0x08, ‘12345678’]. The first byte defines the Short_String length as 8 bytes.
  • Page 22: Serial Receive Example

    CDN36X User Manual revision 1.30 Serial Receive Example The following example shows how the CDN36X gateway captures a serial message packet, processes the packet, converts the data into a number, and returns it as a DeviceNet input value. The gateway’s Serial Stream Object is configured for the List delimiter mode, with a one-byte Pre-Delimiter string and a two-byte Post-Delimiter string.
  • Page 23 CDN36X User Manual revision 1.30 Serial Receive Process STX ‘TEMP = 64 C’ CR ETX I/O RESPONSE MESSAGE Serial CDN36X DeviceNet Device Gateway Master I/O COMMAND MESSAGE 1) Serial Device transmits message. Serial Data (ASCII) <STX> T P <SP> = <SP> 4 <SP>...
  • Page 24: Serial Transmit Example

    CDN36X User Manual revision 1.30 Serial Transmit Example The following example shows how the CDN36X gateway receives DeviceNet output data, converts the data into an ASCII string, then builds and transmits a serial message using the converted string. The gateway receives an I/O Command Message from the DeviceNet master. The first byte in the I/O Command data field contains the Transmit Toggle bits for Serial Transmit Object instances 1-8.
  • Page 25: Synchronization

    CDN36X User Manual revision 1.30 Synchronization There are four independent processes operating in a CDN36X 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 or Change-of-State I/O messaging.
  • Page 26: Transmit Synchronization

    CDN36X User Manual revision 1.30 The Receive Acknowledge bits are bit-mapped into the second byte of the DeviceNet I/O Command Message. Serial Receive Object Instance 1 Receive Acknowledge bit maps to bit 0, Instance 2 maps to bit 1, etc. The Receive Toggle bits are bit-mapped into the second byte of the DeviceNet I/O Response Message.
  • Page 27 CDN36X User Manual revision 1.30 bit = 0 bit = 0 |------[ /TX Toggle ]-------[ /TX Ack ]-------------------|-----------( copy variable to TX Data )---------| |--------------------( TX Toggle )-----------------| bit =1 bit = 1 bit = 1 |------[ TX Toggle ]-------[ TX Ack ]--------------------|------------( copy variable to TX Data )--------| |--------------------( /TX Toggle )----------------| bit =0 MKS Instruments, Inc.
  • Page 28: Chapter 4 - Gateway Configuration

    CDN36X User Manual revision 1.30 Chapter 4 – Gateway Configuration This chapter describes how to configure and operate the CDN36X 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.
  • Page 29: Power Up Gateway

    CDN36X User Manual revision 1.30 Power Up Gateway Connect the gateway to a DeviceNet network to power up the gateway. DeviceNet Status LEDs The CDN36X gateway has two bi-color status LEDs (NET 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.
  • Page 30: Register Eds File

    CDN36X User Manual revision 1.30 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.
  • Page 31: Configure Serial Channel

    CDN36X User Manual revision 1.30 Configure Serial Channel The Serial Stream Object attributes control the physical layer settings for the CDN36X serial channel. These settings apply to all serial transmit and receive operations. The attributes also configure the reception of message packets. Before you can set or change any gateway configuration settings, make sure the gateway is not in the DeviceNet master scan list.
  • Page 32 The XOFF and XON characters are not saved as message data. CTS/RTS is an RS232 hardware flow control option, available only on the CDN366 gateway. The RTS is an output and CTS is an input signal. The gateway keeps RTS active (low) when it can receive data.
  • Page 33 CDN36X User Manual revision 1.30 and 0x03 (ETX). You must use the RSNetworx™ Class Instance Editor (Set Attribute Single command) to write a Short_String attribute value. Packet Timeout – Required for Timeout Mode. Defines the timeout period between received bytes that indicates the end of a message packet (1-255 milliseconds). Packet Length –...
  • Page 34: Serial Receive Object Settings

    CDN36X User Manual revision 1.30 Serial Receive Object Settings There are eight identical Serial Receive Object instance attribute sets that can be configured in the CDN36X gateway. This section describes how to configure a single Serial Receive Object instance. Repeat this step for each desired instance. Serial Receive Object Instance Attributes (Class Code 65) Number Name...
  • Page 35 CDN36X User Manual revision 1.30 Pre-String attribute defines the byte string for the Pre-String field. Data Size attribute defines the number of bytes expected in the Data field. Post-String attribute defines the byte string for the Post-String field. When Use Pre-String bit is set, the Instance searches the message packet bytes for a match to the stored Pre-String.
  • Page 36 CDN36X User Manual revision 1.30 The Data Size attributes for all 8 Serial Receive Object instances must sum to a total less than or equal to 128 bytes, regardless of whether an instance is enabled or not. Set unused instances’ Data Type attributes to USINT or SINT, which have 1-byte Data Size.
  • Page 37: Serial Transmit Object Settings

    CDN36X User Manual revision 1.30 Serial Transmit Object Settings There are eight identical Serial Transmit Object instance attribute sets that can be configured in the CDN36X gateway. This section describes how to configure a single Serial Transmit Object instance. Repeat this step for each desired instance. Serial Transmit Object Instance Attributes (Class Code 66) Number Name...
  • Page 38 CDN36X User Manual revision 1.30 String1 attribute defines the byte string for the String1 Before and String1 After fields. Data Size attribute defines the number of bytes expected in the Data field. String2 attribute defines the byte string for the String2 Before and String2 After fields. While the Data field is typically selected, you can configure an Instance to transmit a predefined message using String1 and/or String2, without requiring any output data bytes from the DeviceNet master.
  • Page 39 CDN36X User Manual revision 1.30 equal to 128 bytes, regardless of whether an instance is enabled or not. Set unused instances’ Data Type attributes to USINT or SINT, which have a 1-byte Data Size. Width – Required for SINT, INT, USINT, UINT, REAL Data Types. Defines the number of ASCII bytes (1-16) that will represent the integer or real number.
  • Page 40: Configure Devicenet Master Scanlist

    CDN36X User Manual revision 1.30 Configure DeviceNet Master Scanlist You must calculate the number of input and output bytes required by your CDN36X 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 I/O Command Message, and receive the specific number of input bytes in the gateway’s I/O Response Message.
  • Page 41: I/O Produce Size

    CDN36X User Manual revision 1.30 I/O Produce Size The I/O Produce Size is the size (in bytes) of the I/O Response Message data field that is sent from the CDN36X to the DeviceNet master. I/O Response data: [TX Ack bits 1-8][RX Toggle bits 1-8][RX Data Instance 1] … [RX Data Instance 8] The first byte contains the Transmit Acknowledge bits for all 8 Serial Transmit Object Instances.
  • Page 42: Chapter 5 - Devicenet Specifications

    16 (0x10) Set Attribute Single 75 (0x4B) Allocate Group 2 Identifier Set 76 (0x4C) Release Group 2 Identifier Set DeviceNet Object Classes The CDN366 device supports the following DeviceNet object classes. CLASS CODE OBJECT TYPE 01 (0x01) Identity 02 (0x02) Router...
  • Page 43: Identity Object

    CDN36X User Manual revision 1.30 IDENTITY OBJECT The Identity Object is required on all DeviceNet devices. It provides product identification of and general information. Identity Object Class Code 01 (0x01) Class Access Name Type Value Attribute Revision UINT Max Object Instance UINT Max Class Identifier UINT...
  • Page 44: Router Object

    CDN36X User Manual revision 1.30 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 CDN36X device. Router Object Class Code 02 (0x02) Class Access Name Type...
  • Page 45: Devicenet Object

    CDN36X User Manual revision 1.30 DEVICENET OBJECT The DeviceNet Object contains information about the CDN36X DeviceNet interface configuration. DeviceNet Object Class Code 03 (0x03) Class Access Name Type Value Attribute Revision UINT Instance Access Name Type Value Attribute Get/Set MAC ID USINT Settable only if MAC ID switches >...
  • Page 46: Assembly Object

    CDN36X User Manual revision 1.30 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...
  • Page 47: Connection Object

    CDN36X User Manual revision 1.30 CONNECTION OBJECT The Connection Object instances manage the characteristics of each communication connection. The CDN36X is a Group 2 Only Slave device that supports 1 Explicit Message Connection and 1 I/O Message Connection. Connection Object Class Code 05 (0x05) Class Access Name...
  • Page 48 CDN36X User Manual revision 1.30 Consumed Path STRUCT of Null for Explicit Message STRUCT for I/O Message Log. Seg., Class USINT 0x20 Class Number USINT 0x04 Log. Seg., Instance USINT 0x24 Instance Number USINT 0x02 Log. Seg., Attribute USINT 0x30 Attribute Number USINT 0x03...
  • Page 49: Serial Stream Object

    CDN36X User Manual revision 1.30 SERIAL STREAM OBJECT The Serial Stream Object configures the CDN36X serial channel. Serial Stream Object Class Code 64 (0x40) Class Access Name Type Value Attribute Revision UINT Max Object Instance UINT Max Class Identifier UINT Max Instance Attribute UINT Instance...
  • Page 50: Serial Receive Object

    CDN36X User Manual revision 1.30 SERIAL RECEIVE OBJECT The Serial Receive Object instances receive and process serial messages, and send the converted data to DeviceNet master in the I/O Response Message. Serial Receive Object Class Code 65 (0x41) Class Access Name Type Value...
  • Page 51: Serial Transmit Object

    CDN36X User Manual revision 1.30 SERIAL TRANSMIT OBJECT The Serial Transmit Object instances receive data from DeviceNet master in the I/O Command Message, convert it and transmit the resulting message out the serial channel. Serial Transmit Object Class Code 66 (0x42) Class Access Name...
  • Page 52: Chapter 6 - Rsnetworx™ Configuration Example

    1.30 Chapter 6 – RSNetworx™ Configuration Example This chapter shows how to set up configure a CDN366 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™...
  • Page 53: Configure Devicenet Interface

    CDN36X User Manual revision 1.30 Configure DeviceNet Interface Follow instructions in Chapter 4 to set the gateway’s rotary switches to 125Kbps baud rate and MAC ID to 03. 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.
  • Page 54 CDN36X User Manual revision 1.30 2) The following text box should pop up, showing the networks connected to your computer. 3) Click on the 1770-KFD-1 + to show all connected DeviceNet devices. The gateway is at MAC ID 03, verifying its DeviceNet connection. It is an Unrecognized Device until the gateway’s EDS file is registered with RSNetworx.
  • Page 55 CDN36X User Manual revision 1.30 4) Click Cancel to close Browse for network window. Select the EDS Wizard… operation from the Tools menu. Click Next> to continue. 5) Select the Register an EDS file(s) option and click Next>. MKS Instruments, Inc. D.I.P.
  • Page 56 CDN36X User Manual revision 1.30 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> when you have the correct path and EDS file name in the Named: box. 7) The next screen shows the RSNetworx installation test results.
  • Page 57 8) The next screen allows you to customize the gateway’s icon for RSNetworx. Click on Change icon… 9) The Change Icon screen pops up. Click Browse to enter path for CDN366 icon file. You can download the icon file from www.mksinst.com.
  • Page 58 CDN36X User Manual revision 1.30 10) Enter the path to CDN366 icon file in the File name: box. Click Open to continue. 11) The CDN366 icon should have changed to the proper icon. Click Next to continue. MKS Instruments, Inc.
  • Page 59 CDN36X User Manual revision 1.30 12) The final step is to finish EDS file registration. Click Next> to complete the registration process. Click Finish to close the EDS Wizard window. MKS Instruments, Inc. D.I.P. Products Group...
  • Page 60 1.30 13) Repeat steps 1, 2, and 3 to browse the DeviceNet network. RSNetworx should now recognize the device at MAC ID 03 as a CDN366 gateway, and display the CDN366 icon. Click Cancel when finished. MKS Instruments, Inc.
  • Page 61: Configure Serial Channel

    CDN36X User Manual revision 1.30 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 physical layer settings for the gateway’s serial channel.
  • Page 62 CDN36X User Manual revision 1.30 3) RSNetworx displays the following text box while it uploads the network configuration. 4) The following screen displays the online nodes. MKS Instruments, Inc. D.I.P. Products Group...
  • Page 63 CDN36X User Manual revision 1.30 5) Left-click on the CDN366 icon to select it. Right-click and select Properties from the pop-up menu. You can also double-click on the CDN366 icon to open its properties box. 6) RSNetworx displaces the following text box while is reads CDN366 EDS file.
  • Page 64 7) The CDN366 Properties Box is displayed. 7) Select the Parameters tab. You will be prompted for the parameters source. Select the Upload button to upload CDN366 parameters from the actual device. All the CDN366 parameters are now shown in the Properties window.
  • Page 65 CDN36X User Manual revision 1.30 The CDN36X gateway has three Object types. The Serial Stream Object is used to configure the serial channel physical interface. This object will be configured in this section. The Serial Receive Object and Serial Transmit Object are in the next sections. MKS Instruments, Inc.
  • Page 66 CDN36X User Manual revision 1.30 8) Select the Serial Stream Object from the Groups pull-down menu to view this object’s parameters. You may now edit the Serial Stream Object attributes in this window. Note that the Pre-Delimiter List and Post-Delimiter List attributes are not listed. These attributes use Short_String data type, which is not supported by RSNetworx EDS File interface.
  • Page 67 CDN36X User Manual revision 1.30 Select the Set_Attribute_Single service code to write an attribute value, and the Get_Attribute_Single service code to read an attribute value. Check Values in decimal box to enter class, instance, attribute, and data values in decimal. The Pre-Delimiter List address is Class 64, Instance 1 (in this example), Attribute Number 11.
  • Page 68 CDN36X User Manual revision 1.30 Delimiter Mode – Click on … to open selection box. Click on check box to select the desired option. The Delimiter Mode uses bits 0, 1, 2 of the byte. Ignore the remaining bits 3 through 7. Timeout –...
  • Page 69: Configure Serial Receive Object Instances

    Configure Serial Receive Object Instances There are eight identical Serial Receive Object instance parameter sets that can be configured in the CDN366 gateway. The following describes how to configure Serial Receive Object Instance 1. Program the other instances using the same procedure.
  • Page 70 CDN36X User Manual revision 1.30 Select the Set_Attribute_Single service code to write an attribute value, and the Get_Attribute_Single service code to read an attribute value. Check Values in decimal box to enter class, instance, attribute, and data values in decimal. The Pre-String address is Class 65, Instance 1 (in this example), Attribute Number 7.
  • Page 71 CDN36X User Manual revision 1.30 Data Type – Click on current value to change. Enter decimal number of desired data type. Data Size – Click on current value to change. Enter the desired Short_String data size in bytes (2-128). Do not enter a Data Size for integer or real number Data Types. Width –...
  • Page 72: Configure Serial Transmit Object Instances

    Configure Serial Transmit Object Instances There are eight identical Serial Transmit Object instance parameter sets that can be configured in the CDN366 gateway. The following describes how to configure Serial Transmit Object Instance 1. Program the other instances following the same procedure.
  • Page 73 CDN36X User Manual revision 1.30 Select the Set_Attribute_Single service code to write an attribute value, and the Get_Attribute_Single service code to read an attribute value. Check Values in decimal box to enter class, instance, attribute, and data values in decimal. The String1 address is Class 66, Instance 1 (in this example), Attribute Number 7.
  • Page 74 CDN36X User Manual revision 1.30 Data Type – Click on current value to change. Enter decimal number of desired data type. Data Size – Click on current value to change. Enter the desired Short_String data size in bytes (2-128). Do not enter a Data Size for integer or real number Data Types. Width –...
  • Page 75: Configure Devicenet Master Scanlist

    CDN36X User Manual revision 1.30 Configure DeviceNet Master Scanlist After all the object instances have been configured, the DeviceNet master can be configured for Polled I/O or Change-of-State I/O messaging with the gateway. The following example shows how to configure a Polled I/O connection. 1) Before using the RSNetworx to map the gateway’s I/O connection to 1747-SDN DeviceNet master scanner, you must calculate the I/O Produce Size &...
  • Page 76 CDN36X User Manual revision 1.30 4) 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. 5) The next window shows the Available Devices: that can be added to the 1747-SDN Scanlist. MKS Instruments, Inc.
  • Page 77 6) Select the Automap on Add checkbox if you want RSNetworx to automatically map the CDN366 input and output bytes into the 1747-SDN memory. 7) Select the CDN366 under Available Devices: and click the > button to transfer to Scanlist. MKS Instruments, Inc.
  • Page 78 CDN36X User Manual revision 1.30 8) RSNetworx warns that the CDN366 does not contain any I/O data. Click OK to continue. 8) Click on the Edit I/O Parameters button. Use the ∧ and ∨ buttons to set Rx Size: to the calculated I/O Consume Size value and the Tx Size: to the calculated I/O Produce Size value.
  • Page 79 CDN36X User Manual revision 1.30 10) RSNetworx prompts if you want to download the changes to the 1747-SDN. Click Yes. 11) Select the Input tab to view the automapped CDN366 input bytes. MKS Instruments, Inc. D.I.P. Products Group...
  • Page 80 Click Apply Mapping button after you make changes. Click Yes at the RSNetworx prompt to download any changes to the 1747-SDN. Click Close to continue. 13) Select the Output tab to view the automapped CDN366 output bytes. MKS Instruments, Inc.
  • Page 81 CDN36X User Manual revision 1.30 14) 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. MKS Instruments, Inc.
  • Page 82: Chapter 7 - Configuration Examples

    This chapter contains four example gateway configurations. Example 1 – Receiving Data Read UPC labels into a PLC using a serial barcode scanner, a CDN366 gateway, and a DeviceNet scanner (master). The barcode scanner RS232 channel is connected to a CDN366 serial channel.
  • Page 83 CDN36X User Manual revision 1.30 The next step is to configure the CDN366 gateway to return the ASCII barcode data to the DeviceNet scanner. Because the content of the ASCII bytes is not known, the entire byte string will be converted into a Short_String data type. With only one data variable to return, one Serial Receive Object Instance is configured.
  • Page 84: Example 2 - Receiving Delimited Data

    0x40 0x01 0x0C 0x02 0x03 0x0D Short_String length = 2, ETX CR The next step is to configure the CDN366 gateway to process the different label formats and convert the ASCII characters into integer numbers, to be returned to the DeviceNet scanner.
  • Page 85 CDN36X User Manual revision 1.30 Serial Receive Object Instance 1 is configured to process the 11-character model number UPC label message packet. The Receive Mode is set to Use Pre-String, Use Data, and Use Post- String fields. The Pre-String attribute is set to ‘MODEL ‘, and Post-String is set to ‘ A’. These two strings are used to filter for the model-number message packet.
  • Page 86: Example 3 - Transmitting Data

    1.30 Example 3 – Transmitting Data Print an ASCII string from a PLC to a serial printer, using a CDN366 gateway and a DeviceNet scanner (master). The text message string can be from 1 to 64 characters long, including any ASCII control characters.
  • Page 87 CDN36X User Manual revision 1.30 Make sure Serial Transmit Object instances 2-8 are disabled, since only Instance 1 is used in this application. The gateway expects to receive 67 output bytes from the DeviceNet scanner in the I/O Command Message. The I/O Produce Size is 67, with the data organized as follows: [ Transmit Toggle bits 0000000x ] [ Receive Acknowledge bits ] [ Instance 1 Short_String printer data ] 1 byte 1 byte...
  • Page 88: Example 4 - Transmitting Delimited Data

    1.30 Example 4 – Transmitting Delimited Data Using the same configuration as Example 3, the CDN366 gateway is configured to print two specific text messages. For one message, the gateway converts two integer variables and inserts it into the text. The second message contains no variables, but simply prints a fixed text message.
  • Page 89 CDN36X User Manual revision 1.30 Serial Transmit Object Instance 2 is configured to transmit the last part of Message #1 (‘xxx F’, <CR>, <LF>). It receives an integer value from the DeviceNet scanner, converts it to 3 ASCII characters, builds a message packet, and transmits it. The Transmit Mode is Use Data and Use String1 After Data.
  • Page 90: Chapter 8 - Troubleshooting

    CDN36X User Manual revision 1.30 Chapter 8 – Troubleshooting Problem Possible Cause • DeviceNet Configuration Program Register Gateway EDS file with Configuration Program. does not recognize Gateway. • DeviceNet Configuration Program 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.
  • Page 91: Appendix A - Product Specifications

    CDN36X User Manual revision 1.30 Appendix A – Product Specifications DeviceNet Interface Power Requirements: 11 - 28 Vdc @ 50 mA Loss of Ground: Reverse Polarity: -30 Vdc Signal Levels: ISO11898 Serial Channel Isolation: 500 Volts ESD Protection: +/- 10 kV Overload Protection: +/- 30 Volts Short Circuit:...
  • Page 92: Appendix B - Devicenet Template

    CDN36X User Manual revision 1.30 Appendix B – DeviceNet Template Class Instance Attribute Default Setting Unit Comments MKS Instruments, Inc. D.I.P. Products Group...
  • Page 93: Appendix C - Ascii Character Codes

    CDN36X User Manual revision 1.30 Appendix C – ASCII Character Codes Non-Printable Characters Printable Characters Char Name Kybd Hex Char Char Char 0x00 Null Ctrl @ 0x20 Space 0x40 0x60 0x01 Start of heading Ctrl A 0x21 0x41 0x61 0x02 Start of text Ctrl B 0x22...

This manual is also suitable for:

Cdn367

Table of Contents