Machsupport Forum

Third party software and hardware support forums. => Modbus => Topic started by: johndolecki on November 03, 2017, 07:53:15 PM

Title: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 03, 2017, 07:53:15 PM
I have been trying and I just can't figure it out
Who can I call to help me set this spindle control tru modbus?

I have a automation direct gs2 vfd.
I also have the USB to 485 from automation direct.

I looked at Most of the post on the internet but no just can't get it.

Thanks in advance.
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 03, 2017, 11:46:57 PM
Hi,
you were asking about a serial port:
http://www.machsupport.com/forum/index.php/topic,35855.0.html (http://www.machsupport.com/forum/index.php/topic,35855.0.html)
Did my suggestion work, do you have an active serial port?

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 04, 2017, 06:26:10 PM
Hi,
on page 5.2 of the GS2 user manual:
P 9.00 default 01, this is the slave address, OK as is
P 9.01 default 01 transmission speed is 9600 baud, OK as is just set Modbus transmit to 9600 baud as well
P 9.02 default 00 ASCII, 7 data, no parity, 2 stop. The serial Modbus plugin of Mach3 does not have this combination, suggest 8 data, no parity,2 stop ie P9.02=03
Suggest you manully program the VFD with this parameter. You will also have to program the VFD to accept frequency and run commands from Modbus, but that
is a bit down the track yet.

The remainder of the parameters on this page do not concern us immediately.
On Page 5.3:
P 9.26 frequency command
9.27 Run/Stop value
9.28 Fwd/Rev value

While the alarm and status may prove useful in the future lets ignore them for the time being, they won't prevent us from getting the thing to run.
On page 5.8:
the decimal memory addresses:
P 9.26    42331
P 9.27    42332
P9.28     42333

Thus we have three consecutive input words.
On Function Cfg's/Setup Serial Modbus Control set up per the screen shot attached, I don't really know if I'm correct but it wont hurt to try.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 04, 2017, 06:31:30 PM
Hi,
hopefully should be close to testing the Modbus communication link.
You'll need to read the users manual and program parameter P 9.02 with the value 03 as I alluded to in the last post.

Now with the Modbus Status and Control panel open <Test Modbus> will with any sort of luck produce an affirmative response.
What does it show you?

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 04, 2017, 06:49:15 PM
Hi,
I'm going to assume that the comm link is OK, that may be a bit optimistic, but we will see.

Now we need to program a brain that can output the three control words.
The inputs to the Modbus plugin are Mach3 outputs. I suggest you program Mach so that Output#1 is Run/Stop and Output#2 is Fwd/Rev.
The speed will be one of Machs DROs.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:05:39 PM
When I type m3 my drive faults with a ce02
I don't see that screen
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:14:03 PM
I have a lot of it it just don't work
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:18:45 PM
When I type m3 in mdithe drive faults
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:39:22 PM
Sorry bad info
As soon as I enable modbus  run my drive faults out
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:50:27 PM
Here is the error code ce02 and 3
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:50:50 PM
I'm not understanding these modbuss addresses
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 07:59:29 PM
I'm not understanding these addresses or which is the correct one to enter
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 04, 2017, 08:56:32 PM
These are the GS2 registers
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 12:17:13 AM
Hi,
we'll figure it out. Firstly the Modbus screen is different to that which shows up in 066 version. What version of Mach3 are you running?

Believe it or not the fact that the drive faults out is good, it means that something is getting through, the fault rather tells us it the wrong something but something
is getting there.

I posted the memory addresses of the three relevant GS2 parameters to operate the VFD. they started at 42331 to 42333. In addition each Modbus slave
device has an 'address' as well which rather complicates things. In your case you only have one Modbus slave, your VFD, and the manufacturer has programmed
its slave address as default of 01.

I propose you have three distinct config's, one for each value to be transmitted.

I will look a little more closely and come back to you.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 12:41:36 AM
Hi,
Have you manually programed P 9.02 to 03 as I asked? You will need to use the VFD screen buttons.

Open your PC Device Manager and find the port no. that the RS485 adapter is plugged into.

On the Modbus config screen:
port number: whatever port number you are plugging your 485 adapter into, baud rate=9600, change 8-1-0 to 8-0-2
Cfg #0      <enabled>          CW/CCW      port no. as above              slave address 01     refresh incr 100ms   address 42333      #regs 1    output holding
Cfg #1      <enabled>          Start/stop     port no. as above              slave address 01     refresh incr 100ms   address 42332      #regs 2    output holding
Cfg #3      <enabled>          Freq Cmd     port no. as above              slave address 01     refresh incr 100ms   address 42331      #regs 3    output holding

Try that for starters while I dig up some other stuff.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 12:50:36 AM
Hi,
while you are about programming your P 9.02 parameter to 03  also program P 3.00 to 03 which tells the VFD to use the 485 Modbus input as it frequency
command. Note that the Stop button on the VFD screen/panel still works.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 12:51:48 AM
Hi,
should have pointed out I found P 3.00 on page 4.3 of the users manual.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 12:55:40 AM
Hi,
let me know how you get on with these things, I think now that you should be able to <Test Modbus> for a affirmative response, hope I'm not being
to overconfident but it doesn't hurt to try right?

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 01:15:57 PM
Mach3 version 3.043.066
Yes I'm confident that both the computer port and the drive match
I have Both set to port 4 9600,8,odd,1stop
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 01:22:06 PM
Port
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 01:40:08 PM
What do I put in for starting address l
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 01:53:05 PM
Now if I type m3 in MRI the drive faults
But if I go to the modbus monitor and read the holding registers i
The fault clears and I get this
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 05:56:55 PM
Hi,
from the first pic you uploaded it doesn't look like you've done anything I've suggested.

The port number you must discover for yourself by using Windows Device Manager and finding the port your 485 adapter
is plugged into.

Have you programmed your drive P 9.02 and P 3.00 yet?

If you apply the cfg's the starting address is in each one.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 07:48:54 PM
Yes parmeter 3.0 set to #3
Parameter 9.2 set to 3

Changed port setting in device manager and drive to 8,n,2
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 07:59:47 PM
At 8,2,n I
My 485 adapter doesn't flash any more and I get recive timeouts
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 08:04:36 PM
Sorry changed drive address from 1 to 2
Back to 1 now
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 08:53:53 PM
Hi,
starting to make some progress. Can you post a screen pic of the Modbus setup page.

I think that timeout your experiencing is when the Modbus plugin sends a message it expects an acknowledgement,
if it doesn't get one within  the specified time it faults out.

If you change the comm protocol provided you reprogram P 9.02 to the appropriate setting so the drive knows how
Modbus intends signalling you should be fine. If you are of the opinion that the previuos setting of 8,1,o is better then
by all means change it. Read the manual to find the appropriate number for parameter 9.02.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 09:13:38 PM
So we made a bunch of progress
I read another post saying we don't need the 4 in the address so instead of 42330 is just 233
Also I set up the addresses differently from another post cfg1 is cw/ccwand run  at 2331 using 2 regesters
And cfg 2 is speed at 2330 using 1 register

So now when I do m3,m4and m5 my display on vid changes correctly stop,run,fed and rev
but it say it has no speed reference

And when I read the regester 2331 i see the bits changing
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 05, 2017, 09:21:10 PM
We did it the drive starts and stops with the m3,m4 and m 5 commands in Mdi
frequency /speed is not correct but it's working
The frequency scaling is for another day
Thanks for all you help
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 09:32:25 PM
Hi,
kool, I came across something similar with my Delta VFD where I had to drop the leading digit.
If memory serves I could have used Hex representation without change.

See if you can't  find the frequency resolution. Another thread,another VFD the frequency had a resolution
of 0.01HZ, so 400Hz actual required a numeric input of 40000.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 05, 2017, 10:09:42 PM
Hi,
given that the three registers you need are consecutive you could do the whole lot in one cfg.

My proposal to do it in three cfg's was because I had now idea how to set up a block of six bytes for Modbus
to transmit as three consecutive 16 bit words.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 06, 2017, 07:09:03 PM
I see what you mean about the consecutive registers.

I would also like to read some of the status registers like load.

I will experiment not that I think I understand it.

Thanks again for all your assistance.
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 06, 2017, 08:36:26 PM
Hi,
there is one error register, a VFD output. There is also another registe, Modbus output that resets the fault.
There are also status registers, I wouldn't worry about those to start with but the error and fault clearance would be
handy.

Given that there are only two registers you could happily set it up in the same brain.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 07, 2017, 04:36:25 AM
Hi,
just seen something in the manual that may help with the frequency command. As you know I urged you to program your drive parameter P 3.00
to accept control from the serial comm interface but I should have in addition told you to program P 4.00 to the value 05 to accept frequency
commands from the serial comm interface as well.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 07, 2017, 08:32:34 AM
Yes I knew about that one. I'm interested in the Status addresses now. There are a bunch that show the health of the drive but in particular there  is output current and load which i think i can use to show the load on the spindle motor a feature on most commercial machines. I still have to sort out the RPM scaling to frequency.

% Load h210B
Status location for the amount of load on the AC drive. (Output Current รท Drive Rated Current) x 100.





Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 07, 2017, 01:11:56 PM
Hi,
well you've got the Hex address, just read it. It may be that you just type an H in the address box with the numeric data and the Modbus plugin will read that
or you may have to convert the Hex address to decimal and use the decimal address in the usual way.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 07, 2017, 01:18:18 PM
What you know about tool change and the tool change macros?

Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 07, 2017, 02:35:13 PM
Hi,
not much. I have been using Mach4 for about a year and really have no desire to immerce myself in VB programming,
in fact that was the principle reason for me to migrate to Mach4; so I didn't have to deal with VB and all its bugs and
confusion.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 07, 2017, 10:51:19 PM
Hi,
I must say that I found the Mach3 Mobus plugin quite confusing and still there are details which are still obscure.

I have done a little bit of work with the Mach4 Modbus plugin and while I struggled to start with I found it to be much easier
and complete than the Mach3 plugin. In particular in Mach4 you set up registers in the register plugin with names and
descriptions to make it human readable. The Modbus plugin has the means of concatenating the registers to form a
block.

The registers can be written to and read by Mach4 PLC, in similar manner to Mach3 Brains but they can also be written/read
by macros or any other Lua module within Mach4, very very much more flexible and easier to understand.

Would commend you download Mach4, run the Sim(ulator) plugin and play with the Modbus and Register plugins, light years
ahead of Mach3 IMHO.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 07, 2017, 11:40:36 PM
I planning on a new control I really like the look of these guys

http://www.element-cnc.com/cnc-machines

I like the touch screen aspect the layout and the colors
This may be a good winter project
Although it might be beyond my skill set
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 08, 2017, 02:15:17 AM
Hi,
why? You will spend how many dollars to get a nice looking screenset? A touch screen?  And then be locked in to a manufacturer who will insist that any
addons or customisations must be purchased through them? Look, Ive got some bottom land I want to sell you...cheap as your such a special friend...would
I put you crook?

That screenset looks very much like Mach4 Industrial. With Mach4 you can make the screen anything you want. Touch screen is about the screen and Windows,
my touch screen laptop runs Mach fine. Bigger buttons helps but the touch screen is fine.

Further you can download Mach4 for free and start playing with it, new screen colours or whatever for as long as you want with the Sim(ulator) plugin.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 08, 2017, 02:21:53 AM
Hi,
http://www.machsupport.com/forum/index.php/topic,35288.msg245622.html#new (http://www.machsupport.com/forum/index.php/topic,35288.msg245622.html#new)

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: Tweakie.CNC on November 08, 2017, 03:24:35 AM
I think Craig is going for the 'Mach4 Salesman of the Year' award.  ;D

Tweakie.
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 08, 2017, 09:15:50 AM
What is Mach4 industrial?

Did  you say your using Mach 4 with the ESS ethernet smooth stepper?
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: Tweakie.CNC on November 08, 2017, 09:25:41 AM
What is Mach4 industrial?

Exactly the same as Mach4 Hobby but with greatly expanded customer support. http://www.machsupport.com/software/mach4/

Tweakie.
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 08, 2017, 12:10:18 PM
Hi,
yes, Mach4 and ESS.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 16, 2017, 09:31:42 AM
joeaverage has inspired me to build a new control using mach4 here is the start of it
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 16, 2017, 12:14:31 PM
Hi,
kool. Way cheaper than buying someone elses creation, you'll learn more and derive much much greater satisfaction.

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on November 16, 2017, 12:21:31 PM
I was never going to buy that machine I just think the touch panel control is the way to go
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on November 16, 2017, 12:49:06 PM
Hi,
I don't know much about touch screens. My laptop has one and it works fine for the largest buttons on a Mach screen but doesn't have the resolution for small
buttons.

Do touch screens have different resolutions and how are they measured?

Craig
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: johndolecki on December 19, 2018, 07:39:13 PM
aggggggggggggggggg

i changed computers now my modbus dont work again!
Title: Re: Who can I call to help me setup this automation direct vfd
Post by: joeaverage on December 20, 2018, 02:05:56 AM
Hi,
Mach3's Modbus interface drives me up the wall.......Mach4's Modbus interface is like a breath of fresh air!

Craig