You are on page 1of 6

MicroLogix 1400 Modbus TCP to

Micro850

This guide will show you how to set a Micro850 as a Modbus TCP Master or Modbus
TCP Slave in order to talk to a ML1400 and pass data

Hardware (Used for this guide):

 Micro850 controller (FRN 4.11 or greater required).


 ML1400 Series B (Only ML1400 units shipping with Series B FRN, shipping since
late 2010, will support Modbus TCP).

Software (Used for this guide):

 Connected Components Workbench (4.00 or greater)


 RSLogix 500 version 8.4 (version 8.3 or greater required)

Reference:
 Getting Started with CIP Client Messaging
http://literature.rockwellautomation.com/idc/groups/literature/documents/qs/2080-
qs002_-en-e.pdf
 KnowledgeBase Article 20543
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/20543
 Micro800 reference Manual
http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/2080-
rm001_-en-e.pdf
In this guide, we will configure the Micro850 as a Modbus TCP Slave so that a ML1400
Modbus TCP Master will MSG to it.

MicroLogix 1400 Modbus TCP Master


We will create a program in RSLogix500 that will write to a Micro850 and read date from
it.

1) Go to the Channel Configuration screen in the ML1400 and set the IP address for the
controller, then check the Modbus TCP Enable option.

2) Open the ladder logic and configure a normally open contact followed by a MSG
instruction. Do the same on a second rung. For this example, the MSG file in rung 0 was
assigned to MG9:0 and the MSG file in Rung 1 was assigned MG9:1. We will use
MG9:0 to write to the Micro850 and MG9:1 to read from the Micro850.
3) Enter the Setup Screen for MSG MG9:0 and configure it as follows:

The main parameters you will need to configure are:


 Channel – The channel port the MSG will be sent out from. Choose 1 (Integral,
Modbus TCP) to send a Modbus TCP MSG from the Ethernet port.
 Modbus Command – The Modbus action we wish to execute. Choose command 16 to
write more than one register to the Micro850
 Data Table Address – This is the starting word that will contain the values we wish to
write to the Micro850
 Size in Elements – Number of Registers or Coils we wish to Read/Write. Choose 2 in
order to write two registers to the Micro850
 MB Data Address (1-65536) – The starting address of the register we wish to write to.
Choose 1 in order to talk to the Micro850 starting at register 40001. If we choose 2 then
we would start writing to registers 40002, and so on.
 Routing Information File (RI) – This is the control word for the MSG. Choose RI10:0
to create a Data File RI10, but keep in mind this file number should be free prior to
creating RI10.
 Ethernet (IP) Address – The IP address of the target device.

4) Enter the Setup Screen for MSG MG9:1 and configure it as follows:

The same parameter’s description from the Write MSG will apply to the Read MSG, for
exception that the Modbus Command is now set to Read Registers, and the Data Table
Address now will hold the data that was read from the Micro850.

5) Verify the project and download it to the ML1400.

6) Open a new project in CCW for the Micro850 controller

7) Go to the Micro850 settings windows and under Internet Protocol assign the IP address of
the Micro850
8) Create 2 new variables (either Global or Local to a program) that are of Type INT.

9) Go to Modbus mapping in the Micro850 settings windows and map the variables that
were just created. We will assign MyTag1 to Modbus register 40001 and MyTag2 to
Modbus register 40002.

***In order to assign a variable in the Modbus Mapping screen, double-click on an empty cell
to bring up the Variable Selector window and choose a variable.***

10) Build, Save, then download the program into the controller and go to Debug Mode.

11) While online with both controllers, energize the contact B3:0/0 in the ML1400 to execute
the write MSG. You should see a value being populated on the MyTag1 and MyTag2
variables of the Micro850
12) Then energize the contact B3:0/1 in the ML1400 to execute the read MSG. You should
see values show up under N12 Data File.

You might also like