Microscan DN120 DeviceNet Manual de usuario

DN120 DeviceNet
Gateway
User’s Manual
DN120
PN 84-210010 Rev A

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 2
Table of Contents
CHAPTER 1 – OVERVIEW ..................................................................................................................................... 4
CHAPTER 2 – INSTALLATION ............................................................................................................................. 5
M
OUNTING
............................................................................................................................................................... 5
W
IRING
..................................................................................................................................................................... 6
DeviceNet Interface............................................................................................................................................. 6
Serial Channel Interface ..................................................................................................................................... 6
Wiring Examples................................................................................................................................................. 7
CHAPTER 3 – THEORY OF OPERATION........................................................................................................... 8
G
ATEWAY
O
PERATION
............................................................................................................................................. 8
DeviceNet Object Model ..................................................................................................................................... 8
DeviceNet Interface............................................................................................................................................. 9
Serial Channel Interface ................................................................................................................................... 10
Asynchronous Serial Communication .............................................................................................................................11
Status Information ...........................................................................................................................................................11
Receiving Messages ........................................................................................................................................................12
Stream Mode ..............................................................................................................................................................12
Block Mode................................................................................................................................................................12
Returning Received Data............................................................................................................................................13
Padding Message Data ...............................................................................................................................................13
Re-sending Received Data .........................................................................................................................................14
Transmitting Messages....................................................................................................................................................15
Synchronization...............................................................................................................................................................15
Receive Sequence Number.........................................................................................................................................15
Transmit Sequence Number .......................................................................................................................................15
Synchronous Handshake Protocol..............................................................................................................................16
CHAPTER 4 – GATEWAY CONFIGURATION................................................................................................. 18
C
ONFIGURE
D
EVICE
N
ET
I
NTERFACE
....................................................................................................................... 18
DeviceNet Baud Rate Switch............................................................................................................................. 18
MAC ID Switches .............................................................................................................................................. 18
Serial Channel Baud Rate / Option Switch ....................................................................................................... 19
P
OWER
U
P
G
ATEWAY
............................................................................................................................................. 19
DeviceNet Status LEDs ..................................................................................................................................... 19
Serial Channel Status LEDs.............................................................................................................................. 20
Register EDS File.............................................................................................................................................. 20
C
ONFIGURE
S
ERIAL
C
HANNEL
................................................................................................................................21
C
ONFIGURE
D
EVICE
N
ET
M
ASTER
S
CAN
L
IST
......................................................................................................... 26
Poll Consume Size............................................................................................................................................. 26
Poll Produce Size.............................................................................................................................................. 26
CHAPTER 5 – DEVICENET SPECIFICATIONS................................................................................................ 27
D
EVICE
N
ET
M
ESSAGE
T
YPES
................................................................................................................................. 27
D
EVICE
N
ET
C
LASS
S
ERVICES
................................................................................................................................. 27
D
EVICE
N
ET
O
BJECT
C
LASSES
................................................................................................................................. 27
IDENTITY OBJECT ............................................................................................................................................. 28
ROUTER OBJECT................................................................................................................................................ 29
DEVICENET OBJECT.......................................................................................................................................... 30
ASSEMBLY OBJECT........................................................................................................................................... 31
CONNECTION OBJECT ...................................................................................................................................... 32
SERIAL STREAM OBJECT................................................................................................................................. 34
CHAPTER 6 – RSNETWORX
CONFIGURATION EXAMPLE .................................................................... 36
C
ONFIGURE
D
EVICE
N
ET
I
NTERFACE
....................................................................................................................... 37

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 3
C
ONNECT
& R
EGISTER
EDS F
ILE
........................................................................................................................... 37
C
ONFIGURE
S
ERIAL
C
HANNEL
................................................................................................................................45
C
ONFIGURE
D
EVICE
N
ET
M
ASTER
S
CAN LIST
......................................................................................................... 52
CHAPTER 7 – CONFIGURATION EXAMPLES................................................................................................ 59
E
XAMPLE
1 – R
ECEIVING
F
IXED
-L
ENGTH
D
ATA
.................................................................................................... 59
Barcode Scanner............................................................................................................................................... 59
DN120 Gateway................................................................................................................................................ 59
E
XAMPLE
2 – R
ECEIVING
P
RE
-D
ELIMITED
D
ATA
................................................................................................... 61
Barcode Scanner............................................................................................................................................... 61
DN120 Gateway................................................................................................................................................ 61
E
XAMPLE
3 – R
ECEIVING
P
OST
-D
ELIMITED
D
ATA
................................................................................................. 63
Barcode Scanner............................................................................................................................................... 63
DN120 Gateway................................................................................................................................................ 63
E
XAMPLE
4 – T
RANSMITTING
F
IXED
-L
ENGTH
D
ATA
.............................................................................................. 65
Bar Code Scanner ............................................................................................................................................. 65
DN120 Gateway................................................................................................................................................ 65
E
XAMPLE
5 – T
RANSMITTING
V
ARIABLE
-L
ENGTH
D
ATA
....................................................................................... 67
Bar Code Scanner ............................................................................................................................................. 67
DN120 Gateway................................................................................................................................................ 67
CHAPTER 8 – TROUBLESHOOTING................................................................................................................. 68
APPENDIX A – PRODUCT SPECIFICATIONS.................................................................................................. 69
D
EVICE
N
ET
I
NTERFACE
.......................................................................................................................................... 69
S
ERIAL
C
HANNEL
................................................................................................................................................... 69
E
NVIRONMENTAL
................................................................................................................................................... 69
APPENDIX B – DEVICENET TEMPLATE......................................................................................................... 70
APPENDIX C – ASCII CHARACTER CODES.................................................................................................... 71

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 4
Chapter 1 – Overview
This document describes how to install, configure, and operate the DN120 series of serial to
DeviceNet gateways. The following products are covered in this user manual:
Part Number Serial Channel
DN120 RS232 full duplex
The DN120 gateways allow you to easily interface a wide variety of serial devices to any
DeviceNet industrial control network. Each gateway contains the feature-packed D.I.P.
DeviceNet core. Standard DN120 products are tightly packaged and sealed in a rugged
industrial case. Board-level and customized gateways are also available upon request.
DN120
Product Features
•500V isolated serial channel
•RS232 with RTS/CTS flow control
•XON/XOFF software flow control
•300, 600, 1200, 2400, 4800, 9600, 19200 bps serial data rates
•Configurable parity
•64 byte transmit and receive FIFO buffers
•Powered from DeviceNet 24VDC
•Loss-of-ground protection circuitry
•DeviceNet slave mode supports POLL and EXPLICIT messages
•Rotary switches set DeviceNet baud rate and MAC ID
•Rotary switch sets serial data rate
•4 bi-color status LEDs
•Encapsulated circuit board in compact industrial case
Isolated Serial Channel
(
male DB9 connector
)
DeviceNet Channel
(
male 5-
p
in micro connector
)
DeviceNet MAC ID
Rotar
y
Switches
DeviceNet Baud Rate
Rotar
y
Switch
DeviceNet Status LEDs
(NET, MOD)
Serial Status LEDs
(RX, TX)
M
ounting Holes
Serial Baud Rate
Rotar
y
Switch

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 5
Chapter 2 – Installation
This chapter describes how to install and connect the DN120 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 DN120 serial channel connector is not rated for NEMA4 / IP65 environments. Mount the
gateway in a suitable location or enclosure for your application. The gateway will generate up to
1.4W of heat, so provide sufficient clearance and airflow to maintain 0°C to 70°C operating
temperature range. Use two screws (not provided) in the 0.19 inch mounting holes shown below
to fasten the DN120 to the mounting surface.
0.65 0.45
0.50
0.12
Mtg. Holes 1.225
(2) 0.19 DIA.
1.225
0.725 0.625 DIA. On Case Wall
0.70
1.10
1.25
0.542
3.30
4.30
3.80
A
ll dimensions
are inches

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 6
Wiring
The DN120 requires two connections – one to the DeviceNet network (male 5-pin micro
connector) and one to the target serial device (male DB9 connector). Follow all applicable
electrical codes in your area when mounting and wiring any electrical device.
All power is received from the DeviceNet network. The DN120 draws up to 50mA from the
24VDC power supply. Select your DeviceNet cables and power supply so that it can provide
sufficient current for all networked devices at their peak operating power.
DeviceNet Interface
PIN SIGNAL COLOR DESCRIPTION
1 DRAIN NONE Cable shield or drain wire.
2 V+ RED DeviceNet 24VDC(+) power.
3 V- BLACK DeviceNet 24VDC(-) power.
4 CAN_H WHITE Communication signal.
5 CAN_L BLUE Communication signal.
Serial Channel Interface
DN120 (RS232)
PIN SIGNAL DESCRIPTION
1 NC No Connect. Do not connect any wires to NC pins.
2 RXD Receive Data. RS232 input signal.
3 TXD Transmit Data. RS232 output signal.
4 NC No Connect.
5 GND Ground. Common for RS232 signals.
6 NC No Connect.
7 RTS Request To Send. RS232 output signal.
8 CTS Clear To Send. RS232 input signal.
9 NC No Connect.
DRAIN
V+
V- CAN
_
H
CAN_L
Male 5-Pin Micro Connector
1
9
5
6
23
78
4
Male DB9 Serial Connector

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 7
Wiring Examples
The following are typical DN120 gateway wiring configurations. Your RS232 or RS422/485
interface may vary. Refer to your device’s documentation for the required data and control
signals.
DN120
2
3
5
RXD
TXD
GND
1
2
3
4
5
DRAIN
VDC+
VDC-
CAN H
CAN L
RXD
TXD
GND
2
3
5
RS232
Serial
Device
Simple RS232 Interface
DN120
2
3
5
RXD
TXD
GND
1
2
3
4
5
DRAIN
VDC+
VDC-
CAN H
CAN L
RXD
TXD
GND
2
3
5
RS232
Serial
Device
RS232 Interface, HW Flow Control
7
8
RTS
CTS
RTS
CTS
7
8

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 8
Chapter 3 – Theory of Operation
This chapter describes how the DN120 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. Refer to your serial device documentation for its protocol information.
Gateway Operation
The DN120 gateway receives asynchronous serial messages over its serial channel and returns
the received bytes as input data to the DeviceNet master. The gateway transmits bytes sent as
output data from the DeviceNet master out its serial channel. The following diagram shows the
major gateway components.
DeviceNet Object Model
The DeviceNet Specification defines an Object Model that consists of Objects and Attributes.
An Object is a predefined software process, and an Object Attribute is a data value used or
generated by that process. An Object Instance is one occurrence of an Object, operating on its
unique set of Attribute values. The DN120 gateway has six different Object Classes, or types.
Five are standard objects defined by the DeviceNet Specification (Identity, Router, DeviceNet,
Assembly, Connection). One is a device-specific object defined for the DN120 gateway (Serial
Stream). The Serial Stream Object configures and controls the serial channel. It receives and
packages serial data into DeviceNet input bytes, and transmits DeviceNet output bytes as serial
data. Chapter 5 contains detailed information on each DeviceNet object class, instance, and their
associated attributes.
Gateway Core
• microcontroller
• RAM
• Flash ROM
DC:DC Power Conversion
• 24VDC DeviceNet power input
• VDC for Core & DeviceNet channel
• isolated VDC for serial channel
DeviceNet Channel
• 24VDC power
• communications
Serial Channel
• communications
• flow control
5-pin male
micro connector Male DB9
connector
Serial Stream Object
DeviceNet Object
or Rotary Switches
Configures the DeviceNet
interface baud rate and
M
AC ID address.
Configures the serial channel.
R
eceives and transmits seria
l
messages. Controls optional
synchronization.
DeviceNet Poll Command
output data
DeviceNet Poll Response
input data
serial
messages

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 9
DeviceNet Interface
The DN120 gateway operates as a DeviceNet slave. It supports Explicit Messages and Polled
I/O Messages of the predefined master/slave connection set. The Explicit Unconnected Message
Manager (UCMM) is not supported.
There are four independent processes operating in a DN120 gateway application. The first
process is the exchange of input and output data between the user application program and the
DeviceNet master. The second process is the exchange of input and output data between the
gateway and DeviceNet master, using Polled I/O messaging. The third process is receiving serial
messages and converting it to input data. The fourth process is converting output data and
transmitting it as serial messages.
The DeviceNet Polled I/O Message process consists of the DeviceNet master sending output data
to the DN120 in the form of a Poll Command message, and the DN120 returning input data to
the DeviceNet master in a Poll Response message. The output and input data bytes are typically
mapped into data files inside the DeviceNet master. These data files are exchanged with the user
application program. The application processes the received input data from the gateway and
writes new output data to the DeviceNet master, which sends them to the gateway.
The Polled I/O data exchange typically occurs at a faster rate than the serial transmit and receive
operation, because the DeviceNet baud rate is much greater than the serial channel baud rate.
The DN120 has transmit and receive buffers to handle the slower serial processes. The gateway
also provides synchronization features to ensure delivery of received messages to the application
program, and transmission of application messages out the serial channel.
DN120
Gateway
DeviceNet
Master
Application
Program
Input File
Output File
Serial
Device
DeviceNet network
Outputs
Inputs
Receive
Message Packet
Transmit
Message Packet
DeviceNet Poll Command
output data
DeviceNet Poll Response
input data

DN120 DeviceNet Gateway User’s Manual
Microscan Systems, Inc. 10
The DN120 configuration defines the number of output bytes in a Poll Command message, and
the number of input bytes in a Poll Response message. Each Poll Command and Poll Response
message can contain up to 2 overhead bytes for DN120 status and data synchronization
information. The remaining bytes contain output data to be transmitted out the serial channel, or
input data received by the serial channel.
The following diagram shows how the input and output bytes map into the Poll Response and
Poll Command messages. The gateway supports a maximum of 67 output bytes in a Poll
Command message, and a maximum of 67 input bytes in a Poll Response message.
DeviceNet Master Mapping of DeviceNet Poll Command and Poll Response Data
DeviceNet Master Outputs DeviceNet Poll Command Message Data
output bytes
Status Clear
(if enabled)
TX Sequence Number (if
enabled)
Other Output Bytes
(1-65 bytes)
output byte
output byte
output byte
output byte
output byte
output byte
output byte
output byte
output byte
output byte
output byte
output bytes
DeviceNet Master Inputs DeviceNet Poll Response Message Data
input bytes
Status
(if enabled)
RX Sequence Number (if
enabled)
Other Input Bytes
(1-65 bytes)
input byte
input byte
input byte
input byte
input byte
input byte
input byte
input byte
input byte
input byte
input byte
input bytes
Serial Channel Interface
The DN120 serial channel consists of an asynchronous serial transmitter and receiver. The serial
interface is configured and controlled by the Serial Stream Object. The Serial Stream Object
attributes configure the serial channel baud rate, parity, and flow control. This configuration
applies to both the serial transmitter and receiver. The DN120 gateway has separate 64-byte
serial transmit and receive FIFO buffers, allowing full duplex operation when supported by the
physical layer media.
Tabla de contenidos
Manuales populares de Puerta de otras marcas

LST
LST M500RFE-AS Manual de usuario

Kinnex
Kinnex Media Gateway Manual de usuario

2N Telekomunikace
2N Telekomunikace 2N StarGate Manual de usuario

Mitsubishi Heavy Industries
Mitsubishi Heavy Industries Superlink SC-WBGW256 Manual de usuario

ZyXEL Communications
ZyXEL Communications ZYWALL2 ET 2WE Manual de usuario

Telsey
Telsey CPVA 500 - SIP Manual de usuario











