Sei sulla pagina 1di 8

9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation

About Contact 1on1 call License Search...

HOME PLC WPF DOWNLOADS ARCHIVE

Home / PLC / Allen Bradley / Modbus configuration example for an Allen Bradley Micrologix 1400

Popular Recent

Modbus with C#: libraries, c


utilities and examples
July 4, 2012

Modbus con guration example for an Allen Bradley Micrologix 1400 Communication with Siemen
in Allen Bradley, PLC 41 Comments 40,937 Views with C# and S7.Net plc drive
January 7, 2015
The latest PLC Allen Bradley Micrologix 1400 is provided with Modbus TCP and RTU. This is a powerful feature and with this post i
explain how to enable and how to use it. PLC-PC communication with
quick resume about data ex
To configure the Modbus communication you need to know at least the basic information about Modbus protocol. libraries
April 11, 2012

Modbus configuration examp


Quick overview of Modbus protocol an Allen Bradley Micrologix 1
June 19, 2012
Modbus protocol can be used with serial cables (Modbus RTU: RS232 or RS485) or with ethernet cable(Modbus TCP).
Modbus TCP architecture is client server (like for websites, you with the browser are the client that ask information to the Real-time Line charts with W
server, and the server reply). Modbus TCP devices can be both client-server and the protocol is multi-master, so every device can Dynamic Data Display
start the communication. April 3, 2012

Modbus RTU architecture is master slave (master is the client, slave is the server). The only device that can start a
communication is the master and there can be only one master (usually a supervisor) and as many slave as you want. Every slave
has a Node address, so the master can send packet to a single slave. Master does not have the Node address. 1 ON 1 MENTORING

Mesta Automation is a
on Anthropy.co.
The registers On Anthropy, you can
You have 4 types of registers: 1on1 mentoring with
sharing with me.
2 are read-only (for bits and integers)
Click here for more information.
2 are readable and writable (for bits and integers)

Boolean block es. B3:


Read Only registers are called Contacts.
Read/Write registers are called Coils.

Numeric block es. N7:


Read Only registers are called Input Registers.
Read/Write registers are called Holding Registers.

Enabling Modbus TCP:

FIND US ON FACEBOOK

Mesta Automation
267 likes

Like Page

Be the first of your friends to like this

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ RECENT POSTS 1/8


9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation

Important note: once you flag Modbus TCP and save the configuration, you should powerup the PLC again. RECENT POSTS

How to record a video with


WPF and AForge
Enabling Modbus RTU Slave April 19, 2017

To enable Modbus RTU you have to configure channel 2 as Modbus RTU Slave.
HMI with C# and WPF part
Communicating with multipl
and Modbus)
March 26, 2017

HMI with C# and WPF part


Navigation with PRISM
March 6, 2017

How fast is a PLC driver with


February 20, 2017

HMI with C# and WPF part


getting started with MVVM a
communication
February 15, 2017

Block configuration:

RECENT COMMENTS

: Sorry, but where to downlo


Sourceforge-Links are down

: Can we get something like


slider...

mesta: Check this repo, ther


With this configuration i have:
implementation of PushButt
B9: read-only
B10: r/w
N7: read-only Dino: Hello! Thanks for this
N15: r/w article. Could you please sho

Expanded flag: this flag permit to use 4 more N registers contigous to N15 in order to expand the holding registers area.
To enable expanded registers you need to declare N15 N16 N17 N18 N19 and to set all the registers words to 256. mesta: It's correct. There is
approximation on the smalle

Sample code
You can download a sample application from here.
The program has been tested with the Modbus TCP tester that you can find at http://www.codeproject.com/Articles/16260/Modbus-
We use
TCP-class . cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 2/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation

j s f 1 h
READ MORE

PLC-PC communication with C#: a quick Modbus with C#: libraries, code, utilities Resources for Siemens and Allen Bradley
resume about data exchange libraries and examples PLCs: PLC-DEV website

41 COMMENTS

gray
September 18, 2012 at 00:01

Hi Mesta
Thanks for the notes much appreciated.
What version of RSLogix500 are you running? I am running 8.10.00 and noticed that the Modbus selection is not available. I
havent installed a modbus software driver into the PLC, not sure if I have to.
Regards
Gray
Reply

mesta
September 18, 2012 at 21:26

I was running RsLogix 500 version 8.40.00.


Please note that Modbus protocol is available only on Micrologix 1400 Ser. B.
Micrologix 1400 Ser. A doesnt provide Modbus communication.
Reply

shridhar
November 20, 2013 at 07:05

8.3 r later
Reply

ducsi
September 9, 2013 at 12:35

Hello Mesta,
Do you know how many client connections a Micrologix 1400 Ser. B. can handle?
I try to connect to a PLC from a 2nd PC and it does not work.
Reply

mesta
September 9, 2013 at 13:56

It depends if its Modbus TCP or RTU.


For Modbus TCP i connected up to 3 computers time ago, but i never tried with more.
For Modbus RTU it depends if the Micrologis is set as master or slave.
Reply

sarang
September 17, 2013 at 08:24

Hi mesta,
I have Micrologix 1400 Ser B PLC.I have to establish a communication with Modbus TCP & RTU.How to use RSLinx Classic to
configure driver for the same?
Reply

mesta
September 17, 2013 at 16:01

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 3/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation
RsLinx cant communicate in Modbus, it uses the proprietary protocols of RA.
The ethernet port of Micrologix can communicate with 2 or 3 protocols simultaneously, and the simil-Ethernet/IP is
the default, and you can choose what other protocol you want to communicate with, in your case Modbus.
So with RsLinx you set Ethernet Devices (not Ethernet/IP, it will not work) and you can communicate with RsLogix,
while with your applications and other plcs you communicate in Modbus.
Reply

sarang
October 16, 2013 at 10:07

Hi Mesta,
What about Modbus RTU???What I am supposed to select in Rs-Linx while configuring ML1400 Ser B through
Modbus-RTU?I have done channel configuration through RS-Logix 500.But it is unable to establish a
communication link.
Kindly revert back.
Reply

mesta
October 16, 2013 at 12:25

I dont remember if the serial port of Micrologix can talk 2 different protocols. If it does, then you
have to select DF1 in RsLinx. If it can communicate only Modbus RTU, you have to use the other
serial port or connect through the ethernet port.

krishna
September 19, 2013 at 06:00

Hi Mesta,
Iam an newbie in .net,basically from PLC,SCADA domain.
Big fan of ADVHMI, Now can some one share me a project where the real time data from PLC can be logged to sql server.
I want to make a screen for data and another one for reports.
Does someone have done this in advanced hmi.
Thanks
Krishnamoorthy
Reply

Hector Quiroz
October 22, 2013 at 17:37

Hello Mesta:
Im working with web server embed on Micrologix 1400 PLC and RSLogix 8.40.
I monitored directory enabled and N7: 0, (eg)
Using codes <ABDRT-xxx) but only for reading, my question is:
Is there any code with which I can now write to that block (N7: 0)?
Thank you.
Reply

mesta
October 22, 2013 at 19:11

I have no experience of working with embedded webserver of Micrologix 1400. In the projects based on ML-1400 was
using Ethernet/IP, OPC client or Modbus TCP protocols; with all of them i was using C# or ANSI-C compilers.
Reply

shridhar
November 20, 2013 at 07:11

HI mesta
do you have a sample rslogix500 plc program for modbus TCP/IP communication pls send me on
shridharhanamannavar@gmail.com
Reply

mesta
November 20, 2013 at 10:56

Actually i dont have a working sample, but you can test that if your program works by using the Modbus client that
you can find on http://www.plcsimulator.org/
Reply

Rohan
We use August
cookies18,
to2014
ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok
at 09:09

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 4/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation

Have you got solution for your above said question? i am working on the sameif you have any details please share
with me also.
Thankx
Reply

mesta
August 26, 2014 at 10:56

Actually I dont have the hardware needed to make tests, so i cant make a program and assure you 100% it
works. At the time that i wrote the article, i was working on a project where the ML1400 was connected via
Modbus TCP with other PLCs and it was working.
Reply

Rohan
August 18, 2014 at 09:10

My mail address is rohan_984@yahoo.com


Reply

padmaraj
April 25, 2014 at 02:23

I make. All the configuration as you said but there is connection timeout by a network this message is coming out
Reply

padmaraj
April 25, 2014 at 02:26

Is this possible the Chanel 0 make mod bus RTU and Chanel 1 make mod bus TCP in same plc
Reply

Anonymous
April 30, 2014 at 16:52

Mesta, same question as pdmaraj: is it possible to use both Channel 0 (Modbus RTU) and Channel 1 (Modbus TCP) at the
same time? My goal is to read/write data on both channels as I do have a RS485 network and the PLC communicates with the
scada using modbus TCP THANKS!
Reply

mesta
May 2, 2014 at 13:22

According to RsLogix, it seems that you can use Modbus RTU on channel 0. At least in my version you can set
Modbus on the protocol instead of DF1.
Reply

Phill McKie
May 20, 2014 at 11:28

Hi, do you have any examples showing the use of Modbus RTU Master? I have an A series 1400 and Im trying to configure a
RTU master
Reply

Anonymous
February 11, 2015 at 10:33

hi i want to take Delta DTA4848 Temperature Controller Data on Allen Brdley ML1400 or ML1100 PLC..Any Body can please
tell me the full procedure
Reply

mesta
February 14, 2015 at 11:47

You have to set up messages. Google for micrologix messaging modbus, there are plenty of examples.
Reply

Joe
WeApril
use 3, 2015 at 19:19
cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 5/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation
While using a MicroLogix 1400 as a serial Modbus RTU slave I am not able to find the location of the discrete inputs
(contacts). They are not showing up in the 10001-19999 range as documentation suggested. Do you have any ideas? Thanks.
Reply

mesta
April 7, 2015 at 07:55

Did you try to check the address from 0000 to 9999? Because usually the first number is the function identifier, and 1
means contact address area.
There are different functions for each address area (1-2-3-4-etc).
Reply

Singh
April 26, 2015 at 10:09

DEAR ALL,
i am facing problem to access data of masibus temperature scanner through modbus TCP/IP on ML1400. If any one of you
have sample application of ML1400 communication with any device on modbus TCP/IP please send me at
chauhan.singhraj@gmail.com
Reply

kristopher
May 8, 2015 at 20:24

Please help me!!!


how to set up the Ml 1400 rev. b by modbus TCP like a client?
Reply

mesta
May 11, 2015 at 19:22

If ML1400 has to read from a Modbus server, you can do it with messages. It shouldnt be difficult, just run a search
on google.
Reply

Anonymous
January 18, 2016 at 23:01

hi
i want to communicate Micrologix 1400 to compact Logix on prosoft wireless is it possible
Reply

Anonymous
February 25, 2016 at 22:56

yep just use the MSG instruction.


Reply

yasssine
May 25, 2016 at 14:54

hi Mesta .
My goal is to read/write data , i have a Modem network and the PLC communicates with the scada using modbus TCP
ethernet
My PLC micro 850the rockwell .
Reply

vijay
January 16, 2017 at 10:28

how to connect micrologix 1400 with vegacontrol input/output modules via modbus?
Reply

Anonymous
March 1, 2017 at 20:26

Hi Mesta,
I wont help
I am using 1400 series B
And on that I am doing barcode scanner preject
South how can I configure barcode scanner to plc using RS232 cable
Plz send me information about that..
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 6/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation
Email
rohan.tamboli07@gmail.com
Reply

rama
April 12, 2017 at 08:03

i want to connect ML1200 to scada software using modbus address. how can i do it?
Reply

mesta
April 12, 2017 at 22:21

Manuals from Allen Bradley are really good.


http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1762-rm001_-en-p.pdf
Reply

Anonymous
May 4, 2017 at 07:08

HI,
I Have a ML1200 series C PLC. can i configure modbus communication for this? If yes then How?
Reply

Anonymous
May 6, 2017 at 09:05

i want connect ml1200 with modbus communication


Reply

mesta
May 7, 2017 at 22:08

http://vdt-automation.de/docs/ml1500_modbus.pdf
Reply

Anonymous
June 4, 2017 at 07:28

i have use this pdf but i cant read values from plc to modscan 32
Reply

Lev Shlomo
September 14, 2017 at 17:39

I have a ML1400 Class B. I have data on it I can see the data on the WEB I try to read the data. I used for a test code from Ni
and others too. In all cases I can connect to the PLC. But always get an error of wrong address. How I can know the data
address for N38:45 Etc. I need the starting address. I can provide a screen shot from Both the Web and from the program I
tried. Can anyone help please ?
Reply

LEAVE A REPLY

Enter your comment here...

MOST POPULAR TAGS FOLLOW MESTA AUTOMATION

Modbus with C#: libraries, code,


utilities and examples Allen Bradley C# Collections computer vision
July 4, 2012 debugging dependency injection Fonts git HMI
image processing installer Localization Modbus SUBSCRIBE TO BLOG VIA EMAIL
Communication with Siemens S7 Plc
navigation OPC OPC test PLC PLC drivers
with C# and S7.Net plc driver Enter your email address to subscribe to this b
January 7, 2015 PLC programming PLC Training SCADA receive notifications of new posts by email.
Siemens simulation simulators source code
Join 61 other subscribers
PLC-PC communication with C#: a
quick resume about data exchange management threading WPF WPF chart WPF
libraries Controls WPF Gauge WPF Touch controls Email Address
April 11, 2012
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 7/8
9/30/2017 Modbus configuration example for an Allen Bradley Micrologix 1400 Mesta Automation

Modbus configuration example for Subscribe


an Allen Bradley Micrologix 1400
June 19, 2012

Copyright 2012 - 2017 Mesta Automation, All Rights Reserved

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/modbus-configuration-example-for-an-allen-bradley-micrologix-1400/ 8/8

Potrebbero piacerti anche