03 - DNET Lab

Download as pdf or txt
Download as pdf or txt
You are on page 1of 31

DeviceNet

Lab13: Using the DeviceNet Tag


Generator Tool

The tag generator tool makes getting data from your field device into your controller in a
usable format as easy as 1-2-3-4-5.
Some customers disliked having to manually decode the inputs from the DeviceNet
scanner into usable tags in the controller. To address this issue an RSLogix 5000
DeviceNet Tag Generator Tool has been developed. The tool is included with
RSNetWorxs >7.0. There is an optional installation of the tool from the RSNetWorx
installation window.

Once installed, it shows up in RSLogix 5000 under “Tools”. There is a 5-step process
which allows you to manually synchronize your RSLogix project with the correct scanner
and DeviceNet configuration. In step 5 the tool automatically defines structures, tags,
UTD’s and the associated logic and places this all in your RSLogix 5000 project!

There is one more new DeviceNet development we will explore; OSCAR. The Online
Scanlist Change At Runtime was added to the 1756-DNB firmware 7.0. You can now
add devices to the DNB scanlist without having to take it out of run mode!

Key Topics Covered in this LAB:


• Using the DeviceNet Tag Generator Tool to automatically generate tags and logic
to support the scanlist of a 1756_DNB.
• Adding devices to a 1756_DNB while it is in RUN mode.

Hardware Requirements:
• ControlLogix L63 controller
• 1756-EN2T Ethernet module
• 1756-DNB DeviceNet module (firmware Rev 7.0 or greater)
• DeviceNet network.
• Right-Sight photoeye.
• 800E Pushbutton Station

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
1
Software Requirements:
• RSLogix5000 v12 or later
• RSNetWorx for DeviceNet v7.0 or greater
• RSLinx

Lab time: About 60 minutes

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
2
1. Open RSLogix by double-clicking on the icon.

2. Select File > New to create a new project.

3. Configure the new controller as shown below.

(Note: Select correct revision and slot for your controller).

4. Select OK to accept the new configuration.

5. Add the DNB module to the I/O Configuration folder by right clicking on the I/O
Configuration folder and selecting New Module.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
3
6. A Select Module window will open. Click on the in front of Communications
to see all communications modules.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
4
7. Scroll down to find the 1756-DNB module. Select it and click OK.

8. A Select Major Revision window opens. Click OK to accept the default revision.

Note: Must be revision 7 or greater

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
5
9. A New Module window will open. Configure the module as shown below with
correct slot and revision information. Click OK.

10. A Module Properties window will open. Click OK to accept the default settings.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
6
11. The DeviceNet Scanner will now appear in the I/O Configuration folder. Double
click on the Controller Tags folder to open the tag window. Notice that there are
now input, output and status tags associated with the scanner.

12. Also note that Module_Defined data types were created for the DNB.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
7
________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
8
________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
9
13. Expand the MainProgram folder by clicking on the “+” sign. Notice that there is
only one task; MainRoutine.

14. Examine the Data Types folder. Notice that there are no User-Defined data types
at this time.

15. Select File > Save and then minimize the RSLogix window.

We have set up the RSLogix project for the DeviceNet Scanner; we next have to setup
the scanlist in the DNB.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
10
16. Double click on the RSNetWorx for DeviceNet icon.

17. The RSNetWorx for DeviceNet window will open. Select File > New, and OK
for a new file.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
11
18. Select Online from the toolbar ( ) and browse by drilling down through
AB_ETHIP-1 to YOUR DeviceNet network. Click OK.

19. A notice window will open regarding upload/download of information. Select


OK to proceed.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
12
20. All devices discovered on the DeviceNet network will be displayed. Right click
on the 1756-DNB icon and select Properties.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
13
21. A 1756-DNB window will open. Click on the Scanlist tab in the window.

22. A Scanner Configuration Applet window will open. Select Download to send a
blank scanlist configuration to the scanner.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
14
23. The Scanlist tab will now appear with available devices listed in the left pane and
scanlist devices listed in the right pane. Note your scanlist may contain additional
devices.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
15
24. Select the RightSight device on the left side by clicking on it, and then click on
the insert arrow ( ) to place the RightSight into the scanlist.

25. Click Apply. A window will open confirming that you want to download the
changes to the device, select Yes.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
16
26. After the download is completed you will again be at the scanlist window. Select
the Input tab, observe that the RightSight has been mapped. Select OK to close
the window.

27. Click the Save File icon ( ).

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
17
28. A “Save As” window will open. Change to default name to something unique
and then select Save to accept the default file location.

29. Close the RSNetWorx window. RSNetWorx for DeviceNet must be closed
before using the Tag Generator tool.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
18
30. Re-open the RSLogix 5000 window and from the toolbar select DeviceNet Tag
Generator. Note: You can also go to View > Toolbar and select Custom Tools.

This will display a DeviceNet Tag Generator button.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
19
31. The RSLogix 5000 DeviceNet Tag Generator wizard will open. Select the
RSLogix project containing the DeviceNet scanner for which you want to
generate tags and then click the box ( ) for Step 2: Select Scanner.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
20
32. The Step 2 wizard window will now appear. Select the scanner for which you
want to generate tags and then select the box in front of Step 3.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
21
33. The Step 3 wizard window will now appear. Select the RSNetWorx project
containing the network configuration for the selected scanner (C:\Program
Files\Rockwell Software\RSNetWorxII\Networks). Then select the box for Step
4.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
22
34. The Step 4 wizard window opens. Select the node that corresponds to the scanner
for which you want to generate tags. Select the scanner and the click on the box
for Step 5.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
23
35. The Step 5 wizard window will open. Click on the Generate Tags button
( )

36. An RSLogix 5000 Tag Generator notice window will open which summarizes the
changes that are about to be made to the RSLogix project file. Select Yes to
continue.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
24
37. The results of the tag generation will be summarized in the Results area. You
may now close the wizard.

38. Examine the MainTask folder again. You will now see a new Program named
“DeviceNetInputs”. Expand “DeviceNetInputs” and you will find a MainRoutine
and a DeviceNet_ScannerInputsRoutine.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
25
39. Double click on the DeviceNetInputs MainRoutine to see the JSR rung which was
added.

40. Double click on the DeviceNet_ScannerInputsRoutine to see the logic that was
added to transfer the DeviceNet Input data into structured tags.

41. Examine the Data Types folder. Expand the User-Defined folder and double click
on the automatically created data type.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
26
42. The structure of the newly generated tag is displayed.

43. Double click on the DeviceNetInputs Program tags. You will see the entire
scanner input data.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
27
44. Double click on the Controller tags folder to display the newly formed tags for the
RightSight device.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
28
45. One last step remains before we can download our project. We need to set an
“On” bit for the DNB to run. Add the rung of logic the DeviceNetInputs
MainRoutine as shown below.

46. Select Communication > Who Active from the toolbar and drill down to
YOUR controller. Your EN2T IP address is listed on your monitor and scrolls
across the face of your EN2T.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
29
47. Select Download. Download the project to the controller and put it into Run
mode. Once the controller is in the run mode the DNB should also show “RUN”
on the front display.

48. Double click on the Controller Tags folder and select the monitor tab at the
bottom of the window. Put your hand in front of the RightSight photoeye and
confirm that the sensor output value changes to a “1”.

This completes our lab.

________________________________________________________________________
Logix System Training: DeviceNet Tag Generator Lab
30

You might also like