3 - DeviceNet Interface Manual 1770KDF - Devicenet - RS232
3 - DeviceNet Interface Manual 1770KDF - Devicenet - RS232
DeviceNet
RS232
Reference
Interface
Module
Manual
Communication
Protocol
(Cat. No. 1770KFD)
Important User Information Because of the variety of uses for the products described in this
publication, those responsible for the application and use of this
control equipment must satisfy themselves that all necessary steps
have been taken to assure that each application and use meets all
performance and safety requirements, including any applicable laws,
regulations, codes and standards.
All other brand and product names are trademarks or registered trademarks of their respective companies.
Table of Contents
Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5
Serial Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5
State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5
Link Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A6
Class Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A6
Instance Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A6
Instance Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A6
Power Management Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7
Instance Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7
Instance Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7
RS232 Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7
Instance Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B1
Appendix Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B1
Troubleshooting the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2
Preface
Document Objectives The purpose of this reference manual is to aid you in:
• writing applications that use the 1770-KFD interface module
• communicating with the 1770-KFD over the RS-232 serial-link
• preparing the 1770-KFD to be an interface module to the
DeviceNet network
What to Expect This manual explains how to communicate with the 1770-KFD
interface module over an RS-232 serial-link. The protocol used to
accomplish this includes:
• 1770-KFD specific, full-duplex DF1 protocol
• PCCC protocol
• DeviceNet protocol
Please note that this manual covers communication between your
host computer and the 1770-KFD only. It does not explain how to
communicate on the DeviceNet network.
Assumptions About You We assume that you are a product developer or technical user and:
• have a general familiarity with communication protocols
• have a knowledge of RS-232
• have access to the DeviceNet Specifications Volumes I and II
• have some knowledge of object-oriented modelling concepts
How to Use This Manual This manual can be divided into four main sections as shown below.
17706.5.22
ii Using This Manual
Document Conventions
Often you will see icons in the left margin of a page. These icons are
designed to call your attention to more sources of information
concerning the subject about which you are reading.
The more icon is placed beside paragraphs that refer you to other
publications for additional information.
Reference The reference icon gives you a page number within this document
Go to page: where more information about what you are reading can be found.
Manual Terminology
The table below lists terms, and their respective definitions, that are
frequently used in this manual.
17706.5.22
Chapter 1
Module Communication Basics
Chapter Contents This chapter introduces the 1770-KFD module as a RS-232 interface
using the full-duplex DF1 communication-protocol. In addition, this
chapter explains applicable DeviceNet objects.
About the Module The 1770-KFD module is an interface to the DeviceNet network for
a host computer. The module connects to the host computer through
a standard RS-232 serial communication-port and to the network via
DeviceNet cable. Through the module, a host computer can connect
to the network anywhere along its cable. This connection can be
permanent or may be removed and reconnected as needed. In
addition, the module can connect directly to a device via DeviceNet
cable for a physical point-to-point connection.
device 1770KFD
module
DeviceNet RS232
cable cable
host
computer
connects directly to
a single device
or
connects to a
multidevice network
1770KFD
module
DeviceNet RS232
cable cable
host
computer
17706.5.22
1-2 Module Communication Basics
DeviceNET
PROCESSOR RS-232
RS232
STATUS
RS232
Status Indicator
RS232 PORT
1770KFD
9pin Dshell
RS232 connector
17706.5.22
Module Communication Basics 1-3
Serial Connection The module can connect to any PC compatible desktop, laptop, and
notebook computer that is equipped with an RS-232 serial
communication-port. In addition, the module can connect to any
RS-232 device, which can include devices such as embedded
controls and RS-232 sensor products. During normal operation, a
connection between the host computer and the module is
continuously open.
17706.5.22
1-4 Module Communication Basics
PCCC Protocol
PCCC protocol is descriptive data after the DF1 segment, which is
placed at the beginning of a DeviceNet message. Four of the five
inserted fields do not change; none of the fields need to be
manipulated. However, the fifth field is a packet counter that must be
incremented with each message. Note that each field is one byte long
except for this fifth field which is two bytes.
DeviceNet Protocol
17706.5.22
Module Communication Basics 1-5
17706.5.22
1-6 Module Communication Basics
Object Function
used to provide the module's configuration and
status data
DeviceNet Object
the DeviceNet object is always created but
cannot be deleted
used to provide diagnostic data about the
DF1 Object
DF1 link
Reference used for general identification as a DeviceNet
Identity Object
network device
Go to page:
used to configure and maintain CAN identifier
A1 Link Object screeners which facilitate connected
networkmessaging
used to provide information about and to
Power Management Object
configure the product power supply
used to provide information about and to
RS232 Object
configure the seriallink's baud rate
17706.5.22
Chapter 2
FullDuplex DF1 Protocol
Chapter Contents This chapter describes the data link-layer protocol your host and
module use to communicate. In addition, this chapter provides
full-duplex asynchronous link-protocol information as well as
information on data link-layer message-packet fields.
About DF1 Protocol DF1 protocol is an Allen-Bradley link protocol that combines
features of subcategories D1 (data transparency) and F1 (two-way
simultaneous transmission with embedded responses) of
ANSI x3.28.
DF1 protocol:
• is used over a point-to-point link to facilitate two-way
simultaneous transmission
• is intended for high performance applications that require the
highest possible throughput from the available medium
17706.5.22
2-2 Full-Duplex DF1 Protocol
Character Transmission The module sends data serially over the RS-232-C/RS-422-A
interface, one byte at a time. The transmission format conforms to
ANSI x3.16, CCITT V.4, and ISO 1177. Your computer should
conform to this mode of transmission:
• link protocol = full-duplex, DF1
• message type = asynchronous
• data size = eight bits
• parity = none
• stop bit = one
• validity check = block check character (BCC)
17706.5.22
Full-Duplex DF1 Protocol 2-3
Message Packet Fields A data link-layer message packet starts with DLE STX and ends
with DLE ETX BCC, with application layer data in between. Data
symbols are only inside a message packet. Response symbols (DLE
ACK and DLE NAK) can also be transmitted inside a message
packet even though they are not considered part of it. Response
symbols transmitted within a message packet are referred to as
embedded responses.
Figure 2.1 shows the format of a full-duplex message packet and the
layer at which each portion is implemented. Note the BCC field at
the end of each message packet.
Figure 2.1
Packet Format for FullDuplex Protocol
From User
DST CMD STS Command Data Application
Program
From Common
DST * SRC * CMD* STS* TNSW
Data Application
00hex 00hex 0Chex 0Chex (From Application Layer) Routines
Block Check
A message packet containing 08, 09, 06, 00, 02, 04, and 03
(decimal), appears as:
10 02 08 09 06 00 02 04 03 10 03 E0
DLE STX APP DATA DLE ETX BCC
17706.5.22
2-4 Full-Duplex DF1 Protocol
100hex
20hex
____
E0hex
Important: To transmit the value 10hex, you must use the data
symbol DLE DLE. However, only one of these DLE
data bytes is included in the BCC sum. For example, to
transmit the values 08, 09, 06, 00, 10, 04, and 03hex,
you would use the following message symbols:
10 02 08 09 06 00 10 10 04 03 10 03 D2
DLE STX APP DATA (DLE DLE) DLE EXT BCC
17706.5.22
Full-Duplex DF1 Protocol 2-5
TwoWay Simultaneous To communicate with full-duplex protocol, the network uses two
Operation physical circuits (cable systems) for two-way simultaneous message
transmission. Figure 2.2 shows an example of two-way
simultaneous operation.
Figure 2.2
Data Paths for TwoWay Simultaneous Operation
Path 1
Transmitter A Receiver B
Path 2
Path 3
Receiver A Transmitter B
Path 4
All messages and symbols on the first circuit are traveling in the
same direction (node A to node B) and all messages and symbols on
the second circuit are traveling in the opposite direction (B to A).
At the other end of the link, a software separator divides the message
symbols from the response symbols. The internal software sends the
message symbols to the appropriate receiver and the response
symbols to the appropriate transmitter.
Environment Definition To fully define the environment’s protocol, the transmitter needs to
know where to get the message it sends, and the receiver must have a
means of disposing of messages. These are
implementation-dependent functions which are respectively called
the message source and the message sink.
17706.5.22
2-6 Full-Duplex DF1 Protocol
Figure 2.3
Protocol Environment
Packet Packet
Path 1
Transmitter Receiver
Source Sink
A B
Path 2
Packet Status Sink Full
You can also set a limit on the number of timeouts that are allowed
per message. If the enquiry (ENQ) limit is exceeded, the transmitter
signals the message source that the transmission has failed, and the
transmitter proceeds to the next message.
17706.5.22
Full-Duplex DF1 Protocol 2-7
Since there are only two response symbols defined, all other symbols
are undefined or invalid. If an invalid or undefinedresponse symbol
is received, the transmitter ignores it. A more precise and detailed
description of the actions of the transmitter appears in the following
structured English procedure.
TRANSMITTER is defined as
loop
Message=GET-MESSAGE-TO-SEND
Status=TRANSFER(Message)
SIGNAL-RESULTS(Status)
end loop
TRANSFER (Message) is defined as
initialize nak-limit and enq-limit
SEND(Message)
start timeout
loop
WAIT for response on path 2 or timeout.
if received DLE ACK then return SUCCESS
else if received DLE NAK then
if nak-limit is exceeded then return FAILURE
else
begin
count NAK re-tries;
SEND-MESSAGE(message);
start timeout
end
else if timeout
if enq-limit is exceeded then return FAILURE
else
begin
count ENQ re-tries;
send DLE ENQ on path 1;
start timeout
end
end loop
SEND (message) is defined as
begin
BCC = 0
send DLE STX on path 1
for every byte in the message do
begin
add the byte to the BCC;
send the corresponding data symbol
on path 1
end
send DLE ETX BCC on path 1
end
GET-MESSAGE-TO-SEND
This is an operating-system-dependent interface
routine that waits and allows the rest of the
system to run until the message source has supplied
a message to be sent.
SIGNAL-RESULTS
This is an implementation-dependent routine that
gives the message source the results of the
attempted message transfer.
WAIT
This is an operating-system-dependent routine
that waits for any of several events to occur
while allowing other parts of the system to run.
17706.5.22
2-8 Full-Duplex DF1 Protocol
Figure 2.4
Software Logic for Implementing Transmitter
T
Retransmit Same Message
Message Packet
Timeout Loop
Received No No No
Received
DLE ACK? Timed out?
DLE NAK?
Legend:
No No
T = Ready to Transmit Next Message
17706.5.22
Full-Duplex DF1 Protocol 2-9
The receiver ignores all input until receiving a DLE STX or a DLE
ENQ. If anything other than a DLE STX or DLE ENQ is received on
path one, the receiver sets the last response variable to a NAK.
If Then
the last response is sent and the receiver
a DLE ENQ is received from the transmitter
continues waiting for input
the BCC and message buffer are reset - and the
a DLE ACK is received
receiver starts building the message
While building a message, all data symbols are stored in the message
buffer and added to the BCC. If the buffer overflows, the receiver
continues summing the BCC, but the data is discarded.
If Then
any control symbols other than a DLE ETX BCC the message is aborted and a DLE NAK is sent
are received to the transmitter
the error flag (the BCC), the message size, and
a DLE ETX BCC is received
the address (optional) are all checked
the BCC, message size, or address
a DLE NAK is sent
test fails
duplicate message detection is enabled, the
the duplicate message is discarded without being
message is valid, and its header is the same as
executed and a DLE ACK is sent
the previous message
duplicate message detection is enabled, the
message is valid, but the header is not the same the messagesink's state is tested
as the previous message
if the message sink is full a DLE NAK is sent
the message is forwarded to the
message sink, the header information
if the message sink is not full
is saved for the duplicate message
detector, and a DLE ACK is sent
17706.5.22
2-10 Full-Duplex DF1 Protocol
17706.5.22
Full-Duplex DF1 Protocol 2-11
Figure 2.5
Receiver for FullDuplex Protocol
RCVE
LAST = NAK
Received Yes
DLE
ENQ?
No
No
Received
message?
Yes
No
BCC LAST = NAK
OK?
Yes
LAST = ACK
17706.5.22
2-12 Full-Duplex DF1 Protocol
Host/Module Message The following sections illustrate basic message transmissions and
Transmission Examples responses between a host and its module. The purpose of these
examples is to illustrate how DF1 protocol is used; therefore, the
DeviceNet message within is unimportant at this point. Chapter 4
illustrates the nested DeviceNet messages that are used to access the
module’s local objects.
Figure 2.6
Normal Message Transfer
Source (host) Transmitter Link Receiver Sink (module)
Note: xxxx = DeviceNet message
Command xxxx
DLE STX xxxx DLE ETX BCC
In this figure: not full
• the transmitter sends the xxxx
message to the receiver DLE ACK
OK
• the sink sends a
not full" message
(Sometime Later ...)
• the receiver sends the message
to the sink and sends a DLE ACK DLE STX xxxx DLE ETX BCC
to the transmitter not full
• the transmitter tells the source Reply xxxx
that the message was delivered
• reply is successfully returned DLE ACK
from the network OK
17706.5.22
Full-Duplex DF1 Protocol 2-13
Figure 2.7
Message Transfer with NAK
Source (host) Transmitter Link Receiver Sink (module)
Note: xxxx = DeviceNet message
Command xxxx
In this figure: DLE STX x??x DLE ETX BCC
• the transmitter sends a corrupted DLE NAK
message to the receiver and the DLE STX xxxx DLE ETX BCC
receiver responds with a DLE NAK not full
• the transmitter retransmits; the xxxx
transmission is successful
DLE ACK
• reply is successfully returned from OK
the network
(Sometime Later ...)
DLE STX xxxx DLE ETX BCC
not full
Reply xxxx
DLE ACK
OK
• a reply is corrupted
• the receiving device’s buffers are full
Both the host and module use a DLE NAK. If the module sends your
host an invalid message, your host will reply with a DLE NAK.
17706.5.22
2-14 Full-Duplex DF1 Protocol
Figure 2.8
Message Transfer with Retransmission
Note: xxxx = DeviceNet message Source Transmitter Link Receiver Sink
17706.5.22
Chapter 3
Module Communication Over
the DF1 Link
Chapter Contents This chapter explains each of the components needed for
communication between the host and module over the DF1
protocol link.
Module SerialLink Autobaud Your module needs to detect the baud rate between it and the host
upon power-up or when the heartbeat between your host and module
stops. To accomplish this, your host must send the following
message until the module responds.
hexadecifmal value 10 05
symbol DLE ENQ
hexadecifmal value 10 05
symbol DLE ENQ
The module returns the following message to your host when
serial-link autobaud is complete. This message indicates to your host
that the module is ready to communicate.
hexadecifmal value 10 15
symbol DLE NAK
NETWORK
STATUS
The Module Status Indicator flashes green
when your module is in the seriallink
MODULE autobaud detectionstate and turns solid
STATUS green when the baud rate is acquired.
DC
IN
(9V)
DeviceNET
RS-
232
17706.5.22
3-2 Module Communication Over the DF1 Link
The RS232 Heartbeat Since there is no DF1-level heartbeat, the DCD signal at the
module’s RS-232 port is used to indicate that the host is active. If the
DCD is lost for 500 milliseconds or more, the module:
• drops DTR for 1 second
• disables the CAN network
• deletes all connection links
• returns to serial-link autobaud state
Host and Module Local To communicate with the module over a predefined
Connections local-connection, the host wraps DeviceNet protocol with DF1 and
PCCC protocol and uses the invalid CAN ID:
FFFFhex
17706.5.22
Module Communication Over the DF1 Link 3-3
The example below illustrates how the host accesses local objects
within the module. In this particular example, the host is resetting the
module’s RS-232 object.
Indicates the beginning This ID indicates this DeviceNet Indicates the end of
of the message message is for the module the message
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
hexadecimal 10 02 FFFF 10 03 8D
value
17706.5.22
3-4 Module Communication Over the DF1 Link
Hexadecimal
Service name
service code
get_attribute_single 0E
set_attribute_single 10
reset 05
start 06
stop 07
create 08
delete 09
Before Network Before you can use the module to communicate on the network, you
Communication must first access the appropriate objects within the module to:
• stop the module if you need to re-initialize
• configure node address and baud rate
• start the module
Stop Service
17706.5.22
Module Communication Over the DF1 Link 3-5
Important: The module uses two baud rates. The first is the rate at
which data is exchanged between it and the host; this is
where the serial-link autobaud function is applied. The
second is the rate at which data is sent to and received
from the devices on the DeviceNet network; this is
where the set_attribute_service to the DeviceNet object
is applied.
Start Service
Communication On The As an interface for your host, the module sends messages to and
DeviceNet Network receives messages from devices on the network. It passes messages
from your host to the network and determines which DeviceNet
messages to accept from the wire. The module also supports
unconnected messages by passing them through to the host’s
Unconnected Message Manager (UCMM).
17706.5.22
3-6 Module Communication Over the DF1 Link
17706.5.22
Module Communication Over the DF1 Link 3-7
Reference After a connection has been established, the host must create
screeners in the module. Screeners are created for every device
Go to page:
connection from which you need to receive messages, other than
48
unconnected messages. A different screener is created for each of
these device connections. Each screener is responsible for
recognizing a particular CAN ID; they pass any message with a
matching CAN ID to the host. Screeners can be created and deleted
as needed.
17706.5.22
Chapter 4
Link Communication Example
17706.5.22
4-2 Link Communication Example
Initializing Your Module To initialize your module, perform the processes listed below.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
C8 RS23 object
01 instance 1
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
Link Communication Example 4-3
SerialLink Autobaud
So that your host and module can communicate properly, the module
must set its serial-link baud rate to match your host. To accomplish
this, repeatedly send a response-retransmission request (10 05hex) to
the module. You will know the module has acquired the proper baud
rate when it returns a message non-acknowledgment (10 15hex) and
its module-status indicator is solid green.
message sent from your host to your module over the RS232 seriallink
symbol DLE ENQ PCCC data CAN ID DeviceNet data DLE ETX BCC
hexadecimal 10 05
value
message sent from your module to your host over the RS232 seriallink
hexadecimal 10 15
value
Important: After transmitting the 10 05hex, your host needs to wait
a reasonable amount of time for the module to respond
before your host retransmits this message. In a
“worst-case-scenario,” this amount of time could range
from 50 to 100 milliseconds.
17706.5.22
4-4 Link Communication Example
Stop Service
When you send a stop message to your module, the module ceases
all network activities; it prepares the module for configuration. To
stop your module, send a stop message to its DeviceNet object’s
instance 1.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
03 DeviceNet object
01 instance 1
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
Link Communication Example 4-5
Since the module is one part of the overall device (the host and
module together constitute one device) you set the module’s node
address to match your host. To set your module’s node address, send
a set_attribute_single with the ID value to the DeviceNet object’s
instance 1, attribute 1.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
03 DeviceNet object
01 instance 1
01 attribute 1
3E 62
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
4-6 Link Communication Example
You set the baud rate at which you would like to communicate on the
DeviceNet network via the DeviceNet object. To set the baud rate at
which your module will communicate on the network, send a
set_attribute_single with the baud rate value to the DeviceNet
object’s instance 1, attribute 2.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
03 DeviceNet object
01 instance 1
02 attribute 2
There are three allowable baud 00 baud rate
rates that are represented by
hexadecimal values.
• 00hex = 125 kbps
• 01hex = 250 kbps
• 02hex = 500 kbps
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
Link Communication Example 4-7
Start Service
The final step of initialization is to start the module. You start the
module by sending a start service-code (06hex) to its DeviceNet
object’s instance 1.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
03 DeviceNet object
01 instance 1
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
4-8 Link Communication Example
Creating Screeners Screeners facilitate connected message transfers between your host
and devices on the network. To communicate with a network device
via connected messages, you must create a screener for the device
within the Link object. This is accomplished by sending a create
service-code to the Link class. In this example, we are creating a
screener for a network device with the node address 22.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
CB Link object
00 instance 0
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
Link Communication Example 4-9
Deleting Screeners You can delete screeners for devices with which you no longer need
to communicate via connected messages. To delete a screener, send a
delete service-code to the Link object. In this example, we are
deleting the screener we created in the previous example.
message sent from your host to your module over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
CB Link object
01 instance 1
16 node address
(16hex = 22dec)
message sent from your module to your host over the RS232 seriallink
8 byte maximum
symbol DLE STX PCCC data CAN ID DeviceNet data DLE ETX BCC
17706.5.22
Appendix A
Module Supported Objects
Important: Except for the Link object, the module does not support
class-level attributes or services of its objects.
For information about See page
1770KFD DF1 object A3
Identity object A4
Link object A6
Power Management object A7
RS232 object A7
DeviceNet Object The DeviceNet object provides the configuration and status for a
physical attachment to the DeviceNet network. Each physical
network-attachment in a device (there can be more than one per
Class ID Code: 03hex device) has one and only one DeviceNet object. This is a required
object for all DeviceNet devices.
Instance Services
Instance Attributes
Access
ID Name Data Type Description Value
Rule
node
1 get/set MAC ID USINT range 063
address
2 get/set baud rate USINT baud rate range 02
17706.5.22
A-2 Module Supported Objects
MAC ID:
The host and the module together constitute one device. The MAC
ID for this device is held in the module’s DeviceNet object.
To modify the MAC ID, you must delete all connection objects and
re-execute the Network Access State Machine. To accomplish this,
you must:
Baud Rate:
The baud rate attribute indicates the selected rate as listed below:
Value Meaning
00 125 kbps
01 250 kbps
02 500 kbps
To modify the baud rate you must delete all connection objects and
re-execute the Network Access State Machine. To accomplish this,
you must:
17706.5.22
Module Supported Objects A-3
1770KFD DF1 Object The host uses the module’s DF1 object to track communication on
the RS-232 serial-link. It logs all DF1 communication on this link
and can be accessed by sending a get_attribute_single. Different
Class ID Code: C9hex bytes carry specific counters. These bytes are what the host reads to
obtain the desired data, such as how many ACKs were received.
Instance Services
Instance Attributes
Access
ID Name Data Type Description Value
Rule
DF1 error tracks serial link
5 get USINT[34] see Table A.A
counters communication
Table A.A
ModuleSpecific Counter Bytes
Counter byte Counts
35, 36 number of times the node attempted to send a message
messages that were successfully transmitted
37, 38
and ACKed
39, 40 ACKs that were received
42 NAKs received
45 ENQs sent
46 messages that could not be successfully sent
48, 49 messages received
50, 51 ACKs sent
52 NAKs sent
53 ENQs received
55 STXs received
57 messages that were aborted by receipt of DLE ENQ
messages that were aborted by the receipt of an
58
unexpected control code other than DLE ENQ
60 times DLE NAK was sent because there was no buffer
67 times that DCD was lost
17706.5.22
A-4 Module Supported Objects
Identity Object The identity object provides general information about its device.
This object must be present in all DeviceNet products.
Instance Attributes
Access
ID Name Data Type Description
Rule
identification of each
1 get vendor UINT
vendor by number
indication of general type
2 get device type UINT
of product
identification of a particular
3 get product code UINT product of an
individual vendor
4 get revision STRUCT of
revision of the item the
major revision USINT identity object represents
minor revision USINT
5 get status WORD summary status of device
6 get serial number UDINT serial number of device
SHORT human readable
7 get product name
STRING identification
8 get state USINT present state of the device
17706.5.22
Module Supported Objects A-5
Vendor
If the returned attribute equals zero, it means “Unknown.”
Device Type
Every DeviceNet vendor uses the same list of device types to:
• register assembly-object instance definitions
• provide a scope for the product-code numbers
If the returned attribute equals zero, it means “Generic Device.” An
explanation of the generic device must be supplied in the
vendor documentation.
Product Code
The product code identifies a product among a particular device
type. Each vendor assigns this code to each of its products. The
product code should map to a catalog/bulletin number.
Revision
The revision attribute, which consists of major and minor revisions,
identifies the revision of the item this object represents.
Status
This attribute represents the current status of the entire device. Its
value changes as the state of the device changes.
Serial Number
This attribute is a number used in conjunction with the vendor
number to form a unique identifier for each device on a
DeviceNet. network
State
This attribute is an indication of the present state of the device.
17706.5.22
A-6 Module Supported Objects
Link Object You create CAN ID screeners in the link object. These screeners
make it possible for the module to receive messages from selected
network devices and pass that message on to your host. Screeners are
Class Code: CBhex similar to a list of passwords. When the module detects a message on
the network, it checks its CAN ID and compares it to its screeners in
the link object. If the message has a matching password (CAN ID)
then it is accepted and passed on the host.
Class Services
Instance Services
Instance Attributes
Access
ID Name Data Type Description Value
Rule
sets CAN ID to
1 get/set screened ID WORD 11 bit identifier
screen on
There can be a maximum of 128 screeners created.
17706.5.22
Module Supported Objects A-7
Power Management Object The power management object holds information about the module’s
network power supplying function. In addition, it facilitates
terminating resistor configuration.
Instance Attributes
Access
ID Name Data type Description
Rule
indicates whether or not the
1 get supply network power USINT module is supply network
power
indicates whether or not
2 get network power USINT
network power is present
indicates if the terminating
3 get/set terminating resistor USINT resistor is on. Toggles the
resistor on or off
Values for
Definition
Attribute 1
0 network
1 power supply
2 batteries
RS232 Object The RS-232 object maintains the module’s serial-link autobaud
function before and after acquiring that rate. However, it only
maintains the rate of data exchange between the host and module. Do
Class Code: C8hex not confuse this object’s function with the DeviceNet object. The
DeviceNet object acquires and maintains the DeviceNet network
baud rate. In addition, you access the RS-232 object before
initializing the module; you send a reset command to this object to
clear the module before configuring it, which includes “serial-link
autobauding.”
Instance Services
17706.5.22
Appendix B
Troubleshooting
Appendix Contents This appendix lists problems you may encounter when working with
your 1770-KFD module on the link layer. It covers the most
commonly encountered errors.
17706.5.22
B-2 Troubleshooting
Troubleshooting the Module The following table lists common errors encountered when
communicating with your module on the link layer. The first column
in each category describes a “symptom” that is then followed by a
list of status-indicator states, probable causes, and recommendations
on how to correct the error.
17706.5.22
Troubleshooting B-3
94hex response after The module is set at an Access the DeviceNet object
you send start service. incorrect node address to set the appropriate node
(MAC ID). address for the module
(see page 45).
The module is set at an Access the DeviceNet object
Error response received from
incorrect network baud rate. to set the appropriate baud
start service (06hex). Note
rate for the module
that a good response is 86hex
(see page 46).
while an error response
is 94hex. There is no response to The module is not properly Be sure the DeviceNet cable
the start service. connected to the network via connecting the module to the
the DeviceNet cable. network is properly installed,
including the 5position
connector at the module's
DeviceNet port.
Link object The module has not been Create screeners for each
Not receiving connected
configured for connected CAN ID from which you want
DeviceNet network messages
messages (no screeners set to receive messages
(this excludes any
up to receive connected (see page 48)
unconnected messages).
DeviceNet messages).
17706.5.22
Index
F message
create service, 37
FFFF (hex), 32 delete service, 37
full duplex DeviceNet, 34
DF1 protocol, 21 failing, 213
message packet, 23 format, 32, 33
fullduplex packet, 23
normal transmission, 212
G packet fields, 23
problems in receiving, 29
get_attribute_single
receiving connected messages, 37
DeviceNet object, A1
retransmission request, 214
service, 34
sending connected messages, 36
sending/receiving via UCMM, 36
H sink, 25
source, 25
hexadecimal service codes, 34 transmission examples, 212
host, communication with module, 22, transmitting, 26
32 type, 22
message transmission examples, 212 message format, module, 15
minor (revision), identity object, A5
I modem, 12
autoanswer, 12
identity, object DTE controlled answer, 12
definition for module, A4 initializing, 42
device type, A5
module
product code, A5
1770KFD protocol, 15
revision, A5
about, 11
serial number, A5
autobaud, 31, 42, 43
state, A5
basics, 11
status, A5
baud rate, 42, 46
vendor, A5
baud rates, 12
initializing your module, 42 communication over the DF1 link, 31
ISO 1177, 22 communication with host, 22
errors, general, B2
message, format, 15
L node address, 42, 45
physical connections, 11
link
pointtopoint, 11
communication example, 41
remote via modem, 12
linklayer protocol, 21
reset, 42
linklevel communication, 13
start service, 47
object, 16, 37
status indicator, 31
creating screeners, 48
state definitions, B1
definition for module, A6
status indicators, 12
deleting screeners, 49
stop service, 44
protocol, 22
supported objects, 16, A1
local communication, 32
module status indicator, 12
local objects, accessing, 33 state definitions, B1
M N
MAC ID (node address), A2 NAK, 22, 23
major (series), identity object, A5
Index I–3
Pub. Name DeviceNet RS232 Interface Module Communication Protocol Reference Manual
Cat. No. 1770KFD Pub. No. 17706.5.22 Pub. Date October 1995 Part No. 95512207
Clarity
What is unclear?
Sequence
What is not in the right order?
Other Comments
Use back for more comments.
Return to: Technical Communication, AllenBradley Co., 1 AllenBradley Drive, Mayfield Hts., OH 44124 Phone: (216)6463166
FAX: (216)6464320
Other Comments
PLEASE REMOVE
PLEASE FOLD HERE
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
Technical Communication
1 ALLEN BRADLEY DR
MAYFIELD HEIGHTS OH 44124-9705
AllenBradley, a Rockwell Automation Business, has been helping its customers improve
productivity and quality for more than 90 years. We design, manufacture and support a broad
range of automation products worldwide. They include logic processors, power and motion
control devices, operator interfaces, sensors and a variety of software. Rockwell is one of the
world's leading technology companies.
Worldwide representation.
Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colombia • Costa Rica • Croatia • Cyprus • Czech Republic •
Denmark • Ecuador • Egypt • El Salvador • Finland • France • Germany • Greece • Guatemala • Honduras • Hong Kong • Hungary • Iceland • India • Indonesia •
Ireland • Israel • Italy • Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Malaysia • Mexico • Netherlands • New Zealand • Norway • Pakistan • Peru •
Philippines • Poland • Portugal • Puerto Rico • Qatar • Romania • Russia-CIS • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic • Spain •
Sweden • Switzerland • Taiwan • Thailand • Turkey • United Arab Emirates • United Kingdom • United States • Uruguay • Venezuela • Yugoslavia
AllenBradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 3822000 Fax: (1) 414 3824444