The text of a manual · part 4 of 8
CDN060 Series DeviceNet Gateway User Manual, pages 28 to 36
Pages 28 to 36 of 71
The original document is the PDF (3.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the MKS CDN066
Page 28
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 10xxxxxx111 10xxxxxx110 10xxxxxx101 10xxxxxx100 xxxxxx = CDN060 MAC ID
GROUP 2 MESSAGE TYPE Duplicate MAC ID Check Message Unconnected Explicit Request Message Master I/O Poll Command Message Master Explicit Request Message
DeviceNet Class Services The CDN060 is a Group 2 Slave Device that supports the following class services and instance services. SERVICE CODE 05 (0x05) 14 (0x0E) 16 (0x10) 75 (0x4B) 76 (0x4C)
SERVICE NAME Reset Get Attribute Single Set Attribute Single Allocate Group 2 Identifier Set Release Group 2 Identifier Set
DeviceNet Object Classes The CDN066 device supports the following DeviceNet object classes. CLASS CODE 01 (0x01) 02 (0x02) 03 (0x03) 04 (0x04) 05 (0x05) 64 (0x40)
MKS Instruments, Inc.
OBJECT TYPE Identity Router DeviceNet Assembly Connection Serial Stream Object
D.I.P. Products Group
28
Page 29
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 Access Attribute 1 Get 2 Get 6 Get 7 Get Instance Access Attribute 1 Get 2 Get 3 Get 4 Get
5
Get
6 7
Get Get
Class Code 01 (0x01) Name
Type
Value
Revision Max Object Instance Max Class Identifier Max Instance Attribute Name
UINT UINT UINT UINT Type
1 1 7 7 Value
Vendor Product Type Product Code Revision Major Revision Minor Revision Device Status
UINT UINT UINT STRUCT of USINT USINT WORD
59 = D.I.P. Products 12 = Communications 1
Serial Number Product Name Length Name
UDINT STRUCT of USINT STRING [6]
4 0 Bit 0 = owned (0 available, 1 allocated) Bit 2 = configured (0 no, 1 yes) Bit 4-7 = vendor specific (0) Bit 8 = minor configuration fault Bit 9 = minor device fault Bit 10 = major configuration fault Bit 11 = major device fault Bit 1, 3, 12-15 = reserved (0) Unique serial number for every device 6 CDN06x
Common Services Service Code 05 (0x05) 14 (0x0E)
Class No Yes
MKS Instruments, Inc.
Instance Yes Yes
Service Name Reset Get_Attribute_Single
D.I.P. Products Group
29
Page 30
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 Access Attribute 1 Get 6 Get 7 Get Instance Access Attribute 2 Get
Class Code 02 (0x02) Name
Type
Value
Revision Max Class Identifier Max Instance Attribute Name
UINT UINT UINT Type
1 7 2 Value
Number of Connections UINT
2
Common Services Service Code 14 (0x0E)
Class Yes
MKS Instruments, Inc.
Instance Yes
Service Name Get_Attribute_Single
D.I.P. Products Group
30
Page 31
CDN060 User Manual revision 1.00
DEVICENET OBJECT The DeviceNet Object contains information about the CDN060 DeviceNet interface configuration. DeviceNet Object Class Access Attribute 1 Get Instance Access Attribute 1 Get/Set
Class Code 03 (0x03) Name
Type
Value
Revision Name
UINT Type
2 Value
MAC ID
USINT
Settable only if MAC ID switches > 63. Valid numbers are 0 to 63. Returns last value set or switch value.
2
Get/Set Baud Rate
USINT
Settable only if Baud switch > 2. Valid settings are 0 = 125K, 1 = 250K, 2 = 500K. Returns last value set or switch value.
3
Get/Set Bus Off Interrupt
BOOL
4
Get/Set Bus Off Counter
USINT
0 = hold CAN in OFF state (default) 1 = reset CAN Writing this attribute forces counter value to zero.
5
Get
Allocation Information Choice Byte
STRUCT of BYTE
Master Node Address
USINT 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 Allocated to this DeviceNet master
Common Services Service Code 14 (0x0E) 16 (0x10) 75 (0x4B) 76 (0x4C)
Class Yes No No No
MKS Instruments, Inc.
Instance Yes Yes Yes Yes
Service Name Get_Attribute_Single Set_Attribute_Single Allocate Master/Slave Release Master/Slave
D.I.P. Products Group
31
Page 32
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 Access Attribute 1 Get 2 Get Instance Access Attribute 3 Get
Class Code 04 (0x04) Name
Type
Value
Revision Max Class ID Name
UINT UINT Type
2 2 Value
Data Stream note 1
Instance 1 for input data stream. Instance 2 for output data stream.
Common Services Service Code 14 (0x0E) 16 (0x10)
Class Yes No
Instance Yes Yes
Service Name Get_Attribute_Single 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
Page 33
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 Slave device that supports 1 Explicit Message Connection (Instance 1) and 1 Poll Message Connection (Instance 2). Connection Object Class Access Attribute 1 Get Instance Access Attribute 1 Get
Class Code 05 (0x05) Name
Type
Value
Revision Name
UINT Type
1 Value
State
USINT
0 = non-existent 1 = configuring 2 = established 3 = timed out
USINT
0 = Explicit Message 1 = I/O Message 0x83 for Explicit Message 0x82 for I/O Message Explicit Message: 10xxxxxx011 = produced connection id I/O Message: 01111xxxxxx = produced connection id Explicit Message: 10xxxxxx100 = consumed connection id I/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 71 for Explicit Message See Stream Object for I/O Message Default 2500 msec 0 = Timeout (Explicit Message default) 1 = Auto Delete 2 = Auto Reset (I/O Message default) 0 for Explicit Message 6 for I/O Message Null for Explicit Message STRUCT for I/O Message 0x20 0x04 0x24 0x01 0x30 0x03 0 for Explicit Message 6 for I/O Message
2
Get
Instance Type
3
Get
Transport Class Trigger USINT
4
Get
Production Connection
UINT
5
Get
Consumed Connection
UINT
6
Get
USINT
7
Get
Initial Communication Characteristics Production Size
8
Get
Consumed Size
UINT
Get/Set Expected Packet Rate Get/Set Timeout Action
UINT USINT
9 12
UINT
13
Get
Production Path Length USINT
14
Get
Production Path
STRUCT of
Get
Log. Seg., Class Class Number Log. Seg., Instance Instance Number Log. Seg., Attribute Attribute Number Consumed Path Length
USINT USINT USINT USINT USINT USINT USINT
15
MKS Instruments, Inc.
D.I.P. Products Group
33
Page 34
CDN060 User Manual 16
17 revision 1.00
Get
Consumed Path
STRUCT of
Get
Log. Seg., Class Class Number Log. Seg., Instance Instance Number Log. Seg., Attribute Attribute Number Production Inhibit
USINT USINT USINT USINT USINT USINT UINT
Null for Explicit Message STRUCT for I/O Message 0x20 0x04 0x24 0x02 0x30 0x03 0
Common Services Service Code 05 (0x05) 14 (0x0E) 16 (0x10)
Class Yes Yes No
MKS Instruments, Inc.
Instance Yes Yes Yes
Service Name Reset Get_Attribute_Single Set_Attribute_Single
D.I.P. Products Group
34
Page 35
CDN060 User Manual revision 1.00
SERIAL STREAM OBJECT The Serial Stream Object configures the CDN060 serial channel. Serial Stream Object Class Access Attribute 1 Get 2 Get 6 Get 7 Get Instance Access Attribute 3 Get 4 Get/Set
Class Code 64 (0x40) Name
Type
Value
Revision Max Object Instance Max Class Identifier Max Instance Attribute Name
UINT UINT UINT UINT Type
1 1 7 22 (CDN066), 24 (CDN067) Value
Receive Data Transmit Data
Data Format Received message data. Returned in Poll Response Data Format Message data to transmit. Received in Poll Command. 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) USINT 0 = 9600 bps 4 = 600 bps 1 = 4800 bps 5 = 300 bps 2 = 2400 bps 6 = 19200 bps 3 = 1200 bps USINT 0 = no parity 5 = mark (force to 1) 1 = even parity 6 = space (force to 0) 2 = odd parity
5
Get/Set
Status
6
Get/Set
Baud Rate
7
Get/Set
Parity
8 9 10
Get Get Get/Set
Data Size Stop Bits Flow Control
USINT USINT USINT
11 12 13 14
Get/Set Get/Set Get/Set Get/Set
Receive Count Transmit Count Maximum Receive Size Data Format
USINT USINT USINT USINT
15
Get/Set
Block Mode
USINT
16 17 18
Get/Set Get/Set Get/Set
Delimiter Pad Character Maximum Transmit Size
USINT CHAR USINT
MKS Instruments, Inc.
7 (parity enabled) or 8 (no parity) 1 0 = none 2 = CTS / RTS 1 = XON / XOFF 4 = CTS Detect Mode Number of bytes in Receive Buffer. Write to clear. Number of bytes in Transmit Buffer. Write to clear Maximum # bytes returned by Receive Buffer read. 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) 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 byte value Pad byte value Defines maximum # bytes that can be transmitted.
D.I.P. Products Group
35
Page 36
CDN060 User Manual revision 1.00
19
Get/Set
Idle String
20
Get/Set
Fault String
21 22 23 24
Get/Set Get/Set Get/Set Get/Set
Status Enable Status Clear Enable Four Wire Option Switch
Short_String Byte string transmitted when gateway receives null Poll (no input bytes). Length = 0 for no Idle String. Short_String Byte string transmitted when gateway’s Polled I/O connection times out. Length=0 for no Fault String USINT Nonzero value enables Status input byte. USINT Nonzero value enables Status Clear output byte. USINT CDN067 only. Enables RS422 4-wire operation. USINT CDN067 only. Option rotary switch position (0-9)
Common Services Service Code 05 (0x05) 14 (0x0E) 16 (0x10)
Class No Yes No
MKS Instruments, Inc.
Instance Yes Yes Yes
Service Name Reset Get_Attribute_Single Set_Attribute_Single
D.I.P. Products Group
36