32324_pvp_ml

Upload: eddieipenza

Post on 14-Apr-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 32324_PVP_ML

    1/7

    32324 - PanelView Plus Communications with MicroLogix

    What is the procedure to set up communications between a PanelView Plus and aMicroLogix?

    This document contains a step-by-step guide for setting up a PanelView Plus andMicroLogix application, and includes:

    Example projects for your PanelView Plus and your MicroLogix.

    Summary: instructions on how to setup communications between aPanelView Plus and a MicroLogix.

    Uses a PanelView Plus 1000 and a MicroLogix 1500 LRP.

    How to Communicate between a PanelView Plus and a MicroLogix

    This technote details how to communicate between a PanelView Plus 1000 and aMicroLogix 1500 LRP.

    High Level Steps

    This procedure can be broken down into the following high level steps.

    Set up your hardware

    Set up your MicroLogix

    Set up your PanelView Plus

    Each of these steps is described in a separate topic below.

    Set Up Your Hardware

    This is a recommended configuration of the system, and the one used in thistechnote.

    The parts used in this configuration are:

    2711P-B10C4B2 PanelView Plus 1000

    1764-LRP MicroLogix 1500 LRP PC with one Ethernet and one COMM port

    Crossover Ethernet cable

    2711-NC13 Straight-Through RS-232 Serial Cable*

    1761-CBL-PM02 PC to MicroLogix Cable

    * Please note that a Straight-Through serial cable must be used to communicatewith the COMM port of a PanelView Plus. This is because the PanelView Plus isconsidered a Data Communication Equipment (DCE) device.

  • 7/30/2019 32324_PVP_ML

    2/7

    If you want to connect your PanelView Plus to the 8 pin mini DIN port (channel 0)found on any of the MicroLogix, then you can use the cable 2711-NC21, which is an 8pin mini DIN to 9 pin D-Shell straight-through cable.

    This technote uses a MicroLogix 1500 LRP because the two COMM ports of theMicroLogix means the user can go online to the MicroLogix while it is still connected tothe PanelView Plus.

    For more detailed information on different cabling connections for a MicroLogixand a PanelView Plus, please see technote 18955, titled PanelView, MicroLogix & SLC

    RS232 Cables.

  • 7/30/2019 32324_PVP_ML

    3/7

    Set Up Your MicroLogix

    RSLinx:

    1. Open RSLinx.

    2. Go to the following screen:

    Communications -> Configure Drivers

    3. Stop and delete all of your DF1 drivers.

    4. From the available drivers, select RS232 DF1 devices, "Add New"

    5. Press the Auto-Configure button.

    6. Press OK.

    You now should have a link to your MicroLogix.

    RSLogix 500:

    1. Open RSLogix 500.

    2. Open the .RSS project you wish to use for your MicroLogix.

    3. Go to the following dialog:

    Comms -> Who Active Go Online

    4. Select the MicroLogix you wish to download to.

    5. Download your program.

    6. Go online.

    7. Leaving the MicroLogix in Remote Run Mode, close RSLogix 500.

    8. In RSLinx, go to the following location:

    Communications -> Configure Drivers

    9. Stop the DF1 driver. This allows RSView Studio to communicate with theMicroLogix via its own, built in RSLinx Enterprise.

    Set Up Your PanelView Plus

    PanelView:

    1. The PanelView Plus needs an IP address in the same subnet as the PC.

    To obtain your PC's IP address, go to the following location:

    Start -> Run

    2. Press OK.

    3. Type cmd and press OK.

    4. At the command prompt, type ipconfig and press ENTER.

  • 7/30/2019 32324_PVP_ML

    4/7

    5. Make a note of your IP address and subnet mask.

    6. On your PanelView Plus, go to the main configuration screen.

    7. Go to the following location:

    Terminal Settings -> Networks and Communications -> Network Connections ->

    Network Adaptors -> Built in Ethernet Controller.8. Press the IP Address Button.

    9. You will enter your PC's IP Address that you located in step 5 above,EXCEPT for the last digit.

    If there is any other device on the network, make sure it has a different IP address tothese by changing its final digit to one that is not already in use.

    10. For Subnet Mask, do the same procedure as you did in step 9, usingSubnet Mask you located in step 5.

    11. For the Gateway, leave the default (0.0.0.0)/12. To apply the changes to your IP address and Subnet Mask, reset your

    PanelView Plus.

    RSView Studio:

    Open the RSView ME project you wish to use, or create a new one.

    1. First, set up communications.

    In the Application Explorer, double-click on the following:

    RSLinx Enterprise -> Communication setup.

    2. Select the Create a New Configuration option.

    3. Delete any drivers except the Ethernet driver.

    4. Under the Local Tab, create a Serial DF1 driver by doing the following:

    a. Right-click on the name of your computer.

    b. Select Add Driver.

    5. Select the Comm Port you're using.

    6. Under the Device field, select SLC or MicroLogix.

    7. Select Auto-Configuration.

    8. Press OK.

    9. Verify as follows::

    a. Open the new driver. You should see our MicroLogix Device.

    b. Under the Ethernet driver, you should be able to see the PanelViewPlus.

    If you see both, skip to step 10.c. If not, for either device, do the following:

  • 7/30/2019 32324_PVP_ML

    5/7

    Make sure that RSLinx has still stopped the driver.

    Check the cabling.

    Check that the devices have power.

    Recheck your IP settings.

    10. The Local tab is now configured. That means it has the settings forconnecting the PC to the other devices.

    Now you need to configure the Target tab, which has settings for connecting thePanelView Plus to its devices.

    On the Target tab, right-click on the Computer icon.

    11. Select Add Driver.

    Use the Serial DF1 driver again.

    12. The device is again a SLC or MicroLogix. Use Auto-Configure.13. Unlike the Local tab, on the Target tab, you must add devices yourself.

    Right-click on the DF1 driver.

    14. Select Add device.

    15. The MicroLogix is located under the following:

    PCCC DH485 devices -> SLC DH485 Devices -> 1761-xxxx xA MicroLogix 1500LRP, MicroLogix 1500 LRP

    You can call it whatever you want, but unless you changed the node number of theMicroLogix, the node number will still be 1.

    16. While still in the Communication setup, you must create shortcuts so theprogram knows how to access its variables. To do this, complete the following:

    a. Click the Add button. This adds a shortcut for our application which wecan link to different devices.

    General practice is to give it the same name as you named your processor in RSLogix500.

    b. With the new shortcut selected, in the Target tab, also select theMicroLogix.

    c. To save the link, press the Apply button. Repeat this for the Local tab aswell.

    d. Select your shortcut name and your MicroLogix at the same time.

    e. Click Apply.

    f. Click OK.

    17. In the Application Explorer, right-click on Displays.

    18. Select New.19. For the MicroLogix application above, the addresses the PanelView wants

    to communicate with are:

  • 7/30/2019 32324_PVP_ML

    6/7

    o B9:0/0

    o N7:0

    o N7:1

    o N7:2

    Create the following: Momentary Push Button

    Two Numeric Input Enables

    One Numeric Display

    One Shutdown Button

    Refer to the appropriate topic below for additional information.

    Create a Mementary Push Button

    1. Double-click the Momentary Push Button.

    2. Select the Connections Tab.

    3. Click the ellipse () next to Value.

    4. If PANELTST isn't available:

    a. From the list of Folders , right-click and select Refresh.

    b. From the list select the following:

    PANELTST -> Online -> B9 -> B9:0

    This isn't the exact bit address, so it needs to be edited. Continue to c.

    c. Hit OK.

    d. Double-click on the Tag/Expression info for Value.

    e. To the end of the bit address, add /0, resulting in an address similar to thefollowing example:

    {::[PANELTST]B9:0/0}

    If you also want to implement this feature for the Indicator connection, you can repeatthis procedure.

    5. Using a process similar to that described in step 20 of the previous topic,titled RSView Studio, Add Connections to N7:0 and N7:1 for the two Numeric InputEnables, and a connection to N7:2 for the Numeric Display. To display the Numericvalue on the Numeric Inputs, under the Label tab, select the following:

    insert variable -> numeric -> ellipse () -> N7:0 -> OK

    6. To test your screen, click the Play button. Note that the Shutdown button

    shouldn't do anything in Test mode.7. Save the new display as Main.

  • 7/30/2019 32324_PVP_ML

    7/7

    8. In the Application Explorer, complete the following:

    a. Double-click Startup.

    b. Select Initial Graphic.

    c. From the enabled dropdown list, select Main.

    9. From the Menu Bar, select the following:

    Application -> Create Runtime Application

    Save it as whatever you like.

    10. Hit the Transfer Utility Icon, then do the following:

    a. Select the file you want to download.

    b. From the bottom window, from the Ethernet Driver, select the PanelView.

    c. Hit the Download Button.

    11. On the PanelView, load the application and run it.