The text of a manual · part 6 of 14
FLEX I/O Diagnostic Modules, Catalog Numbers 1794-IB16D, 1794-OB16D, User Manual, pages 51 to 60
Pages 51 to 60 of 132
The original document is the PDF (2.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.
Filed in the catalog under the Allen-Bradley 1794-OB16
Page 51
Configure FLEX I/O Digital Modules on a DeviceNet Network
49
Set the status size for a scanner If you want this information:
Set the Status Which gives you: Size to (DINTs): Member:
Data Type
10
ScanCounter
DINT
DeviceFailureRegister
SINT[8]
AutoverifyFailureRegister
SINT[8]
DeviceIdleRegister
SINT[8]
ActiveNodeRegister
SINT[8]
StatusDisplay
SINT[4]
ScannerAddress
SINT status code of scanner
ScannerStatus
SINT address with an error:
ScrollingDeviceAddress
SINT
ScrollingDeviceStatus
SINT count of I/O scans indication that a device has failed: • There is 1 bit for each address on the DeviceNet network (0 -63). • The position of a bit = address of a device. • If a bit = 1, then the device at that address has failed. indication that the data size of a device does not match the amount of memory allocated for the device in the scanner: • There is 1 bit for each address on the DeviceNet network (0 -63). • The position of a bit = address of a device. • If a bit = 1, then their is a mismatch with that address. indication that a device is idle: • There is 1 bit for each address on the DeviceNet network (0 -63). • The position of a bit = address of a device. • If a bit = 1, then the device at that address is idle. indication that a device is online: • There is 1 bit for each address on the DeviceNet network (0 -63). • The position of a bit = address of a device. • If a bit = 1, then the device at that address is online. ASCII representation of scanner status/display address of the scanner
11
• scrolls through the addresses with errors • ScrollingDeviceStatus member shows the status code status code of an address with an error: • scrolls through addresses with errors • ScrollingDeviceAddress member shows the address possible future expansion of the structure – 5 DINTs
16 status code of lower 32 devices – 1 byte per device
24
DeviceStatus
SINT[32] status code of all devices – 1 byte per device
32
DeviceStatus
SINT[64]
Publication 1794-UM061A-EN-P - July 2006
Page 52
50
Configure FLEX I/O Digital Modules on a DeviceNet Network
Add the Scanner to the I/O Configuration Folder CompactLogix scanner
ControlLogix, FlexLogix, and SoftLogix5800 scanners
1. Right-click and choose New Module.
EtherNet/IP to DeviceNet linking device
ControlNet to DeviceNet linking device
2. Choose the type of scanner.
3. Select the major revision of the scanner.
Publication 1794-UM061A-EN-P - July 2006
Page 53
Configure FLEX I/O Digital Modules on a DeviceNet Network
51
Define the Properties of the Scanner
1. Specify the general properties (name, slot, sizes, etc.).
2. Choose Next.
3. Choose Next. 4. Choose Browse and find the RSNetWorx configuration file for the network (.dnt file). The default path for the file is …\Program Files\Rockwell Software\RSNetWorxII\Networks.
5. Choose Finish.
Publication 1794-UM061A-EN-P - July 2006
Page 54
52
Configure FLEX I/O Digital Modules on a DeviceNet Network
Determine the Address of DeviceNet Data
When you add the scanner to the I/O configuration of the controller, RSLogix 5000 software automatically creates a set of tags for the input, output, and status data of the network:
input data from the scanner output data for the scanner status data from the scanner
The tags for your DeviceNet data follow this format: The scanner memory uses this format: slot type
.Data
[element]
Which is this tag in the controller .bit location
:type
.Data
[element]
.bit = Optional
Where:
Is:
slot slot number of the scanner location
If you have this scanner:
Then location is:
local ControlLogix 1756-DNB
Local:slot_number_of_scanner remote ControlLogix 1756-DNB name_of_remote_bridge:slot_number_of_scanner
CompactLogix 1769-SDN
Local:slot_number_of_scanner
SoftLogix5800 1784-PCIDS
Local:slot_number_of_scanner
DriveLogix/FlexLogix 1788-DNBO name of the scanner in the I/O configuration of the controller
Linking Device 1788-EN2DN or 1788-CN2DN name of the linking device in the I/O configuration of the controller
If the data is:
Then type is:
input from a device
I output to a device
O status of the network
S type element specific DINT (DWord, 32-bit integer) within the array bit specific bit within an integer
Publication 1794-UM061A-EN-P - July 2006
Page 55
Configure FLEX I/O Digital Modules on a DeviceNet Network
53
To determine the tag name (address) for DeviceNet data: 1. On the report for the network, find the memory address for the input or output data of the device.
2. Find the corresponding tag in the controller-scoped tags of the controller using RSLogix 5000. 3. Find the required data within the controller tag. Use the data map for the device as a reference.
Local:2:I.Data[0] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 data map for Bulletin 160 AC drive
Publication 1794-UM061A-EN-P - July 2006
Page 56
54
Configure FLEX I/O Digital Modules on a DeviceNet Network
Tally Memory Requirements
The 1794-ADN FLEX I/O adapter packs the data of its I/O modules into a contiguous block of input or output bytes. By default, the modules share DINT elements in the scanner. For example, to determine the amount of scanner memory required for your adapter and its I/O modules 1. Add the input bytes of each module + 2 bytes for the adapter. 2. Add the output bytes of each module (0 for the adapter).
Sub Tally Input Size of Device (bytes)
Output Size of Device (bytes)
FLEX I/O adapter - 1794-ADN
2
0 digital output module - 1794-OB16D
2
2 digital input module - 1794-IB16D
2
0
Total
6
2
Device
Main Tally
3. Add the totals to the main tally.
Input Size of Device (bytes)
Input Memory in Scanner (DINTs)
Output Size of Device (bytes)
Output Memory in Scanner (DINTs)
Start/stop Buttons
1
1
1
1
Motor Starter
4
1
4
1
FLEX I/O Adapter w/modules
6
2
2
1
Device
Address
Total
As an option, give each module its own memory location (DINTs) within the scanner. This may make your programming easier. Assign one address for the 1794-ADN and all the modules that you connect to it. DeviceNet network 4 A D N
Publication 1794-UM061A-EN-P - July 2006
I/ I/ I/ O O O
Page 57
Configure FLEX I/O Digital Modules on a DeviceNet Network
If You Configure the Adapter Offline offline Offline configuration Configuration
55
If you configure the FLEX I/O adapter offline, check the I/O sizes of each module. For FLEX I/O, RSNetWorx software uses offline I/O sizes that are different from the default values of the modules.
Online online Configuration configuration
Publication 1794-UM061A-EN-P - July 2006
Page 58
56
Configure FLEX I/O Digital Modules on a DeviceNet Network
Set the Address of the Adapter
To set the address of the FLEX I/O DeviceNet adapter 1794-ADN:
1. To change the address, press the button above or below a number. 2. Connect the adapter to the network. 3. Turn on power to the adapter. 4. Check the Mode/Net STATUS light. If:
Then the:
Green (Flashing or Solid)
address is OK
Solid Red address and/or baud rate conflict with another device
Off device is waiting to set its baud rate When autobaud is on, the device waits until it hears another device on the network. It then sets its baud rate to that of the other device.
For more information on using DeviceNet in Logix5000 control systems, see publication DNET-UM004.
Publication 1794-UM061A-EN-P - July 2006
Page 59
Chapter
6
Configure Your Adapter and Digital Modules on a ControlNet Network
Introduction
This chapter guides you through the steps required to configure your 1794 FLEX I/O ControlNet adapter and associated modules on a ControlNet network using RSNetworx for ControlNet and RSLogix 5000 software. For this information:
See page:
Set Up the Hardware
58
Setting a Requested Packet Interval (RPI)
6-58
Select a Communication Format
6-59
Add Local and Remote ControlNet Modules
65
Add Distributed I/O
66
Download the Program to the Controller
68
Configure the 1794-ACN15 Adapter
69
Schedule I/O Module Connections
70
Access Module Data via the 1794-ACN15 Adapter
75
Change Configuration Data
77
This chapter describes how a controller controls distributed I/O over ControlNet. The controller requires a communication module to connect to the network. Distributed I/O modules require an adapter to connect to the network. In this example, we show you how to control FLEX I/O over ControlNet using RSNetworx for ControlNet and RSLogix 5000. To control distributed I/O over ControlNet, you must: • Add local and remote ControlNet communication modules to your RSLogix 5000 project. • Add distributed I/O to your RSLogix 5000 project. • Schedule the ControlNet network via RSNetWorx for ControlNet. • Use the I/O information in RSLogix 5000 You can also validate connections to distributed I/O when controlling it over ControlNet. This task is particularly useful when one or more of the connections are not working but is not required, especially when all connections appear to work normally.
57
Publication 1794-UM061A-EN-P - July 2006
Page 60
58
Configure Your Adapter and Digital Modules on a ControlNet Network
Set Up the Hardware
In this example, the Logix5000 controller uses a ControlNet communication module in the local chassis to connect to the ControlNet network. The distributed (remote) I/O has a ControlNet adapter to connect it to the ControlNet network. Data Distributed I/O ControlNet adapter with I/O modules
Local Chassis Logix5000 controller with ControlNet communication module
Programming Terminal
43611
Make sure: • all wiring and cabling is properly connected • the communication driver [such as, AB-PCIC(S)-1] is configured for the programming workstation
Setting a Requested Packet Interval (RPI)
When you configure an I/O module, you define the RPI for the module. The RPI specifies the period at which data updates over a connection. For example, an input module sends data to a controller at the RPI that you assign to the module. Configure the RPI in milliseconds. RPIs are only used for modules that produce or consume data. For example a local ControlNet communication module does not require an RPI because it is not a data-producing member of the system; it is used only as a bridge. In Logix5000 controllers, I/O values update at a period that you configure via the I/O configuration folder of the project. The values update asynchronously to the execution of logic. At the specified interval, the controller updates a value independently from the execution of logic. Set the RPI only as fast as needed by the application. The RPI determines the number of packets per second on a connection. Each I/O module has a limit of how many packets it can handle per second. If you exceed this limit, the module cannot open any more connections.
Publication 1794-UM061A-EN-P - July 2006