Hello Guest it is April 19, 2024, 07:22:48 PM

Author Topic: MACH4 - Modbus  (Read 80763 times)

0 Members and 1 Guest are viewing this topic.

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: MACH4 - Modbus
« Reply #110 on: May 17, 2015, 07:58:26 PM »
Modbus TCP works fine in MACH4.  I have not tried Serial Modbus in MACH4
Re: MACH4 - Modbus
« Reply #111 on: May 17, 2015, 08:10:36 PM »
Cool.  That's good news.
Re: MACH4 - Modbus
« Reply #112 on: May 19, 2015, 11:17:02 PM »
For what it might be worth;

Working with a CLICK PLC  (Serial Modbus).  I just got it working.  Only issue for me was I could not "Enable 485 Mode" in Modbus setup.  I had to open my MACH4 .ini file and edit RS485=1  Then all was good.  See pics if interested.

MACH4v2441

Regards,
-STrack

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: MACH4 - Modbus
« Reply #113 on: May 24, 2015, 09:20:19 PM »
I had to open my MACH4 .ini file and edit RS485=1 

Uber impressive that a user with only 4 posts could figure out how to directly edit the INI file to work around a MACH4 issue. Kudos on that!


I have a question posted earlier which has gone unanswered, so I will add another FWIW here;

On the topic of Bit packing, I have done some research and testing and my findings are that Mach4 unpacking seems reliable and fast and I will be using that feature.

MACH3 on the other hand, I found to be unreliable, restrictive and slow and in that application for both bit packed and coil data.

As a consequence, I have written my own bit-packing routines and will let MACH4 unpack the 'control word' and that task will be performed with a VB script on a normal register for MACH3.

It is known that bit packing was broken in MACH3 for a long time and the unwillingness of anyone to step forward and state that it is currently working in MACH3 is an indication that it is still unreliable even though it *seems* to be working.



 


Re: MACH4 - Modbus
« Reply #114 on: May 24, 2015, 09:57:57 PM »
I've always used bit packing with Mach3, it's been reliable, so I don't know why you say it is broken.

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: MACH4 - Modbus
« Reply #115 on: May 25, 2015, 08:30:30 AM »
I did not say it is broken.  I asked a question . . over week ago . . which was not answered . . . as usual.

In fact I said is *seems* to be working.

In any case, having received no response, I created a solution that renders the whole question moot. Done deal. Movin' on.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: MACH4 - Modbus
« Reply #116 on: May 25, 2015, 08:50:04 AM »
Bit packing does work in Mach4

see the modbus tutorial/example in the tool box, it uses bitpacking to/from the screenset.
« Last Edit: May 25, 2015, 08:54:00 AM by poppabear »
fun times

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: MACH4 - Modbus
« Reply #117 on: May 25, 2015, 11:57:40 AM »
Bit packing does work in Mach4

see the modbus tutorial/example in the tool box, it uses bitpacking to/from the screenset.

From my previous post ; "Mach4 unpacking seems reliable and fast and I will be using that feature."


MACH3 was the question, but that has been resolved (for my application).


Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: MACH4 - Modbus
« Reply #118 on: May 26, 2015, 06:09:09 AM »
Unsubscribed . . . .

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: MACH4 - Modbus
« Reply #119 on: May 26, 2015, 06:23:53 AM »
im