Thursday, February 23, 2012

Messaging from PLC-5 via Ethernet to ControlLogix

How do I set up messaging from PLC-5 via Ethernet to ControlLogix?

Messaging from PLC-5 via Ethernet to ControlLogix

For successful communication:
  • Check that the PLC-5 in question is of the correct Series and Revision. Refer to Answer link 19325 to determine this.
  • Ensure both the PLC-5 and ControlLogix Ethernet modules are correctly configured on the Ethernet.

PLC-5 MSG Configuration Overview

The ladder below shows a simple MSG instruction. For Ethernet messages, the MSG instruction uses 2 consecutive MG elements. In the case below, these are MG9:0 and MG9:1.
NOTE:  If an integer file is used in place of the MG file, the message will be directed to the 1A port only Classis PLC5 issue. The Port Number will not be visible.  RGW.
Image

Configuring PLC-5 MSG

  1. Configure the message by clicking on the Setup Screen text in the instruction. The following dialog box is displayed.

    Image
  2. As fields in this dialog are filled in. the fields that are left change, depending on what has been selected. Work through the dialog from the top to the bottom in field order. When complete the dialog should match the one above.
  3. This message is configured to perform a PLC-5 Typed Read of 10 integers words and place them in N7:0 onwards. This will ultimately be from a ControlLogix processor. The port number is changed to specify the Ethernet port of the processor. In this case 3A is the 1785-ENET module, for an Ethernet processor this will be 2.
  4. In the Target Device section the data will be read from N7:0. For communications to a ControlLogix processor it is important that MultiHop is set to Yes. When this value is entered, the MultiHop tab will appear. Select the MultiHop tab.

    Image

    MultiHop allows you to configure where the message has to go once it reaches the ControlLogix Ethernet module. We want to read from the processor. The path from the Ethernet module to the processor is defined here.
  5. The first line of the configuration defines the IP address for the ControlLogix Ethernet module. To get a second line press the Insert key on the keyboard. The value that has to be entered in this second row is the slot in the ControlLogix chassis that the processor resides. In this case it's slot 0.

ControlLogix Configuration Overview

We have created an array of ten elements of type INT called "technote_data" in the controller scope of the ControlLogix project.  The PLC-5 will  read from this array.  Notice that the array has to be of type INT, otherwise the message instruction will fail and display an "illegal target file type" error message.

Configuring ControlLogix 

  1. From the main menu of RSLogix 5000 select Logic -> Map PLC/SLC messages.  In order to map all messages targeted to addresses in file 7 (as in N7:0) to our newly created array of INT's, as shown below.

     
This completes both of the required steps. For additional details on mapping see Technote 7355, titled Setting up PLC/SLC Mapping in Logix controllers.

Source: http://rockwellautomation.custhelp.com/app/answers/detail/a_id/41947

4 comments:

  1. i want to read PLC-5/40c in ML1400 through ethernet ip bridge module 1756-ENBT/a. How to setup the msg instruction

    ReplyDelete
  2. Looking for PLC5 message config to local port on CLX L8x series processor

    ReplyDelete
  3. I want to cracking software 216 2bd23 0xb8 please tell me your best price

    ReplyDelete
  4. Industrial Automation Equipment . PLC, HMI, Inverter, Servo Drive, Microcontroller Product

    ReplyDelete