The text of a manual · part 2 of 3
CDN066 DeviceNet Specifications, pages 10 to 18
Pages 10 to 18 of 25
The original document is the PDF (67 KB). 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 10
CDN066 DEVICE (3) Bus Off Interrupt (BOI) determines action if Bus Off state encountered. Following values are supported: BOI
Action
0 1
Hold chip in OFF state (default) If possible reset CAN chip
(4) Bus Off Counter will be forced to 0 whenever set regardless of the data value provided. (5) Allocation_byte bit 0 explicit set to 1 to allocate bit 1 polled set to 1 to allocate bit 2 strobed (not supported) bit 3-7 reserved (always 0)
Revision 1.3
08/04/97
8
Page 11
CDN066 DEVICE Assembly Object
Class Code: 04 (0x04)
The Assembly Objects 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 Attributes Attribute 1 2
Access Get Get
Name Revision Max Class ID
Type UINT UINT
Value 1 2
Type see notes
Value (1)
Type see notes
Value (2)
Assembly Object, Instance 1 Attributes Attribute 3
Access Get
Name Data Stream (Input)
Assembly Object, Instance 2 Attributes Attribute 3
Access Get/Set
Name Data Stream (Output)
Common Services Service Code 14 (0x0E) 16 (0x10)
Class Yes Yes
Instance Yes Yes
Service Name Get_Attribute_Single Set_Attribute_Single
(1) The input data stream is structured as either an array of bytes or as a SHORT_STRING consisting of a single byte length field and ‘n’ data bytes. Refer to the serial stream object class 64 for further information. (2) The output data stream is structured as either an array of bytes or as a SHORT_STRING consisting of a single byte length field and ‘n’ data bytes. Refer to the serial stream object class 64 for further information.
Revision 1.3
08/04/97
9
Page 12
CDN066 DEVICE Connection Object
Class Code: 05 (0x05)
The Connection Objects manage the characteristics of each communication connection. As a Group II Only Slave device the unit supports one explicit message connection and a POLL message connection. Connection Object Class Attributes Attribute 1
Access Get
Name Revision
Type UINT
Value 1
Connection Object, Instance 1 Attributes (Explicit Message) Attribute 1 2 3 4 5 6 7 8 9 12 13 14 15 16 17
Access Get Get Get Get Get Get Get Get Get/Set Get/Set Get Get Get Get Get
Name State Instance Type Transport Class Trigger Production Connection Consumed Connection Initial Comm. Char. Production Size Consumed Size Expected Packet Rate Timeout Action Prod. Path Length Production Path Cons. Path Length Consumed Path Production Inhibit
Type USINT USINT USINT UINT UINT USINT UINT UINT UINT USINT USINT USINT UINT
Value (1) 0 = Explicit Message 0x83 (2) (2) 0x21 67 71 Default 2500 msec (3) 0 (null) 0 (null) 0
Connection Object, Instance 2 Attributes (POLL connection) Attribute 1 2 3 4 5 6 7
Access Get Get Get Get Get Get Get
Revision 1.3
Name State Instance Type Transport Class Trigger Production Connection Consumed Connection Initial Comm. Char. Production Size
08/04/97
Type USINT USINT USINT UINT UINT USINT UINT 10
Value (1) 1 = I/O Message 0x82 (2) (2) 0x1 See Stream Object
Page 13
CDN066 DEVICE 8 9 12 13 14
15 16
17
Get Get/Set Get/Set Get Get
Get Get
Get
Consumed Size Expected Packet Rate Timeout Action Prod. Path Length Production Path Log. Seg., Class Class Number Log.Seg., Instance Instance Number Log.Seg., Attribute Attribute Number Cons. Path Length Production Path Log. Seg., Class Class Number Log.Seg., Instance Instance Number Log.Seg., Attribute Attribute Number Production Inhibit
UINT UINT USINT USINT STRUCT of USINT USINT USINT USINT USINT USINT USINT STRUCT of USINT USINT USINT USINT USINT USINT UINT
Common Services Service Code 05 (0x05) 14 (0x0E) 16 (0x10)
Class Yes Yes No
Instance Yes Yes Yes
Service Name Reset Get_Attribute_Single Set_Attribute_Single
(1) Connection States: 0 = non-existent 1 = configuring 3 = established 4 = timed out
Revision 1.3
08/04/97
11
See Stream Object Default 2500 msec (3) 6 0x20 0x04 0x24 0x01 0x30 0x03 6 0x20 0x04 0x24 0x02 0x30 0x03 0
Page 14
CDN066 DEVICE (2) Connection ID's: Connection 1 Produced Connection ID: 10xxxxxx011 Connection 1 Consumed Connection ID: 10xxxxxx100 Connection 2 Produced Connection ID: 01111xxxxxx Connection 2 Consumed Connection ID: 10xxxxxx101 xxxxxx = Node Address. (3) Watch Dog TimeOut Activity: 0 = Timeout (Explicit Messaging default) 1 = Auto Delete 2 = Auto Reset (I/O Message default) (4) If no data is available during the poll response a 0 length (null) packet is returned.
Revision 1.3
08/04/97
12
Page 15
CDN066 DEVICE User Defined (Serial Stream) Object
Class Code: 64 (0x40)
The Serial Stream Object model supports a bi-directional serial stream of data. The object includes the transmit FIFO, the receive FIFO and the serial channel configuration attributes. Serial Stream Class Attributes Attribute 1 2 6 7
Access Get Get Get Get
Name Revision Max Object Instance Max Class Identifier Max Instance Attribute
Type UINT UINT UINT UINT
Value 2 1 7 22
Type See Notes See Notes USINT USINT USINT USINT USINT USINT USINT USINT USINT USINT USINT USINT CHAR USINT SHORT_STRING SHORT_STRING USINT USINT
Value (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) * (14) * (15) * (16) (17) (18) * (19) (20) (21)* (22)*
Serial Stream Object, Instance 1 Attributes Attribute 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Access Get Set Get/Set Get/Set Get/Set Get Get Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set Get/Set
Name Receive Data Transmit Data Status Baud Rate Parity Data Size Stop Bits Flow Control Receive Count Transmit Count Maximum Receive Size Data Format Block Mode Receive Delimiter Pad Char Maximum Transmit size Idle String Fault String Status Enable Status Clear Enable
Common Services Revision 1.3
08/04/97
13
Page 16
CDN066 DEVICE Service Code 5 (0x05) 14 (0x0E) 16 (0x10)
Class No Yes No
Instance Yes Yes Yes
Service Name Reset Get_Attribute_Single Set_Attribute_Single
* Items indicated with an asterisk may affect the Produced or Consumed size of the Poll Connection. (3) The Received Data (Attribute 3) and Transmitted Data (Attribute 4) are either an array of bytes or a DeviceNet defined SHORT_STRING, consisting of a length byte followed by the specified number of valid data bytes. The format used is determined by the Data Format parameter. Note that reading of the Transmit Data will return a single byte, indicating the last byte of the FIFO. When a packet is received with 0 data bytes no data is transmitted. If the transmit FIFO does not have sufficient room for the packet no response packet is generated. When data is read the response packet will be either an array of bytes or a SHORT_STRING. If no data is available either a NULL packet or an array with a length byte of 0 is returned. (5) The Status information (Attribute 5) indicates whether data transfer errors have occurred. It is bit mapped as follows: Bit
Interpretation
0 1 2 * 3 4 * 5 * 6 * 7
Transmit channel blocked Transmit FIFO empty Receive Parity error Receive FIFO empty Receive Overflow Framing Error Transmit FIFO Overflow State of CTS signal (1 == Asserted)
* Writing any value to the Status field will clear the error bits.
Revision 1.3
08/04/97
14
Page 17
CDN066 DEVICE (6) The Baud Rate (attribute 6) may be set by the RS232 Baud Rate switch or by software. To enable software setting the switch must be in the ‘PRG’ position. Baud Rate
Interpretation
0 1 2 3 4 5 6
9600 baud 4800 baud 2400 baud 1200 baud 600 baud 300 baud 19.2 Kbaud
(7) The Parity (attribute 7) may be set by software. Note that setting the parity to 0 forces the data length size to 8. Setting the parity to non-zero forces the data length size to 7. Parity
Interpretation
0 1 2 3 4 5 6
No parity Even parity Odd parity N/A N/A Force to 1 Force to 0
(8) The Data size (Attribute 8) is read only. The CDN066 serial channel always processes 8 information bits. If parity is set to 0 (no parity) 8 data bits are transmitted/received. If the parity is set to a non-zero value then only 7 data bits are transmitted and the 8th bit is used for the parity bit. The Data Size field is read only. (9) The Stop bits (Attribute 9) is read only. The CDN066 serial channel always operates with 1 stop bit. The Stop Bits field is read only and fixed at 1 stop bit.
Revision 1.3
08/04/97
15
Page 18
CDN066 DEVICE (10) Flow control (Attribute 10) may be set by software. Flow Control
Interpretation
0 1 2 3 4
No flow control X-ON/X-OFF flow control Hardware flow control DO NOT USE CTS Detect Mode
If the flow control is set to 1 the ASCII standard X-OFF (CTRL S) character will force the transmit function to block. Characters will be buffered in the transmit FIFO until the transmitter is re-enabled using the X-ON (CTRL Q) character. Note that the CTRL-S and CTRL-Q characters will be stripped from the incoming data stream, making this protocol unsuitable for binary data transmission. When the receive FIFO is full the CDN066 will transmit an X-OFF character. An X-ON character is transmitted when the number of characters in the receive FIFO drops below 50%. If the flow control is set to 2 the CDN066 uses the hardware RTS and CTS signals to control flow. The unit will only transmit if the CTS signal (pin 8) is asserted (+ voltage). If the receive FIFO has room to receive characters the RTS (pin 7) signal is asserted (+ voltage). The CTS Detect mode allows the CDN066 to detect when the CTS signal is present. When the signal is asserted the CDN066 is free to communicate to the RS232 device. When de-asserted the CDN066 will flush the Receive FIFO, treating the RS232 device as being Off-Line. The CTS Detect mode may be used to determine if the RS232 device is connected to the CDN066. (11) The Receive Count (Attribute 11) indicates the number of characters currently available in the receive FIFO. Writing any value will flush the receive FIFO. (12) The Transmit Count (Attribute 12) indicates the number of characters currently in the transmit FIFO. Writing any value will flush the transmit FIFO.
Revision 1.3
08/04/97
16