The text of a manual · part 4 of 19
PLC-5 DeviceNet Scanner Module 1771-SDN User Manual: 1 - Before You Begin
Pages 17 to 28 of 149, from PLC-5 DeviceNet Scanner Module 1771-SDN User Manual
The original document is the PDF (3.4 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 Allen-Bradley 1771-SDN
Page 17
Chapter
1
Before You Begin
What This Chapter Contains This chapter provides an overview of communication between a
PLC-5 processor and DeviceNet devices via a 1771-SDN module. The data tables and the RSNetWorx for DeviceNet screens and windows used to configure the data tables are also described. The following table identifies what this chapter contains and where to find specific information.
What You Need to Know
For information about
See page
What You Need to Know
1-1
What Your 1771-SDN Module Does
1-2
Address Density and Discrete I/O
1-4
Communicating with Your Devices
1-6
Communication with Your PLC-5 Processor
1-7
What 1771-SDN Module Data Tables Are and What They Do
1-8
RSNetWorx Software as a Configuration Tool
1-9
What’s Next?
1-11
Before configuring your 1771-SDN scanner module, you must understand: • the data exchange between the PLC -5 processor and DeviceNet devices through the 1771-SDN module • user-configurable 1771-SDN module data tables • the role of RSNetWorx for DeviceNet software
1
Publication 1771-UM118C-EN-P - June 2003
Page 18
1-2
Before You Begin
In a typical configuration, the 1771-SDN module acts as an interface between DeviceNet devices and the PLC-5 processor.
What Your 1771-SDN Module Does
DeviceNet Network
PC with RSNetWorx for DeviceNet software
1771-SDN Scanner module
1771 I/O Chassis
1770-KFD PC Communication Module
PLC-5 Processor
Series 9000 Photoeye
FLEX I/O Rack RediSTATION DeviceNet Devices
1305 Drive
The 1771-SDN module communicates with DeviceNet devices over the network to: • respond as a slave • read inputs from a device • write outputs to a device • download configuration data • monitor a device’s operational status The 1771-SDN module communicates with the processor in the form of Block Transfers (BT) and/or Discrete I/O (DIO). Information exchanged includes: • device I/O data • status information • configuration data
Publication 1771-UM118C-EN-P - June 2003
Page 19
Before You Begin
1-3
A processor to I/O DeviceNet configuration is shown in the following figure. See the referenced chapters for more information. Input Read by Processor (Chapter 2)
Processor to I/O
PC running RSNetWorx for DeviceNet
Configure SDN module (Chapter 4) Mapping Table (Chapters 2 and 4)
Output Write by Processor (Chapter 2)
Input Data from Device to SDN (Chapter 2) Input Device
Output Data to Devices from SDN (Chapter 2)
DeviceNet Network
Output Device
Publication 1771-UM118C-EN-P - June 2003
Page 20
1-4
Before You Begin
The 1771-SDN scanner module can also be used to bridge a DeviceNet network with another network.
Configuring Devices and Data Collection on Higher-Level Networks Via PLC-5/SDN Industrial workstation running RSView
Laptop PC running RSNetWorx
ControlNet, DH+, or Ethernet Network
Configuration of device using RSNetWorx (Chapters 4 & 5)
SDN scanner module
DeviceNet Network
Collection of status or alarm data (Chapter 6)
Target Device to be configured
Address Density and Discrete I/O
Publication 1771-UM118C-EN-P - June 2003
Source Device to collect data
You can use three addressing methods with your 1771-SDN scanner module. The number of discrete I/O bits you have available for data transfer is affected by the addressing mode selected. Addressing Mode
Discrete Inputs
Discrete Outputs
2-slot
0 bits
0 bits
1-slot
8 bits
8 bits
1/2-slot
24 bits
24 bits
Page 21
Before You Begin
1-5
The concept described below applies to both input and output data tables. For example, when using your 1771-SDN in 1-slot addressing mode, you have eight bits of discrete input and eight bits of output available. In the scanner's input and output data tables, there is one byte of memory that is reserved for communication between the processor and the scanner. Processor-specific responses from the scanner are read by the processor in this byte of the input data table. Scanner-specific instructions are written to this byte of the output data table.
= bits reserved for 1771-SDN and processor communication
= bits available for discrete data transfer
2-slot addressing
0 bits for discrete data transfer
In 2-slot addressing mode, the only memory that would have been available for discrete data transfer (8 bits) is taken up by scanner/processor communication.
1-slot addressing
8 bits for discrete data transfer
In 1-slot addressing mode, there are 16 bits: eight bits for scanner/processor communication, and eight bits for discrete data transfer.
1/2-slot addressing
24 bits for discrete data transfer
In 1/2-slot addressing mode, there are 32 bits: eight bits used for scanner/processor communication, and 24 bits for discrete data transfer.
More
The address density is set via dip switches on the 1771-SDN module and 1771 chassis. For more information about setting your module’s address density with switches, refer to the 1771-SDN Scanner Module Installation Instructions, publication 1771-IN014. For more information about 1771-module addressing, refer to chapter 3 and to your PLC programmable controller system-level installation manual and design manual.
Publication 1771-UM118C-EN-P - June 2003
Page 22
1-6
Before You Begin
The 1771-SDN module communicates with a device via strobe, poll, change of state, and/or cyclic messages. It uses these messages to solicit data from or deliver data to each device. Data received from the devices, or input data, is organized by the 1771-SDN module and made available to the processor. Data received from your PLC-5 processor, or output data, is organized in the 1771-SDN module and sent on to your devices.
Communicating with Your Devices A strobe message is a multicast transfer of data (which is 64 bits in length) sent by the 1771-SDN module that solicits a response from each strobed slave device. There is one bit for each of the possible 64 node addresses. The devices respond with their data, which can be as much as 8 bytes.
IMPORTANT
Throughout this document, input and output are defined from the PLC-5 processor’s point of view. Output is data sent from the PLC-5 processor to a device. Input is data collected by the PLC-5 processor from a device. All data sent and received on a DeviceNet network is in byte lengths. A device may, for example, produce only two bits of input information. Nevertheless, since the minimum data size on a DeviceNet network is one byte, two bits of information are included in the byte of data produced by the device. In this example (only two bits of input information), the upper six bits are insignificant.
A poll message is a point-to-point transfer of data (0-255 bytes) sent by the 1771-SDN module that solicits a response from a single device. The device responds with its input data (0-255 bytes).
DeviceNet Devices
1771-SDN Scanner Module A change of state message is a transfer of data sent whenever a data change occurs. A user-configurable heartbeat rate can also be set to allow devices to indicate proper operation during intervals between data changes. This does not solicit response data, but may receive an acknowledge message. A cyclic message is sent only at a user-configurable rate, such as every 10 ms.
Input Data From DeviceNet Devices
Input Data Storage
Data from a single device can be mapped to separate 1771-SDN module memory locations. For example, “On/Off” values can be mapped to one location, diagnostic values to another, etc. This is known as “map segmenting”. This concept is illustrated by byte A, stored separately, as segments A1 and A2.
A1
Byte 0
B
1
C A2
2
D
4
E
5
E
6
3
A2
A1
B input from the devices to the PLC-5 processor
C D E
Output Data To DeviceNet Devices Output Data Storage
X
X Y Y output from the PLC-5 processor
Y
Y Y
Y Y Z
Publication 1771-UM118C-EN-P - June 2003
Z
Page 23
Before You Begin
Communicating with Your PLC-5 Processor A block transfer read (BTR) is a block transfer of data from the 1771-SDN module to the PLC processor. The processor is reading the data collected by the 1771-SDN module (i.e., DeviceNet input data).
A block transfer write (BTW) is a block transfer of data from the PLC processor to the 1771-SDN module. The processor is writing the data to the 1771-SDN’s memory (i.e., DeviceNet output data).
1-7
Your processor communicates with the 1771-SDN scanner module via block transfer reads, block transfer writes, and DIO transfers. Input data, gathered from the network’s devices, is organized within the 1771-SDN and made available for the processor to “read”.
The 1771-SDN module does not send data to your processor. Data transferred between the module and the processor must be initiated by the processor. Output data is sent, or “written”, to the scanner by your processor. This data is organized in the 1771-SDN module, which in turn passes the data on to your scanned devices via strobe, poll, change of state, or cyclic messages. PLC-5 Processor
1771-SDN Scanner
Discrete Input Image Internal Input Data Storage
B A1 Block Transfer Data File C A2
Discrete I/O Transfer I/O Map Block Transfer Read
D E E
A1 B C A2 D E E
Input from the devices
Discrete Output Image X
Discrete I/O Transfer
Block Transfer Data File Z Y
I/O Map
Y Y Y
Internal Output Data X Y
Block Transfer Write
Y Y Y
Output to the devices
Z
Publication 1771-UM118C-EN-P - June 2003
Page 24
1-8
Before You Begin
What 1771-SDN Module Data Tables Are and What They Do
To manage the flow of data between your processor and the network devices, the 1771-SDN module uses the following data tables. • 1771-SDN Module Configuration Table • Scanlist Table • Device Input Data Table • Device Output Data Table • Device Idle Table • Device Failure Table You can configure two of these data tables through RSNetWorx software. These two tables are stored in the 1771-SDN module’s non-volatile memory and used to construct all other data tables: • Scanner Configuration Table (SCT) • Scanlist Table (SLT)
The Scanner Configuration Table (SCT) The SCT controls basic information your 1771-SDN module needs to function on your DeviceNet network. It tells your 1771-SDN module: • if it can transmit and receive input and output data • how long it waits after each scan before it scans the devices again • when to send out its poll messages
The Scanlist Table (SLT) The SLT supports I/O updating for each of your devices on the network. It also makes it possible for your 1771-SDN module to make device data available to your processor. The SLT tells your 1771-SDN module: • which device node addresses to scan • how to scan each device (strobe, poll, change of state, cyclic or any valid combination) • how often to scan your devices
Publication 1771-UM118C-EN-P - June 2003
Page 25
Before You Begin
1-9
• exactly where in each device’s total data to find the desired data • the size of the input data/output data • exactly where to map the input or output data for your processor to read or write
Interscan delay is the time between I/O scans (polled and strobed). It is the time the 1771-SDN module will wait between the last poll message request and the start of the next scan cycle. The scanner module also uses this time to perform non-time-critical communications on the DevceNet network, such as communicating with RSNetWorx for DeviceNet software. Background poll ratio sets the frequency of poll messages to a device in relation to the number of I/O scans. For example, if the ratio is set at 10, that device will be polled once every 10 scans.
RSNetWorx Software as a Configuration Tool
User Configured Tables
Data In This Table
RSNetWorx Configuration Screen
SCT
• • • • basic operation module parameters interscan delay background poll ratio
1771-SDN Module Configuration
SLT
• device-specific identification data
Scanlist Editor (SLE)
• • data transfer method Edit Device I/O Parameters transmit/receive data size
• input and output data source and destination locations
TIP
These values can be configured automatically through the AutoMap function or manually through the Data Table Map.
Use caution when changing the interscan delay time from its default value. Setting this parameter to a low value increases the latency for non-time-critical scanner operations including the time required to respond to RSLinx software and configuration functions. Setting this parameter to a high value reduces the freshness of the I/O data being collected by the scanner.
RSNetWorx for DeviceNet software is used to configure the 1771-SDN module’s data tables. This software tool connects to the 1771-SDN module over the DeviceNet network via a PC RS–232 interface (1770–KFD module), or PC Card (1784-PCD, -PCID, or PCIDS). TIP
RSNetWorx for DeviceNet software can also communicate with the 1771-SDN module via a ControlNet, Ethernet, or Data Highway Plus network. See chapter 5.
Publication 1771-UM118C-EN-P - June 2003
Page 26
1-10
Before You Begin
The configuration screen map below shows the RSNetWorx for DeviceNet screens used to configure the 1771-SDN module and the navigation paths between them. The use of these screens is described in Chapter 4.
RSNetWorx for DeviceNet Configuration Screen Map The main RSNetWorx for DeviceNet screen.
To browse the network, click on the Online button and select the driver.
To access the 1771-SDN scanner Module, double-click on the 1771-SDN icon. To access the scanlist, click on the Scanlist tab. To download the scanlist, click on the Download to Scanner button.
To automatically map input devices, select the Input tab and click on the AutoMap button.
Publication 1771-UM118C-EN-P - June 2003
To automatically map output devices, select the Output tab and click on the AutoMap button.
To edit a device’s I/O parameters, double-click on the device in the scanlist.
Page 27
Before You Begin
What’s Next?
1-11
The remaining sections of this manual provide the following information: • Chapter 2 covers the configuration process planning stage through a data mapping example. • Chapter 3 describes the hardware setup for the example application. • Chapter 4 covers configuration of the DeviceNet network using RSNetWorx for DeviceNet software. • Chapter 5 describes how to communicate with a DeviceNet network from another network. • Chapter 6 describes how to create, download, and run the example application program. • Chapter 7 covers the diagnostics provided for troubleshooting the 1771-SDN module.
Publication 1771-UM118C-EN-P - June 2003
Page 28
1-12
Before You Begin
Notes
Publication 1771-UM118C-EN-P - June 2003