The text of a manual · part 15 of 22
1747-SDN DeviceNet Scanner Module User Manual: 9 - AutoScan
Pages 103 to 114 of 160, from 1747-SDN DeviceNet Scanner Module User Manual
The original document is the PDF (3.9 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 1747-SDN
Page 103
Chapter
9
AutoScan
Overview
The DeviceNet network AutoScan feature enables a scanner to automatically map a network of slave devices into its scanlist without the use of RSNetWorx for DeviceNet software. This greatly improves the ease of setting up a DeviceNet network, especially networks comprised of simple devices. Basically, when the feature is enabled the 1747-SDN module searches for devices on the network that are not yet mapped. Once a qualifying slave device is found, it is added to the scanner's scanlist and its I/O data is mapped into a predefined location in the scanner's I/O memory table based on the device's node address.
Implementing AutoScan
This feature requires a series C, 1747-SDN module. The steps in this section describe how to set up the feature and how it operates. Notice that explicit messaging is used for some of the steps below. There are several ways that an explicit message can be sent on the DeviceNet network. • A user ladder program using the DEM instruction • External programming/configuration device (catalog number 193-DNCT) • RSNetWorx for DeviceNet software Since the purpose of the feature is to eliminate the use of RSNetWorx software, instructions on how to send an explicit message via the class instance editor in RSNetWorx for DeviceNet software is not covered in this section. For more information on using Explicit Messaging see Chapter 8. First you need to set up the physical network. Make sure all devices are addressed appropriately (no address conflicts) and are communicating at the same communication rate.
103
Publication 1747-UM655B-EN-P - June 2007
Page 104
104
AutoScan
The diagram below shows an example system using the 1747-SDN module.
The node addresses can be commissioned via hardware switches on the device or through other DeviceNet configurators such as the 193-DNCT DeviceNet Configuration terminal. Refer to the DeviceNet Programming Terminal user manual, publication 193-UM009, for more information on how to set up node addresses.
Enabling AutoScan via Ladder Logic To implement AutoScan via ladder logic, use the DeviceNet Explicit Message (DEM) instruction. The DEM instruction requires 1747 operating system series C, FRN 10 or later, and RSLogix 500 software version 7.10 or later. Use the DEM instruction to initiate multiple CIP generic messages to the scanner module. See Chapter 8 for more information on the DEM instruction. 1. Verify that the scanner is in Idle mode (bit 0 in the scanner control output word is 0) and that all slave nodes are connected and communicating on the DeviceNet network. Two DEM instructions are required and one is optional. The default AutoScan setting allocates a 4-byte entry in both the input and output memory maps in the scanner for each slave device detected on the network. If this is adequate for the applications, skip the first DEM instruction.
Publication 1747-UM655B-EN-P - June 2007
Page 105
AutoScan
105
However, for applications where you would like to customize the I/O allocation size, configure a DEM instruction to adjust the 4-byte allocation. 2. Fill in the fields as shown, make sure to match the 1747-SDN module’s Slot and DeviceNet Address to your particular scanner module.
3. On the Send Data tab, enter the I/O allocation size, in bytes (1…32).
Publication 1747-UM655B-EN-P - June 2007
Page 106
106
AutoScan
4. On the DEM instruction setup screen to initiate AutoScan, fill in the fields as follows.
TIP
Make sure to match the 1747-SDN Slot and DeviceNet Address to your particular scanner module. All other fields should appear exactly as shown above.
5. On the Send Data tab, enter a 1 to enable AutoScan.
6. Fill in the DEM instruction Setup dialog to disable AutoScan.
Publication 1747-UM655B-EN-P - June 2007
Page 107
AutoScan
TIP
107
The only difference between the Enable AutoScan and Disable AutoScan DEM instructions is that a 0 is sent to Disable AutoScan.
7. Download the program and then trigger each DEM instruction individually, 8. Verify that the scanner status display has stabilized prior to executing the next DEM instruction.
Publication 1747-UM655B-EN-P - June 2007
Page 108
108
AutoScan
9. Return the scanner to Run mode (bit 0 in the scanner control output word is set to 1) and the scanner status display should be displaying the scanner node address. If the status display is flashing other codes as well, refer Chapter 7 for troubleshooting.
Enabling AutoScan via the DeviceNet Configuration Terminal Follow these steps to enable the AutoScan feature using the DeviceNet configuration terminal (DNCT). 1. Verify that the scanner is in Idle mode (bit 0 in the scanner control output word is 0) and that all slave nodes are connected and communicating on the DeviceNet network. 2. Plug the DNCT terminal into the DeviceNet network. 3. Select 1747-SDN module from the Network Who screen by pressing the E/Enter key. 4. Use the D/Down-arrow key to highlight Scanner, then select it by pressing the E/Enter key.
5. Use the D/Down-arrow key to highlight AutoScan, then select it by pressing the E/Enter key.
Publication 1747-UM655B-EN-P - June 2007
Page 109
AutoScan
109
6. On the Auto Scan Setup screen, change AutoScan from Disable to Enable by pressing either the C/Up-arrow key or the D/Down-arrow key.
7. Press the B/SEL key to scroll down to Mapping. 8. Type in the number of bytes that you want to automap to each DeviceNet node (1…32). The default is 4 bytes. 9. Press the B/SEL key to scroll down to Save. 10. Press the E/Enter key to save your selections. 11. Notice that the 1747-SDN module status indicator flashes red then back to green, while the status display momentarily shows 72. When the AutoScanning is complete, the status display blinks between 65 and the node address of the scanner. 12. On the Auto Scan Setup screen, change AutoScan from Enable to Disable by pressing either the C/Up-arrow key or the D/Down-arrow key. 13. Press the B/SEL key to scroll down to Save. 14. Press the E/Enter key to save your selection. If all the slaves are properly mapped, the scanner status display blinks between 80 and the node address of the scanner. 15. Put the SLC controller into Run mode and verify that the scanner Run bit is set (bit 0 in the scanner control output word is 1). The scanner status should display only the node address of the scanner. If it is flashing other codes as well, refer to the scanner module user manual for troubleshooting. Publication 1747-UM655B-EN-P - June 2007
Page 110
110
AutoScan
How AutoScan Operates AutoScan is active when the feature is enabled and the scanner is in Idle mode. When active, the scanner attempts to connect to each device not enabled in the scanlist. The scanner only checks for devices with node addresses between 0…61, inclusive. The connections to these devices are made on a round robin basis. When a device is found, the scanner gets the Produced and Consumed data sizes from the slave devices's Connection Object instances. If either the Produced and Consumed data sizes are greater than the configured fixed data mapping size (per configured in step 2), then the node is rejected and not entered into the scanlist. For qualifying nodes, the scanner would enter the device into the scanlist and attempt to allocate an I/O connection using one of the following communication format choices (in this particular order).
Format
EPR
COS
250 ms
Poll
75 ms
Strobe
75 ms
Cyclic
500 ms
EXAMPLE
If a photoeye was connected on a network that only supported strobed connections, the scanner does a couple of things. First, it recognizes that a device exists for which memory was available for the node number with the configured allocation size on a network that was not currently mapped. Then, the scanner would attempt to initiate both COS and polled connections first but the strobed connection would be selected as that is the only connection that the photoeye supported.
The input and output data is mapped into the scanner's I/O data table based on the device's node address and the configured fixed mapping size. The formula for calculating the byte offset is: M file Input (Output) [byte] Offset = ((Node Address) x (I/O Allocation Size))
Publication 1747-UM655B-EN-P - June 2007
Page 111
AutoScan
EXAMPLE
111
When using five bytes for each device, the input data for devices are allocated in the 1747-SDN module's input table. Note that M files are used because discrete mapping is not used with the AutoScan feature. In this case node 15 has an offset of 15*5=75 byte, therefore node 15 data is located in the data map at word 75/2 = 37.5 of the M file with the non-integer result the offset starts at the upper byte of the word.
For even I/O allocation sizes, the formula for calculating the Input or Output data offset since there are two bytes in each word is: M file Input (Output) [Word] Offset = ((Node Address) x (I/O Allocation Size / 2)) When using the default fixed mapping size of 4 bytes or 2 words, the input data for devices are allocated in the 1747-SDN module's input table. Note that M files are used because discrete mapping is not used with AutoScan. In this case node 14 has an offset of 14*2=28 word therefore node 14 data is located in the data map at word 28 of the M file.
Publication 1747-UM655B-EN-P - June 2007
Page 112
112
AutoScan
Other Important Information about AutoScan
The factory default setting for AutoScan is disabled for all products. Make sure that input or output data memory size in the scanner is large enough to accommodate the size required based on the number of nodes on the network and the AutoScan I/O allocation size per node. TIP
Nodes 0…61 inclusive are scanned and added to the scanlist if they are not already mapped and size exists. For maximum capacity for slave devices the scanner node address could be configured as node 62; node 63 could also be used but to avoid duplicate node address issues with new devices this is not suggested.
EXAMPLE
If the I/O allocation size per node is configured for 16 bytes and there are 32 slave devices on the network (node addresses 1…32), AutoScan would require 16 bytes x 32 = 512 bytes (256 words) of I/O space in both the scanner's input and output table. Assuming it is an SLC system, the maximum scanner input data table size is 150 words for input and output. The required space exceeds what the 1747-SDN module can support. The user would need to adjust the I/O allocation size or reduce the slave device count on the network to include all of the devices in the scanlist. Devices outside of the scanner's allowable I/O image space will be rejected and will not be included in the scanlist.
Scanlist
Publication 1747-UM655B-EN-P - June 2007
Data Allocation (bytes)
Max Node
Data Allocation (bytes)
Max Node
1
61
17
16
2
61
18
15
3
61
19
15
4
61
20
14
5
59
21
13
6
49
22
12
7
41
23
12
8
36
24
11
9
32
25
11
10
29
26
10
Page 113
AutoScan
113
Scanlist Data Allocation (bytes)
Max Node
Data Allocation (bytes)
Max Node
11
26
27
10
12
24
28
9
13
22
29
9
14
20
30
9
15
19
31
8
16
17
32
8
The AutoScan feature will automatically be disabled in the scanner as soon as a scanner property is modified by RSNetWorx for DeviceNet software. For example, any manual changes to the scanlist using RSNetWorx software will disable the AutoScan feature in the scanner. One new status code has been added to the Node Status list. This code is presented in the Node Status table. Node Status Status Code (decimal)
Description of Status
65
AutoScan Active (Scanner only status)
When the scanner is in Run mode with AutoScan enabled, the scanner display alternates between 65 and the scanner node address.
Publication 1747-UM655B-EN-P - June 2007
Page 114
114
AutoScan
When a scanner is transitioned from Run mode to Idle mode while AutoScan is enabled, it only scans the network for nodes that are not already in the scanlist. However, while in Idle mode, an AutoScan Disable mode to Enable mode transition will cause the scanner to erase the existing scanlist and scan for all nodes on the network. The AutoScan feature enables Auto-address Recovery (AAR) for each of the configured slave devices. The AutoScan feature checks for the Quick Connect setting in each slave device and enables Quick Connect in the scanner if it is enabled in the slave devices. Additionally, AutoScan changes the default setting of InterScan Delay (ISD) from 10 ms to 4 ms. The reason for this is to improve network performance. The smaller value of ISD limits the access that software has for communication on the network, but when using AutoScan software communication should not be a concern.
Publication 1747-UM655B-EN-P - June 2007