TOC PREV NEXT

13.5 TUTORIAL - SOFTPLC AND DEVICENET


Objective: By the end of this tutorial you should be able to do the major steps required to connect a devicenet network and program a SoftPLC to control it. It will end with the connection and programming of a Panelview 550 display.

1. Gather the components below. These will be used to build the Devicenet for the rest of the tutorial. When finding components the labels on the back are a good source of information. The information on the front of the devices is not normally useful.

- A PC with a PCIDS devicenet scanner card and software installed
- Devicenet Flex I/O rack on a din rail including,
24VDC adapter 1794-ADN
Relay output 1794-DWB
24Vdc source input 1794-IV16
24Vdc sink input 1794-IB16
- a Sola 24Vdc power supply with a power cable attached
- a Sola 24Vdc power supply with a power tap (1485T-P2T5-T5) attached
- a devicenet capable photoswitch (42GNP-9000-QD)
- 2 normal photoswitches (42GRP-9000-QD)
- 4 Devicenet cable mini connector to wires (1485R-P3M5-C)
- a light stack with red/amber/green
- a central terminal Devicebox (1485P-P4T5-T5)
- 3 network taps
- a stop pushbutton
- 2 terminator resistors
- thick wire trunk line
- wires for connection
- Panelview 550 touch screen display

2. Wire up the network below (note: we will add more of the components later).



3. Start the "RS Networx for Devicenet" software. When it starts it might show a diagram of previously programmed devices on the network. We need to get a current list of devices on the network. To do this pick "Selection" "Online". This will scan the devices on the network and get their current configurations. After this the diagram on the screen will be current.

4. Next, we want to map the data from each of the Devicenet nodes to a location in the SoftPLC memory. Double click on the PCIDS card on the screen. Click on the "scanlist" tab (you may have to upload parameters). Make sure that all of the devices appear on the scanlist. Use the "Input" and "Output" tabs to map these devices to specific input and output memory. Notice that this is organized in words (16bits). You will want to make a note of these values, because you will use these when programming the PLC. When done select "Apply" and then "OK". Exit the program and save the changes. At this point a file has been set up that tells the SoftPLC what devices are on the Devicenet, and what to do with them.

5. Move the pointer to the bottom right of the screen. You will see a black dot near the time. Click twice on this (Note: when the SoftPLC is running this will be green). A screen entitled "Softlogix 5 Status Monitor" will popup. Click on "Config" and then "Start SoftLogix 5". The SoftPLC should now be running. Click "OK" to dismiss the screens.

6. Start the "RS-Logix SL5 English" software (Note the `SL'). Start a "New Project", the programming window should appear. You should now be ready to tell the SoftPLC that you will be using devicenet. Double click on "Processor Status" and on the pop-up window scroll across and select the "Dnet" tab. For the output file enter "9", for the input file enter "10", for the diagnostic file enter "11". Dismiss the window and look at the memory locations under data files, there should now be I/O words there under N9, N10, N11. The input and output memory set in the RSNetworx program will be put in this memory.

7. Write a simple ladder logic program to read to smart optical sensor and output a value to the relay card. If you need help finding which inputs are which, try running a simple or empty program, and watching the memory.

8. Connect the other photooptical sensors and the light stack to the Flex I/O rack and write a more sophistocated program.

9. Connect the PanelView display, and reconfigure the devicenet network. Use the Panel Builder software to create a visual interface, and then download it to the touchscreen. Write ladder logic that uses it for input and output.

TOC PREV NEXT