Hello Guest it is May 21, 2019, 03:09:39 PM

Author Topic: Modbus with PLC... unconventional problem  (Read 1197 times)

0 Members and 1 Guest are viewing this topic.

Modbus with PLC... unconventional problem
« on: August 23, 2016, 09:04:45 PM »
Gentlemen, really looking for some advice here regarding modbus from mach 3 to a click plc. In the attached pictures you'll get a pretty good idea whats troubling me. If you start at "capture3" those are my plc's internal modbus addresses correct?? Capture 2 shows where I try to enter it in the Brains it gives me the error not allowing a number so large.... I think I have the rest of the settings right correct? Cature1 one shows everything working just swell in the test modbus. I can control all outputs manually here... I feel as though Im missing something big here, Why does every modbus example I see have the address as 1, or 2, (small numbers) and Im in the 8000's....

Any advice greatly appreciated....

Background...
 
Im doing a very large retrofit on a hobby machine in my garage... Its a Morbidelli Author 600K that I picked up for a steal of a price. Will be using Leadshine Easy Servos... starting with a 3.5kw spindle.... eventually switching to the atc when the money is there for a spindle. Moving 6300lbs 8'wide 16 long beast into a 24x24 shop sure got some looks from the neighbours and some hefty eye rolls from the wife. 
Re: Modbus with PLC... unconventional problem
« Reply #1 on: August 24, 2016, 07:06:14 PM »
Hi,

Have a look at this article I wrote. If it does not sort you out let me know.

http://www.homanndesigns.com/pdfs/Using_Modbus_with_Mach3.pdf

Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
Re: Modbus with PLC... unconventional problem
« Reply #2 on: August 24, 2016, 07:10:11 PM »
Basically IIRC, the Address is an offset from the start of the CFG#0 buffer. So, address 0(offset) is actually 8193 as cfg#0 starts at address 8193
Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
Re: Modbus with PLC... unconventional problem
« Reply #3 on: August 24, 2016, 11:10:35 PM »
Thanks for link Pete, I did read over the article earlier in the day before posting... So with my starting address in the Config "CFG#0" I have 8193...  meaning in brains I should have address "0" and CFG# "0" correct? The reason address is "0" in brains is cause I dont want to offset he 8193? I tried this and I couldnt get it flip on the output on PLC...

Other thought is should I have my initial address in Configuration at 8192........... Brains address 1 and CFG 0?

Thanks for you help... really stuck on this one

Mark,
« Last Edit: August 24, 2016, 11:16:08 PM by morbidelliguy »