8.2 RSLOGIX TUTORIAL

 

• Software packages needed,

RSLogix 5000

RSLinx Classic

SoftLogix 5800 - We will be using a PC as our main PLC

RSNetworks EthernetIP

 

• Goofy application notes,

- network communication may be hindered by Windows firewall

- the soft plc and networking is very sensitive to computer timing, shut down programs not needed.

 

8.2.1 Setup the Physical Hardware

 

1. (If not already done) Set up the rack as shown below. The cards are designed to be installed from left to right.

 

2. Refer to the manuals for the hardware on the Allen Bradley web site. Note that the installation guides only provide mechanical and wiring information. The Users Manuals will be useful when programming.

 

3. (If not already done) Wire the rack as shown below. When done have the wiring checked by an instructor.

 

4. Plug in the rack and check for a steady green ‘module status’ light. This will indicate that the module is generally operating correctly. Check the lights on the hub for correct operation.

 

5. If not already operating, start the computer. If the computer was already running you may need to restart the network connection. Use a web browser to verify the network connection.

 

6. Set up the hub for the following settings,

- DHCP connection for the outside network

- DHCP server for the internal network starting at 192.168.1.10

- find the MAC ID on the AENT module and give it the static IP address 192.168.1.2.

- find the MAC ID for the virtual machine (probably XX.XX.XX.XX) and give it the statis IP address 192.168.1.1.

- Others ????? depends on the hub

 

 

 

8.2.2 Setup the Virtual Hardware

 

1. (If a virtual machine is being used start it now). The SoftLogix rack monitor should be running, If not, you may start it by clicking on the icon on the task bar that looks like XXXXXXXX. This program sets up a virtual PLC rack. Slot 0 will probably contain RSLinx, this will handle communication between all of the PLC programming software. If there are cards in any other slots remove them.

 

2. Right-click on slot 2 and select ‘Create’. Choose “Softlogix EthernetIP XXXX” then ‘OK’. This will add a bridge between the software based PLC (not created yet) and the networked I/O. add the following settings and use ‘next’ and ‘finish’ as needed.

IP Address: 192.168.1.2 (note: this address will be needed again later)

 

3. Right-click on slot 1 and select “Softlogix 5860-L60” then OK. This will create the software based PLC processor.

 

4. Notice that there are status lights to track the condition of the processor and network cards. These will become very useful when diagnosing problems later.

 

4. When the Softlogix processor is ‘inserted’ RSLinx will start, if not already running. Use the RS-Who function to check and see what drivers are loaded. If “AB_VBP-1” or “ETH-XXX” Does not exist, add it using “Configure Drivers”.

 

 

8.2.3 Checking the Hardware With RSNetworx

 

1. Run “RSNetworx for Ethernet/IP”. This program will identify and browse network components.

 

2. Select “File” then “Ethernet/IP”.

 

3. “Network”, “Upload from Network”. Select “Ethernet/IP” in the RSLinx window when it pops up. Save the network as “Ethernet.enet”

 

4. Do the same for the “5860 Ethernet IP Processor”.

 

5. use browse to identify devices

 

 

 

3. To scan for device level issues use “Network” then “Online”

 

8.2.4 Creating Your First Program

 

1. Run “RSLogix 5000 Enterprise Series”. Create a new project using “File” then “New”. This will bring up a “New Controller” window. Enter the following settings then select ‘OK’.

Type: “1789-L60 SoftLogix 5860 Controller”

Revision: 13

Name: “tutorial”

 

2. A new set of project windows is created. On the left side are general settings, including tags.

 

3. First we will add some I/O. Near the bottom left is a tab labelled “I/O Configuration”. Right-click and select “New Module”. Select “Ethernet/IP” then OK. Enter the following settings and use ‘next’ and ‘finish’ as necessary.

IP Address: 192.168.1.2 (needs to match the card entered in the virtual processor before.

Slot: 2

Name: ‘network’

 

4. In the previous step we have indicated that we are using the network, but not what we are talking to. Right-click on the device just created and add a “1794-AENT/A Twisted Pair” adaptor with the following settings.

- Update Time: 100 ms

 

5. Add the four cards to the AENT module with the following settings

Card: 1794-IB8

Slot: 0

Description: dc_input

 

Card: 1794-IA8

Slot: 1

Description: ac_input

 

Card: 1794-OW8

Slot: 2

Description: relay_output

 

Card: 1794-IE4XOE2

Slot: 3

Description: analog

 

6. At this point all of the I/O values are defined. Next we can define our tags (Variable names). To do this click on the XXXXXXX on the upper

 

define A as an input

define X as an output

 

 

7. At long last we are now ready to write our first program. Enter the following ladder logic under the ‘Main Program’ and then download it to the processor.

 

8. Once downloaded, check the processor and verify that the ‘Run’ and ‘IO’ lights are on steadily. This will indicate that the program is running. The lights on the face of the Ethernet IO rack should also be green. (note: red is bad).