Hello Guest it is April 19, 2024, 05:43:58 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - simpson36

311

'****This could also be done in wxLua as well for M4 just use the Lua equivs*****


. . . .   use the Lua equivalents  ???

Basically it seems you are passing UserLED data thru a brain. That's what I do now (sans bit packing). There is no equivalent to that in MACH4 unless I have missed something really obvious.

 

 

312
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 07, 2014, 11:14:02 AM »
I understand Simpson. I have attached a couple of screen shots I hope will help. Hopefully I will get to play with it some more later today.

Brett

This is helpful, thanks. What is mbi1? do you make that up or is it a fixed system var? If you make it up, where is that done? If it is a system var, is there a list of them somewhere?

313
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 07, 2014, 11:07:59 AM »
The M4 modbus uses the newer Modicon table/register convention.  Not the hex addressing that Mach3 used.  There tables in the modbus spec that pertain to functions that operate on them.  Modbus devices usually give the addresses in either hex addresses or the table/register format.  And sometimes they will give both.  Also, sometimes they prefix the addresses a bit differently. 

Some do the T:RRRRR format where T is the modbus table and RRRRR is the base 1 register.
Others do a TRRRR format where an address may look like 40001.  This is really table 4, register 1. 

IMPORTANT:  Addresses are base 0 and registers are base 1.  The M4 modbus uses registers. 

If the device documentation gives the old hex addressing format, convert the hex number to decimal and then add 1 (base 1 remember!).  If the address is given in decimal, simply add 1.

Attached is a document that you may find useful.

Also, here is a good page that explains a lot. http://www.csimn.com/CSI_pages/Modbus101.html

Steve

Thank you. This may explain why my Modbus only sees a constant zero function coming from MACH4. It should be relatively simple to make this change in the Modbus code. I'll tinker with that.

I am not asking for Modbus 101. I just need to know basic MACH4 stuff like config the plugin and how to read/write a register.


314
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 07, 2014, 10:58:49 AM »
We are trying to program Mach4 and fix bugs at this time. Doing tech support for modbus is to much of a distraction at this point. Let us get more core issues solved then we can see what we need to do to get your modbus working.

You should start by telling us what you are connecting too for hardware.

Thanks
Brian

You can't train somebody in Modbus on this forum. And that is not the focus. I get that.

However,  I did not ask for tech support on Modbus per se. I have had Modbus working with MACH3 for a couple of years now. I am familiar with Modbus and since Modbus is '100% working' in MACH4 Demo, I am willing to spend some time on MACH4 Modbus and report back my findings.

What I need is just a brief explanation of how Modus is implemented specifically in MACH4. Really I don't think it would take more than 15 minutes for describe what data the config screens are looking for. 'Name'  can be interpreted a million ways.

All I need (I think) are the following answers and I *should* be off and running

1) What data are the config screens looking for? 'Name' of what?

2) How do you read a register in MACH4

3) How do you write a register in MACH4

That's it, I think. MACH3 had brains and they are gone. What replaces them. Scripts I would imagine. Fine, so how do you read and write the registers with a script?  I have the hardware talking to MACH4. I just have no idea how to move the data. These are all MACH4 specific questions.

315
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 06, 2014, 12:52:44 PM »
Hey Simpson,
  I had a spindle controlled by Modbus working a couple of versions back. I had some help though. I hope to get a chance to load the latest soon and can hopefully give a little more information. It worked for a bit but on the next power up I had no spindle control. I am not sure if it was something I did or a bug and I need to investigate a little more before commenting.

Brett

Thanks Brett. Any info you can provide will be appreciated. I can't make any sense out of the config because I have no idea what data it is asking for. It wants a 'name' for example. No idea what it is looking for . . .  ???

Even the most basic stuff would be useful. The developer claims Modbus is 'working 100%' but without some help, I'm dead in the water at this point.

316
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 06, 2014, 12:04:24 PM »

Thanks!  I'll look at that switch.  But if you are using a RS232 port, it doesn't make any difference.  The switch is there to make those RS232 to RS485 converters work... well...  better.  I still am not convinced that any RS232 to RS485 adapters is going to be a real solid solution.  But that is basically what that switch does.  It needs to be fixed.  Just don't let it stop you from using it with a RS232 port.

Steve
Absent documentation, I'm not getting anywhere fast. Is it possible to describe briefly how to get data on and off the Modbus? I saw some mc.********* functions having something to do with MACH Registers, but again, no idea if that it the correct path.

Bumping this to see if I can get a response. I started a new thread with Modbus in the title. Scripts and screens and G-code is easy and fun, but without Modbus working, continuing the MACH4 eval is pointless for me. I can get MACH4 hooked up with Serial and TCP. MACH4 says 'Modbus OK' but there is no Modbus communication and I can't make any sense out of the plug-in config.

317
Mach4 General Discussion / MACH4 - Modbus
« on: May 06, 2014, 11:51:07 AM »
Just wanted to get a thread started with Modbus in the title.

So far, I have not been able to get Modbus working. No help from the developers except to claim that Modbus works 100% and that there is no documentation available.  I asked the developers for a brief explanation of the procedure, but did not gat an answer.

I can get MACH4 to connect with Serial and TPC, but there is no Modbus communication. I have searched the internet and the forum for any clues, conversation, documentation and have found no information at all.

Has anyone gotten Modbus running with MACH4?

 



318
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 04, 2014, 02:37:15 AM »
Thanks!  I'll look at that switch.  But if you are using a RS232 port, it doesn't make any difference.  The switch is there to make those RS232 to RS485 converters work... well...  better.  I still am not convinced that any RS232 to RS485 adapters is going to be a real solid solution.  But that is basically what that switch does.  It needs to be fixed.  Just don't let it stop you from using it with a RS232 port.

Steve

The 'com' port is virtual. Set up by a driver. The physical connection is thru USB. This has been working fine with MACH3 for a long time. In MACH4, I can get a 'Modbus 0 OK' on the diagnostic, but every function shows an 'Illegal Argument Error' so I don't know if There is actual communication there or not.

Absent documentation, I'm not getting anywhere fast. Is it possible to describe briefly how to get data on and off the Modbus? I saw some mc.********* functions having something to do with MACH Registers, but again, no idea if that it the correct path.

I'm on board with converting all of the macros to Lua, and for me, the multi line MIDI alone justifies the $200 price tag of MACH4, but I will need to get the Modbus working because my 4th axis motor controller uses it extensively. I think I read somewhere that Brains are gone and the example Modbus functions imply that bitwise operation is fixed in MACH4. The Modbus plug-in is slick, but individual registers cannot be passed and Brain cant pass floats and so on. Modbus on MACH3 is basically a collection of workarounds, so I am anxious to see the MACH4 implementation. 

319
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 03, 2014, 10:12:58 PM »
Modbus plugin config Serial:

 485 stuck ON

320
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: May 03, 2014, 04:30:18 AM »
G-code EDITOR:

In the search and replace feature, allow multi line replacements for single line finds. Example can be found in Notepad++

A slash and single character represent standard editing control codes like carriage return and newline. ex. '/n' is newline

example: FIND: 'G1 Z0'
              REPLACE: 'G0Z.050 /n G1Z0F1 /n F30'


Each instance of 'G0 Z0' would be replaced by three lines of G-code,