Internet PLC Forum

General => General Discussions => Topic started by: John_Parker on November 09, 2013, 10:21:50 AM

Title: Modbus map?
Post by: John_Parker on November 09, 2013, 10:21:50 AM
Can anyone explain how a relay status can be assigned to modbus address?
Thanks
Title: Re:Modbus map?
Post by: EDGAR on July 30, 2014, 04:37:46 AM
Not sure I understand your question? The PLC comes with the data sheet that shows you the Modbus address table and reference of each PLC IO.

Ed
Title: Re:Modbus map?
Post by: williamsj on August 26, 2015, 06:45:58 PM
Hi,

I'm assuming here that you want to connect over the LAN and not RS485.

Firstly you need to connect to the plc you want to write to/read from. The following command will do that:

PRINT #4 "<MBTCPCONNECT 192.168.0.40:502>"

The 192.168.0.40 IP address is the one for the destination plc. The 502 at the end is necessary as it is the port number that is used by MODBUS over tcp/ip

Next, write to a location on the destination plc use the following command:

WRITEMODBUS 4,1,1101,DM[50]

In this instance I am writing to an DM location on the destination PLC from a DM location on the source PLC. How do I know the destination is a DM location? It is the 1000 at the beginning of the 1101 (check chapter 14, pg 10 of the manual). I am actually writing to DM[100] on the destination PLC, you can read the manual to see how the numbers work out.
The 4 at the beginning is the port I'm going out on the source, 4 because I'm using the ethernet socket. The following 1 is the Id of the destination plc, seems redundant but necessary
The DM[50] is the location of the data on the source plc.

Hopefully this makes some sort of sense. It will be very similar for RS485.

cheers,

john

Title: Re: Modbus map?
Post by: BetterBath on December 22, 2022, 02:44:17 AM
Very interesting and difficult) However thank you for the post.
Bathroom (https://www.sitelike.org/similar/stluciebathremodel.com/)Handyman (https://www.sitelike.org/similar/stluciehandyman.com)Roofing (https://www.sitelike.org/similar/pslroofers.com)our site (https://statvoo.com/website/stluciehandyman.com)click here (https://statvoo.com/website/pslroofers.com)junk removal (http://www.iformative.com/product/junk-removal-p2165019.html)click here (http://www.localzz360.com/directory/listingdisplay.aspx?lid=44403)roofer (http://www.localzz360.com/directory/listingdisplay.aspx?lid=44404)handyman (https://www.webwiki.com/stluciehandyman.com)roof (https://www.webwiki.com/pslroofers.com)roof (http://harddirectory.net/Roofing-near-Port-St-Lucie-Fl_216678.html)repair (http://ad-links.org/wwwpslrooferscom_249283.html)roof (http://ask-dir.org/Roofers-Port-St-Lucie_271782.html)Installation (https://reddit-directory.com/Roofing-Port-Saint-Lucie-Fl_541759.html)metal (http://toptendir.net/Click-here_288178.html)roofing (http://jet-links.com/Roofing_279415.html)roof (https://poordirectory.com/Roofing-Port-St-Lucie_354235.html)renovation (https://craigslistdirectory.net/https://pslrooferscom_307355.html)in Port (https://bestbuydir.com/roofing-companies-port-saint-lucie-fl_314099.html)St Lucie (https://bedirectory.com/Our-website_287984.html)Florida (https://facebook-list.com/Roofing-Port-Saint-Lucie-Fl_308309.html)bathroom (http://adbritedirectory.com/bathroom-remodel-port-st-lucie-fl_338084.html)remodel (http://classdirectory.org/details.php?id=223712)