SOP Converting PLC Communications to Ethernet
From PTAGISWiki
Standard Operating Procedure
| |
Subject:
| SOP Converting PLC Communications to Ethernet
|
Author:
| Troy Humphrey
|
Approved by:
| UNAPPROVED
|
Contents
|
Objective
The objective of the SOP is to give the user step by step guidelines on what is required when a Ethernet ready PLC (SLC 5/05) is used to replace a SLC 5/03.
Scope
The scope of this procedure is focused on the communications between Allen Bradley devices. Communications between the platform (M4 or Multimon) and the PLC is briefly touched on but is not the focus of this SOP. For help with those types of communications please refer to the following SOP: SOP PLC Message Instructions
Responsibilities
The PSCMF Kennewick staff is responsible for converting communications to Ethernet when M4 is installed at a site.
Procedure
Modify the current RSLogix500 file
- Open the RSLogix500 file for the site you are converting communications for.
- Save the file under a different name to preserve the original file.
- This will also save the same processor name which is critical for communications. Typically the processor name is SGATE.
Convert the Processor Type
- In the project window(left window) double click on Controller Properties.
- Change the Processor Type to 1747-L551B/C 5/05 CPU - 16K Mem. 0S501 Series C.
- Click Apply.
- The program will ask you to confirm the processor type change. Make sure the 're size the data table' check box is checked.
- You will receive a rung error.(A information window will pop up on the bottom of the screen)
- Click OK to close the Controller Properties window and navigate to the rung error via the information window at the bottom of the screen.
- You should now be at the Message Instruction rung. If not find the Message Instruction rung.
- Drop a new Message Instruction on the rung and use the following graphics to set up the Message Instruction.
- You will have to change the Read/Write parameter from Read to Write.
- You will have to change the Target Device from 500CPU to 485CIF.
- You will have to enter the same address for the Control Block as that of the old Message Instruction.
- Double click on the Setup Screen at the bottom of the Message Instruction.
- You will have to enter in the Data Table Address (Currently N7:1).
- You will have to enter in the Size in Elements (Currently 6).
- You will have to change the Channel from 0 to 1.
- Currently the Message Timeout is unknown.
- Currently the Data Table Offset is unknown.
- You will have to enter in the IP address of the M4 machine that you want the messages sent to.
- Delete the old message instruction and verify the program.
Setup the Channel Configuration
Setting up the Channel Configuration is a two part process. First you have to ensure that you have a way to initially communicate with the 5/05. This is typically done via DF1 on CH0.
Channel Configuration Chan. 0 - System Tab
- Channel 0 is 9 pin channel
- From the project window on the left hand side double click on Channel Configurations under the Controller folder.
- Click on the Chan. 0 - System tab
- Ensure that the the parameters match the following graphic.
- You can adjust the 'Max Node Address:' up to 31 but the lower the number the less nodes the PLC has to poll.
Channel Configuration Chan. O - System Tab DF1 Communications
NOTE: This will be changed to DH485 later in this SOP. It must remain DF1 Full Duplex (RS232) until you are able to switch to a Ethernet driver for communications.
Channel Configurations Chan. 1 - System Tab
The following graphic shows the Chan. 1 - System Tab prior to configuration.
- You will have to enter in the site allocated IP address of the PLC.
- You will have to enter in the site Subnet Mask.
- You will have to enter in the site Gateway Address.
- You will have to un-check the Bootp Enable box.
- Click Apply then OK.
Download the Program to a 5/05
- Install a SLC 5/05 into a lab chassis configured exactly the same way as the chassis that is at the site you are configuring the 5/05 for.
- Turn power on to the chassis.
- Hook up a RS232 cable from the PC to CH0.
- Hook up a Ethernet cable from your PC to CH1.
- If you use a hub a normal Ethernet cable will work. If you go directly from the Ethernet jack on your PC to the CH1 of the PLC you will need a cross over Ethernet cable.
- Ensure RSLinx has a configured DF1 driver.
- If not create one.
- Ensure RSLinx sees the 5/05 on the DF1 driver.
- Double click on Controller Properties under the Controller folder in the left hand Project window.
- Click on the Controller Communications Tab.
- Under the Driver parameter, select DF1.
- Click OK
- Download the program.
- You will be warned that the communications is changing and will be asked to click Apply if you want to continue. Click Apply.
- You may receive a message stating A change was detected with the SNMP, HTTP, or Auto Negotiate configurations. In order for the change to take effect, a power cycle is required.
- Click OK.
- Cycle the power on the SLC 5/05.
Switch the Communication Driver
- Ensure that you are off line.
- Change the IP address of the PC to one that would work at the site you are configuring the SLC 5/05 for.
- Open DOS Command prompt and make sure you can ping the SLC 5/05.
- If you cannot ping the PLC RSLinx will not establish communications.
- Resolve any communications problems prior to proceeding.
- Open RSLinx.
- Right click on the AB_ETH-1 driver (or whatever the name of your Ethernet driver is) and select Configure Driver.
- Add the IP address of the SLC 5/05 to the list of IP address.
- Click on Add New or Apply, then OK.
- Ensure that the Ethernet driver in RSLinx sees the SLC 5/05 and that it has the same processor name as the 5/03 it is replacing had.
- From RSLogix500 double click on Controller Properties under the Controller folder in the left hand Project window.
- Click on the Controller Communications Tab.
- Under the Driver parameter, select the AB_ETH-1 driver (or whatever the name of your Ethernet driver is).
- Click apply or OK.
- Go online with processor via Ethernet.
- If you get no response from the processor try the following.
- Click on Comm from the top toolbar.
- Select Sytem Comms... .
- Click on the IP address of the SLC 5/05 under the AB_ETH-1 driver (or whatever the name of your Ethernet driver is).
- Click on Online on the right hand tool bar.
- If you are asked if you want to save changes to the program select Yes.
- If you receive a message stating no matching file found then browse to where you saved the file and select that file.
- Click on Upload Use File.
- Change the program from REMOTE PROG to RUN.
Set up the Channel Configuration General Tab
- From the project window on the left hand side double click on Channel Configuration under the Controller folder.
- The General Tap will appear on top.
- Verify that the Passthru Link ID (dec) parameters match for each channel.
- Typically set to 1 for each channel.
Change the CH0 Configuration
- Channel 0 is 9 pin channel.
- From the project window on the left hand side double click on Channel Configurations under the Controller folder.
- Click on the Chan. 0 - System tab.
- Ensure that the the parameters match the following graphic.
- You can adjust the 'Max Node Address:' up to 31 but the lower the number the less nodes the PLC has to poll.
- Click on Apply.
- You may receive a warning stating Loss of communication on OTHER channel (SH0) WILL occur.
- Select Apply.
- You may receive a pop up window asking if you want to switch the processor to remote PROG mode.
- Select Yes.
- Change back to Run Mode.
Channel Configuration Chan. O - System Tab DH485 Communications
NOTE: It is very important that the processor name of the 5/05 matches the 5/03 that it replaced. The HMIs will not communicate properly is the processor name is wrong.
Install in the field
The following steps assume the reader of this SOP is intending to use CH0 to communicate with the 'legacy' DH485 devices currently installed in the field.
THIS PART OF THE PROCEDURE WILL LIMIT A SITES ABILITY TO DIVERT FISH AND RUN SAMPLES. THIS PROCEDURE SHOULD BE DONE IN COORDINATION WITH THE COE BIOLOGIST AND PREFERABLY DURING THE OFF SEASON.
- Note the Sample Rate on Openings Per Hour.
- Note the Slide Gate times.
- Note the sensor times if the site has slide gate sensors.
- Remove power from the SLC 5/03 in the field.
- Remove the processor and replace with the SLC 5/05 you configured in the lab.
- Remove the AIC card typically installed to the left of the processor/chassis power supply.
- Note the wiring configuration of the DH485 jack and ensure that it matches the data highway drawing.
- Install a AIC+ card and wire 24VDC to it.
- Hook up the DH485 network cables to the AIC+ card.
- Install a crossover RS232 cable between CH0 of the processor and the 9 pin jack on the AIC+ card.
- Install a CAT5 cable between the platform and the PLC.
- Restore power to the chassis.
- Ensure you have Ethernet communications from the platform to the PLC.
Test the DH485 Network
- Enter in the the Sample Rate and Openings Per Hour from the appropriate HMI.
- Enter in the Slide Gate times from the appropriate HMI.
- Enter in the sensor times from the appropriate HMI is the site has slide gate sensors.
- Go online with the processor and ensure that the times you just entered via the HMIs were properly received by the PLC.
- If you have problems establishing communications between the PLC and the HMIs.
- Ensure that the processor name of the SLC 5/05 matches that of the SLC 5/03 that it replaced.
- Cycle power on each HMI.
- Make sure there isn't a NODE # conflict.
- Make sure the data highway connections are solid.
References
Contact PSMFC at (509) 735-2773
| Name | Extension |
|---|---|
| Don Warf | 1 |
| Scott Livingston | 2 |
| Darren Chase | 3 |
| Alan Brower | 4 |
| Troy Humphrey | 5 |




