Machsupport Forum

Third party software and hardware support forums. => Modbus => Topic started by: zigmart on October 25, 2010, 08:18:02 PM

Title: Hitachi X200
Post by: zigmart on October 25, 2010, 08:18:02 PM
Has anyone setup a Hitachi X200 for modbus control.  If so any chance of posting the setup?
Title: Re: Hitachi X200
Post by: Peter Homann on October 25, 2010, 09:28:28 PM
Hi,

I'm going to take this task on, and have a go at interfacing to it on the weekend. I'm hoping it will be relatively straight forward. (famous last words)

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: zigmart on October 26, 2010, 01:48:03 AM
Thanks, I look forward to your results  :)
Title: Re: Hitachi X200
Post by: zigmart on October 28, 2010, 07:24:29 PM
I know that Peter said he was going to attempt to tackle this, but I figure I should also at least try to figure it out.

So far I have figured out how to make it run and change speeds on the modbus test screen, but that is as far as I have gotten.  Seems I am not as smart as I previously believed ???

I have 31 coils of which as far as I can tell only 2 are important.  Coil 1 is the toggle for Stop/Run coil 2 is for FWD/REV (which I don't really care if I get under Mach control)
Register 2 is for setting the HZ

So I have that handy info, but I have no idea really what to do with it  :(

What do I put here:
(http://www.ziggiesmusic.com/modbus.jpg)

Then once that is done I still have to play with the spindle settings I would imagine.  It is a real shame that the modbus video covers the old interface not this one.
(http://www.ziggiesmusic.com/spindle1.jpg)
(http://www.ziggiesmusic.com/spindle2.jpg)

Title: Re: Hitachi X200
Post by: Peter Homann on October 28, 2010, 08:16:08 PM
Hi,

OK, I haven't done it yet. but this is how to go about it.

I'm using Appendix B of the manual Modbus Network Communications

First of all you need to set the OPE/485 switch S7  on the VFD to  the 485 position. THis tells the VFD that you are controlling it by Modbus


Once you have done that, you need to test that the com port and RS485 is working correctly. To do that, go into the "Test Modbus" page. You get there from the button on the top right hand corner of the Modbus config page.



Set up the port and press the Open port button. If that works, then you can try and read some data. I'd suggest you try and read the inverter status register, register 03

So, set up the data as shown in the picture. Then press read. hopefully, you will see some data in the list on the right and the status will show no error.




The slider bar, can be moved to the right to have the data continuously read.

If you get an error displayed you will need to sort that out before going further.

Let me know how you go.

Cheers,

Peter





Title: Re: Hitachi X200
Post by: zigmart on October 28, 2010, 10:10:14 PM
Peter,

    I set it up as you said and it worked well for the most part.  I say for the most part because some CRC errors did appear.

I can also start and stop the motor, and set the inverter frequency from the test screen.
Title: Re: Hitachi X200
Post by: Peter Homann on October 28, 2010, 10:29:08 PM
Ok, good.

I'd also try communicating at 19200.

What you now need to do is set up a number of modbus comms configurations.

setup a cfg say #1,  to write two coils starting at address 0001h

This will allow you to start and stop the spindle in both forward and reverse



setup another cfg, say #2 to write the holding register 0002H
This will allow you to set the inverter frequency.


Once these are setup, Mach will be continuously writing these coils and holding registers to the VFD.


Now you need to set the values. For that you need to write a brain. In the brain you will take the set spindle speed DRO put it through a formula and then write the value to the Modbus cfg#2 data buffer.  
The formula will scale the speed so that it will send 4000 to the VFD when your maximum spindle speed is asked for. If your max spindle speed was say, 24,000 rpm the formula would be;  

V = Set Spindle speed DRO /(max spindle speed/4000)
V = Set Spindle speed DRO /6


As Mach3 is sending this buffer to the VFD, it will receive the Frequency value.


You then need to write the Spindle ON LED  and the Spindle Direction LED to CFG#1

That should do it. :)


You should look at the video tutorials on brains and serial Plugin Modbus.

Cheers,

Peter.


Title: Re: Hitachi X200
Post by: zigmart on October 28, 2010, 11:37:01 PM
Thanks I will give it a try in the morning.
Title: Re: Hitachi X200
Post by: Peter Homann on October 28, 2010, 11:38:11 PM
Hi,

I just uploaded a presentation I did recently at the CNC BBQ in Adelaide. It may provide an overview on interfacing Mach3 to Modbus devices via brains.
http://www.machsupport.com/forum/index.php/topic,16347.html

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: zigmart on October 29, 2010, 02:54:13 PM
Okay, I have gotten the spindle run Brain working correctly, but I must be missing something for the speed setting.

I cant for the life of me find the set speed dro, is it an OEM dro or is it one I need to create?
Title: Re: Hitachi X200
Post by: zigmart on October 29, 2010, 04:24:53 PM
Nevermind, I found the DRO you were referring to, it is called 'CMD Spindle RPM'

So i now can turn it on and set speed  :D
Title: Re: Hitachi X200
Post by: Peter Homann on October 29, 2010, 04:32:05 PM
Hi,

Glad to see it is working.

Do you want to post the brain so that other owners of a Hitachi  can use it?

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: zigmart on October 29, 2010, 04:53:22 PM
I sure will.  I actully used 2 different brains for trouble shooting purposes.

Also I had to do 1 more little trick, instead of using the 'CMD Spindle RPM' value in the formula, I had to use the 'Spin RPM - Overridden' DRO so that spindle speed override would work :)

Also in the VFD Run brain I didnt concern myself with reverse, since I have a wood router and wont be using revrse much (if at all)

Thanks for all your help Peter!!!
Title: Re: Hitachi X200
Post by: Greolt on December 21, 2010, 04:31:20 PM
I need to ask a embarrassingly basic question.  :D

What cable do I need to connect modbus to the SJ200 ?

Hitachi manual says, pin 5 send/receive data positive, and pin 6 send/receive data negative on the RJ45.

But no info on the computer end. Probably because it is so obvious that any fool would know.   ;D

Any one help?

Greg
Title: Re: Hitachi X200
Post by: Peter Homann on December 21, 2010, 05:40:54 PM
Hi Greg,

You need an rs232 to rs485 converter. The rs232 end goes into the computer. The RS485 end connects to the X200.  You will have to make this cable up. The converters usually have screw terminals on the RS485 end and a DB9 on the RS232 end.

You will need to buy Something like this.

http://cgi.ebay.com.au/RS232-RS485-DATA-COMMUNICATION-CONVERTER-ADAPTER-/140441135202?pt=AU_Components&hash=item20b2f1a862

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: Peter Homann on December 21, 2010, 05:43:13 PM
Greg,

In addition to the 2 data wires, you also need a 0V line between the X200 and converter.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: Greolt on December 21, 2010, 05:45:30 PM
Thanks Peter.

On the way from HK ebay.

Have a great Christmas with the family.

Greg
Title: Re: Hitachi X200
Post by: Greolt on January 06, 2011, 05:58:00 AM
Got my RS485 converter.   Set all the options for modbus in the Hitachi.  Think they are right.  ???

I have communication...but,

Reading and writing to coils looks to work.

Reading Holding Registers also seems to work.

Writing to Holding Registers just gives a timeout.

So I think this is why I can not get the spindle to run.    Can turn on the run and CW signals but can not set the frequency (RPM) so it does not run.

Any ideas what I am doing wrong?

Greg
Title: Re: Hitachi X200
Post by: Greolt on January 06, 2011, 06:25:03 AM
Zigmart

Can you tell me what settings in the Hitachi you have for,  (my settings in parenthesis)

C070  .....NA in SJ200.  set via dip switch
C071  (05)
C072  (1)
C074  (00)
C075  (1)
C076  (02)
C077  (50)
C078  (10)

Probably only the last two are questionable.

Greg
Title: Re: Hitachi X200
Post by: Greolt on January 09, 2011, 06:27:36 PM
I also have a X200.  So I tried the modbus with that.

Exactly the same result.   Read and write to coils OK.   Read holding registers OK.  Write to holding registers results in a time out.

Doing something wrong but have no idea what it is.

Tried all sorts of settings for C077 and C078.   No joy.

I am shooting in the dark here.  :)

Greg
Title: Re: Hitachi X200
Post by: skippy on January 11, 2011, 04:27:44 AM
2 Questions?

A little bit of history
We have the 2x Chinese 1.5kw Spindle and have tried the Matty Zee  Huanyang VFD plugin with the Supplied Huanyang VFD that came with the spindle which we can not get to work with our Huanyang VFD. So a friend who is still in the build phase of his Mechmate CNC has loaned us his Hitachi SJ200-022FNC2


VFD issue

We have configured the SJ200 VFD with the below setting before we configured A001 and A002 to 3 we tested the spindle run and speed with the keypad and dial all works fine.

Then we configured the  SJ200 to Modbus Communications  and thought the <Test Modbus> button we are able to read and write to Coils and Holding Registers with no problems except when issue the  coil 0001h Run command the VFD goes into Alarm mode that need a power Cycle to clear as clearing alarms and trip in Modbus set the Values but resets the SJ200


Brain issue

We have setup the two Brains that zigmart posted. I know that due to us using  different Cfg # and port and slave address we need to change the brain to reflect this but I'm no sure what setting to us for the following add input screen shot for the from the Modbus Config screen shot

Enter Modbus Address to use?
I know it's an output
Source?

I have shown the setting that I think should work but they don't update the VFD Reg's. If I view the brain while running I can see that it is running and values change.

Screens short taken from my home PC running Mach3 Demo as the Controller PC is with Machine about 30km away


The Questions

1. How do we stop the SJ200 going into alarm when we issue the Modbus Coil Command 0001h 0001?
2. What setting do we use for the Brains for the the Modbus Terminator that we have configured in the Modbus Configuration?

SJ200 VFD Settings
A001 = 03   Frequencey Source Setting
A002 = 03   Run Command Source Setting
A003 = 400  Base Frequency Setting
A004 = 400  Maximum Frequencey Setting
A044 = 00   V/f Characteristic curve Selection
A082 = 220  AVR Voltage Select
C071 = 06   Communication Speed Selection
C072 = 1    Node Allocation
C074 = 0    Communication Parity Selection
C075 = 1    Communication Stop Bit Selection
C076 = 01   Communication Error Selection
C078 = 50   Communication Wait Time

Regards
skippy
Title: Re: Hitachi X200
Post by: Greolt on January 11, 2011, 06:18:06 AM
Well you are one step ahead of me Skippy.

I get a time out when trying to write to the holding registers with the "Test Modbus" dialogue.

Can't help with the alarm.  Does it trip when using the panel, if you turn the pot right up, then hit start?

Have you tried C076  02-disable?

Did you remember to flip the dip switch to 485 ?

I know what you mean about wondering what settings to use in the brain lobe termination.  I just have not got that far yet.

Tomorrow I will try with your settings.  See if that helps with "write to holding registers".

What setting did you use for C077 ?

Greg
Title: Re: Hitachi X200
Post by: skippy on January 11, 2011, 09:39:49 AM
Greg

Quote
I get a time out when trying to write to the holding registers with the "Test Modbus" dialogue.

Have you tried 19200 Baud (C071 = 06) as I was getting some timeouts with 9600 and all went away with 19200. You can also try the (C078 = 50)   Communication Wait Time. and Much later you can try the RS485 Termination Resistors


Quote
Can't help with the alarm.  Does it trip when using the panel, if you turn the pot right up, then hit start?

We had a problem with that in the beginning but by setting (A044 = 00) fixes that. So the Spindle run from keypad and pot with no problems at all.


Quote
Did you remember to flip the dip switch to 485 ?

Yes


Quote
Have you tried C076  02-disable?

I think so will try when I next get to see the Mechmate Machines There's a lot of flood water between me and the Machine and getting worst  (Wonders of living in Brisbane, Queensland Australia)


Quote
What setting did you use for C077 ?

Left it at default

Regards

Paul
Title: Re: Hitachi X200
Post by: skippy on January 17, 2011, 10:05:51 AM
I have started two need threads with my problems

VFD issue
http://www.machsupport.com/forum/index.php/topic,17190.msg117125.html#msg117125

Brain Issue
http://www.machsupport.com/forum/index.php/topic,17192.msg117130.html#msg117130

Regards

Paul (skippy)
Title: Re: Hitachi X200
Post by: diyengineer on March 14, 2011, 03:24:34 AM
Awesome information!!! Ordered a converter that i am waiting to get here. Cant wait to have mach control it! :)
Title: Re: Hitachi X200
Post by: diyengineer on April 04, 2011, 07:11:04 PM
Hello Peter! For everyone else electrically challenged as i am, Go to page 30 and 44 of this document.

http://www.cnczone.com/forums/attachment.php?attachmentid=130690&d=1301924569

It shows the pinout of the RJ45 (modbus) port to serial. I had to plug in the Cat 5 cable then cut one end off leaving the 8 wires exposed and wired them to my Chinese serial to USB converter i got off ebay.

The document on page 30 shows how to actually wire it.

Greg,

In addition to the 2 data wires, you also need a 0V line between the X200 and converter.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: diyengineer on April 04, 2011, 07:13:44 PM
Peter do we use the 2 Wire or 4 wire. My serial converter looks to be if it needs a 4 wire connection since it has Tx+/TX- RX+/Rx- 9V Gnd.

As for the "9V" and the Gnd what do i do with those?
Title: Re: Hitachi X200
Post by: Greolt on April 04, 2011, 07:36:21 PM
I posted the following in reply to your thread on CNCZone.  I will repeat here,



Section B3 of the Hitachi manual shows pins 5 and 6 of the RJ45 are data pos and neg

These will correspond to T+ and T- on the RS485 converter. Use one twisted pair in the cat 5 cable

That is all. Only two wires.

Re page B5 of the manual set the following,

A001 03
Aoo2 03
C070 03
C071 05 (this is what I used, other options are available)
C072 1
C074 00
C075 1
C076 02
C077 0.50
C078 10

The last two numbers I have no idea about but these numbers are working for me.

Set the dip switch shown on page B4 to 485

Greg
Title: Re: Hitachi X200
Post by: diyengineer on April 05, 2011, 02:52:01 AM
http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/hitachi-x200-series-inverter-instruction-manual.pdf

This is the official 305 page manual @ the link above. I lost my manual and just found this online.

As Greolt said refer to section B3. the only pins used are 5 and 6. 5 is positive, 6 is negative. It also shows the parameters to change on the VFD.

I will hopefully have the box fired up in the next week and can focus on getting it running.

Ill post some videos as well,

Thanks everyone.
Title: Re: Hitachi X200
Post by: Jimmy B. Goode on April 06, 2011, 04:38:50 PM
Hi,
Having read the posts about all of the trouble everybody seems to be having getting the Chinese vfd's to work properly, I'm wondering if anybody knows if the Chinese spindles will work with the Hitachi X200?  Any input on this topic would be appreciated.

Jimmy
Title: Re: Hitachi X200
Post by: Greolt on April 06, 2011, 04:54:41 PM
Yes the Hitachi VFDs go up to 400hz as required by the Chinese high frequency spindles. (Not all VFDs do)

I actually use an Hitachi SJ200 on mine but have tested with an X200.

One distinct advantage of the Hitachi is that it follows the Modbus standard.  (a good manual is another)

So Modbus control with Mach3 works straight out of the box and does not require the plugin that Matty wrote to get around the Chinese VFD modbus implementation (or lack of).

Greg
Title: Re: Hitachi X200
Post by: Jimmy B. Goode on April 06, 2011, 05:54:29 PM
Thanks for the speedy comeback, I was hoping that would be the case. I was actually looking ant the SJ200, seems like a slightly more robust unit.

Thanks again,
Jimmy
Title: Re: Hitachi X200
Post by: Jimmy B. Goode on April 07, 2011, 07:40:08 AM
Another possibly stupid question, can you power a 3kw spindle with a 4kw vfd without harming either?

Jimmy
Title: Re: Hitachi X200
Post by: Overloaded on April 07, 2011, 08:04:39 AM
I asked the same Q a while back .. so lets not call it too stupid. (grin)
http://www.machsupport.com/forum/index.php/topic,5459.msg36999.html#msg36999

I've done this several times since with no problems.
Just set the parameters correctly to protect the motor.
Russ
Title: Re: Hitachi X200
Post by: diyengineer on May 30, 2011, 04:53:59 PM
I'm going to take a crack @ setting up my VFD===>Mach 3 finally. Wish me luck.

Is there any chance that someone can modify the previous brain posted and add the working "reverse" function. ( I may only use it once, but it would be nice to have just in case).

Thanks everyone!! Hopefully i get it running and i can add a small video on how i got it going.

:)
Title: Re: Hitachi X200
Post by: diyengineer on May 30, 2011, 09:42:10 PM
SO i tested the spindle out manually with my X200 to make sure it was wired and it worked perfect. Followed the VFD manual on page B3 and set the VFD up as suggested:

A001 (08)
A002 (03)
C070 (08)
C071 (06-19,200bps)
C072 (1)
C074 (00- no parity)
C075 (1)
C078 (0)

With that being said i made sure i had the correct drivers installed for my USB--> serial converter. Seemed to install fine and reloaded.

In mach 3, i have modbus inputoutput support checked, and modbus plugin supported checked. I don't have TCP modbus support checked. I also do not have "spindle" enabled.

Under modbus config i have port num 1 selected, baud rate 19,200 8-1-N , no check in "use rts", timeout 100ms, and a check in "modbus run".

In the test modbus page, i have port 1, baud rate 19,200. slave address 1, start 0 num reg 1. In the access i can click register, coil, etc and it will not give me any data.

Just says "COMM-Port not open"...

Help?

This is pushing the extent of my computer knowledge, which is sad because im fairly good, just not at this technical serial port stuff.

Thanks everyone..!!

Title: Re: Hitachi X200
Post by: Greolt on May 30, 2011, 10:29:46 PM

Is there any chance that someone can modify the previous brain posted and add the working "reverse" function. ( I may only use it once, but it would be nice to have just in case).



This is my brain for spindle control.

It works in CW (M3)  and CCW ( M4)

Also a pic of the serial modbus configuration screen that works with it

Greg
Title: Re: Hitachi X200
Post by: diyengineer on May 30, 2011, 11:25:24 PM
I've loaded the brain into the "brain control" and made sure the enabled check box was marked. I also viewed it to make sure it was all there.

Thanks for the screen shot. I copied your settings over!

the problem i am having is under serial modbus control. I click test modbus.
I select port number 1, baud rate 19,200 and click "open". Under status "no error" pops up.

In the "test" section i dont know how to properly test it.

:(

Also, under ports and pins do i have to configure the spinde? If so what did you use for step/dir?
Title: Re: Hitachi X200
Post by: diyengineer on May 30, 2011, 11:29:15 PM
Anything i select it just says "receive timeout". :(
Title: Re: Hitachi X200
Post by: Peter Homann on May 31, 2011, 02:55:57 AM
Have you set the Modbus address of the VFD to '1'?

Also try reading a holding register rather than an input register.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: diyengineer on May 31, 2011, 05:34:08 PM
I went to device manager and found that i had to set the serial to usb converter to 19,200 baud, and the com port was set to port number 6.

In modbus config i have set it to port num 6 now (was at 1), but it wont open the comm port now.

I'm going to check my "wires" to make sure its connected correctly.
Title: Re: Hitachi X200 .... slowly but surely..
Post by: diyengineer on May 31, 2011, 06:50:53 PM
1. Double checked my cables and pinout. They are correct.

2. Had to go into device manager (windows xp) and setup the serial to usb converter. It was set to COM 6, and baud 9600. I left it at com 6, and selected 19,200. The other settings were correct.

3. Updated the new com port number into mach, but with no luck. Still wont open the "port" when i click open.

4. Found that all my settings i "entered" into the vfd through the keypad didn't save!! After selecting a setting and changing its value, you must hit the "STR" key (Save to ram) or it will not save any of your settings. Corrected this issue.

5. In modbus test (in mach), it will still not "open" com port 6. The correct drivers are loaded for the converter, and device manager says the device is working properly. What could it be?

I have the SW7 switch on 485, and SW8 set to off like the manual states for modbus operation. I also have all the settings programmed into the VFD and saved, per the manual specs. Com port 6 at 19200 baud is my usb to serial converter. Mach simply can't open the port.

What should I do?

Check out the pictures! Thanks.
Title: Re: Hitachi X200
Post by: diyengineer on May 31, 2011, 06:52:20 PM
More pictures.
Title: Re: Hitachi X200
Post by: diyengineer on May 31, 2011, 06:53:31 PM
More pictures II.
Title: Re: Hitachi X200
Post by: Peter Homann on May 31, 2011, 08:34:11 PM
1. Double checked my cables and pinout. They are correct.

2. Had to go into device manager (windows xp) and setup the serial to usb converter. It was set to COM 6, and baud 9600. I left it at com 6, and selected 19,200. The other settings were correct.

3. Updated the new com port number into mach, but with no luck. Still wont open the "port" when i click open.

4. Found that all my settings i "entered" into the vfd through the keypad didn't save!! After selecting a setting and changing its value, you must hit the "STR" key (Save to ram) or it will not save any of your settings. Corrected this issue.

5. In modbus test (in mach), it will still not "open" com port 6. The correct drivers are loaded for the converter, and device manager says the device is working properly. What could it be?

I have the SW7 switch on 485, and SW8 set to off like the manual states for modbus operation. I also have all the settings programmed into the VFD and saved, per the manual specs. Com port 6 at 19200 baud is my usb to serial converter. Mach simply can't open the port.

What should I do?

Check out the pictures! Thanks.


Opening the port should have nothing to do with Modbus. You can open a port even if nothing is attached to it. If you can't open the port then it means it can't find it.

See if you can open the port in Hyperterm.

Also make sure that you plug the usb serial port into the PC before you start up Mach3, or start up Hyperterm.

I hope this helps.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 04:36:34 PM
The USB cable is plugged in before i even start the computer up.

I opened up hyperaccess (which is like the big brother of hyper terminal) and it keeps saying "com 6" is busy!? (busy doing what?! haha)

Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 04:42:50 PM
http://www.cnczone.com/forums/diy-cnc_router_table_machines/106932-hitachi_x200_settings.html#post948028

POST 41 shows in the link above shows 5 pictues of the device maganger settings i have access to for the converter. Also has the pdf user manual attached.

Someone mentioned over there if it was "configured" for 2 wire operation. Since there is no switch or no software option for selecting that i didn't know what to say.
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 04:52:34 PM
Im using T-/A and T+/B.

Those are the correct ones right?
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 05:01:16 PM
I changed the com port from 6 ----> 2 and it still wouldnt open in mach. Must have something wired incorrectly?
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 05:06:13 PM
Also, i can get port 1,3,4,5 to "open in mach serial test". Those are the ports for my serial and parallel port cards. So those work correctly.

Port 2 and 6 (along with anything above 6 will not open)
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 06:01:00 PM
I rebooted and unplugged the VFD from the converter. The converter is still fully hooked up, except now i CAN ACCESS port 6! If i try to read or write anything to port 6 it gives me a "CRC error" in the modbus serial control test.

I can access port 1, 3, 4, 5, and now 6.

The other accessible ports only give me a "recieve" timeout if i attempt to write or read to them, while port 6 is the only one that gives me a "crc error" (whatever that is).

If i plug the RJ45 into the VFD it simply wont let me access port 6 any more.. What could it be?
Title: Re: Hitachi X200
Post by: Greolt on June 01, 2011, 07:18:05 PM
Maybe a dumb question but......

If you have a serial port, why are you using a USB to 485 converter?

Greg
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 07:21:45 PM
That serial port is for tuning my Viper drivers. I don't use it all the time though. Only when tuning my servos.

I guess i could always go grab a serial cable and cut the end off and splice it in and use that instead of the USB converter if i cant get it to work..

Maybe i will go grab one later just in case i cant get this converter to work.
Title: Re: Hitachi X200
Post by: Greolt on June 01, 2011, 07:30:39 PM
I use this,

http://www.ebay.com.au/itm/RS232-RS485-DATA-COMMUNICATION-CONVERTER-ADAPTER-/140441135202?pt=AU_Components&hash=item20b2f1a862

Coming to grips with setting up serial modbus in Mach took me a while, but no port or communication issues.

Greg
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 08:14:11 PM
http://www.ebay.com.au/itm/USB-RS232-DB9-9-Pin-Serial-Adapter-Converter-Cable-/390316858919?pt=AU_Components&hash=item5ae0b29e27#ht_2573wt_1140

Basically the same thing as i have.

I wonder why it is not working...
Title: Re: Hitachi X200
Post by: Greolt on June 01, 2011, 08:37:12 PM
No it is not the same thing at all.  

I am using a serial converter.

You are using a USB serial emulator. Presumably with FTDI chip on board.

Greg
Title: Re: Hitachi X200
Post by: Peter Homann on June 01, 2011, 08:58:08 PM
The USB cable is plugged in before i even start the computer up.

I opened up hyperaccess (which is like the big brother of hyper terminal) and it keeps saying "com 6" is busy!? (busy doing what?! haha)



Presumable you don't have any other application trying to access port 6 at the same time?

If you can't access the USB port via Hyperterm then you have an issue between your PC and the USB serial device. You need to solve that before trying to get it to work with Mach3.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: diyengineer on June 01, 2011, 09:22:15 PM
I bought a db9 serial cable. Let's hope this works! Greolt- I had no clue! Thought they were the same! Peter- got com 6 to accesSeems like if I unplug it from the vfd it can access it. Just won't when its plugged into the vfd. Hopefully I can use the serial cable and fix the issue.
Title: Re: Hitachi X200
Post by: diyengineer on June 02, 2011, 01:17:19 AM
Added a ground between the converter and VFD. now i can open com port number 6 with no error. I still cannot read or write to anything without getting a CRC error...

Going to plug in my serial cable and see if i can get it working without the USB emulator.
If it works w/o it, then we know the issue lies with the emulator.
Title: Re: Hitachi X200
Post by: diyengineer on June 02, 2011, 01:45:06 AM
Connected the DB9 cable from the breakout to the serial input on my PC.

Looks like i have to configure it correctly on Port 5.

So far i have:
bit per sec-19,200
data bits- 8
parity- none
stop bits-1
flow control- none

Then i have to put a check box in:
RS232
RS422
RS485 (then i must choose, full duplex, half duplex, or half duplex echo).

Then a setting for auto hardware flow control.. Use or not to use?

Thanks everyone.

(I tried half duplex RS485 and it freaked my mouse out and it was bouncing all over the screen, windows xp started to auto install "microsoft serial mouse drivers"? lol)

Had to unplug and restart. I think ill wait to hear back which one is correct so i dont fry my system!! :(
Title: Re: Hitachi X200
Post by: diyengineer on June 02, 2011, 02:04:08 AM
(with my DB9 cable) It seems that if i choose anything other that RS232 windows XP tries to install a "serial mouse" and starts moving my mouse and clicking it all around the screen violently.

RS232 will open up with no errors in mach, but i run into the infamous CRC error when trying to write or read.

Your guys guess is better than mine at this point haha in the dark =-(
Title: Re: Hitachi X200
Post by: gd.marsh on June 02, 2011, 10:16:42 AM
I purchased a RS232 to RS485 converter from Grainger .. it uses 2 wire RS485 and I added a ground between the PC & VFD for good measure even though it worked without it. 
The Grainger part number is: 3AEA2
Title: Re: Hitachi X200
Post by: diyengineer on June 02, 2011, 03:23:19 PM
https://www.grainger.com/Grainger/wwg/search.shtml?searchQuery=3AEA2&op=search&Ntt=3AEA2&N=0&sst=subset&typeaheadSearch.x=1&typeaheadSearch.y=5

Just ordered up that part G.D Thank you for the part number. Hopefully it arrives soon!! Technically i should just have to attach my 2 wires from the VFD to it, then plug it in my serial port and it should work right?
Title: Re: Hitachi X200
Post by: diyengineer on June 03, 2011, 03:47:57 PM
Here is the new converter. "RS232/485C"

Made by "speco technologies"
www.specotech.com

grainger number #3AEA2

Thanks to  gd.marsh for supplying the info!!

Hopefully tonight i can test it out :) (cross your fingers everyone).
Title: Re: Hitachi X200
Post by: diyengineer on June 03, 2011, 05:18:39 PM
SUCCESSS!!!!!!! I can start and stop the spindle! I ordered a laser tachometer off Amazon.com, so i have to wait for it to show up. Then i can actually tell what RPMS it is spinning @. wow! That converter did the trick, super easy!!

For some reason my speed is limited to 8000rpm inside mach. I think i have to configure it. Also, i see "spindle CW F5" that starts and stops my spindle im assuming in the clockwise direction. What about counter clock wise? Is there a better spindle controller screen i can select? I'm using the stock mach 3 screen set. What does everyone prefer?
Title: Re: Hitachi X200
Post by: diyengineer on June 03, 2011, 05:25:02 PM
Never Mind wow! Some one really did there homework because i typed in 12,000 rpm in mach 3 and turned the spindle on. On my VFD i have it set to hertz display on the LCD screen. It read 200hz or half the max value exactly. bumped it up to 24,000 rpm and it displayed 400 hertz correctly!!

I'm assuming the brain is doing all of that! thank you very much for posting it up!! Works flawlessly.

I will have to play with it a bit more and get the hang of it!!

I will have a video of it working posted up this weekend! :)
Title: Re: Hitachi X200
Post by: Greolt on June 03, 2011, 10:20:28 PM
If anyone else is as tight fisted as I am, then these can be had on ebay for a few dollars.

Example,

http://cgi.ebay.com/RS232-RS485-1-2KM-Data-Interface-Adapter-Converter-/260758890393?pt=LH_DefaultDomain_0&hash=item3cb670e799

Greg
Title: Re: Hitachi X200
Post by: diyengineer on June 04, 2011, 03:47:13 PM
Laser Tachometer came today! All is can say is wow! The speed is right on! :) I'll take a video this afternoon.

Also, i would have purchased the converter off ebay but i was sick of waiting haha. The first "emulator" was from ebay (china) and took about 2 weeks to get here. Grainger had it locally for me, and i received it next day :) They are so cheap off ebay i would order an extra just incase you needed a spare in the future.


Title: Re: Hitachi X200
Post by: diyengineer on June 04, 2011, 06:13:49 PM
First off, I want to thank everyone who helped me. I wouldn't have figured it out without The amazing cnczone users, as well as the mach 3 forum users. I want to especially thank "Greolt" for his "brain" contribution which has worked perfectly!

Youtube Video Below:
http://www.youtube.com/watch?v=I2_Hsx5nk6o

Brain and image by Greolt zipped and attached below.


CNCZONE "hitachi x200 thread" (READ THIS THREAD AS WELL)
http://www.cnczone.com/forums/diy-cnc_router_table_machines/106932-hitachi_x200_settings.html

Some of the things i used:

Phototachometer
Amazon.com: Digital Photo Laser Tachometer Non Contact Tach: Home Improvement (http://www.amazon.com/Digital-Photo-Laser-Tachometer-Contact/dp/B001N4QY66/ref=sr_1_4?ie=UTF8&qid=1307222125&sr=8-4)


Grainger converter: (RS232 to RS485 Converter)
RS232 to RS485 Converter - Closed Circuit TV System Accessories - Closed Circuit TV Systems and Accessories - Security : Grainger Industrial Supply (http://www.grainger.com/Grainger/wwg/search.shtml?searchQuery=3AEA2&op=search&Ntt=3AEA2&N=0&sst=subset&typeaheadSearch.x=14&typeaheadSearch.y=6)

Ebay Converter: (RS232 to RS485 Converter)
RS232 to RS485 1.2KM Data Interface Adapter Converter | eBay (http://cgi.ebay.com/RS232-RS485-1-2KM-Data-Interface-Adapter-Converter-/260758890393?pt=LH_DefaultDomain_0&hash=item3cb670e799)

Hitachi X200:
driveswarehouse.com/Drives/AC+Drives/Variable+Torque+VFD/X200-002NFU.html] driveswarehouse.com/Drives/AC+Drives/Variable+Torque+VFD/X200-002NFU.html

Chinese spindles: (search under his store, "spindle")
eBay My World - love-happyshopping (http://myworld.ebay.com/love-happyshopping/?_trksid=p4340.l2559)

RJ45 Breakout board:
CNC4PC (http://www.cnc4pc.com/Store/osc/product_info.php?products_id=213)

RJ45 Cat 5 cable:
CNC4PC (http://www.cnc4pc.com/Store/osc/product_info.php?products_id=212)

Serial cable:
CNC4PC (http://www.cnc4pc.com/Store/osc/product_info.php?products_id=188)

Pci to serial card:
Newegg.com - StarTech Low Profile 1 Port 16550 Serial PCI Card Model PCI1S550_LP (http://www.newegg.com/Product/Product.aspx?Item=N82E16815158032&cm_re=pci_to_serial-_-15-158-032-_-Product)

Quick reference guide to X200:
http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/hitachi-x200-series-inverter-reference-guide.pdf (http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/hitachi-x200-series-inverter-reference-guide.pdf)

Full instruction manual for x200:
driveswarehouse.com/documentation/Hitachi/X200M.pdf] driveswarehouse.com/documentation/Hitachi/X200M.pdf[/url]
Title: Re: Hitachi X200
Post by: stevespo on July 12, 2011, 11:30:52 PM
Modifying my original post - I neglected to restart the VFD after making changes. 
I now have VFD to Mach connectivity via ModBus.
Now to try out the spindle functions...

Steve
Title: Re: Hitachi X200
Post by: stevespo on July 13, 2011, 12:10:43 AM
I'm able turn on/off the spindle <F5>, but it always spins CCW.
Trying to change the RPM has no effect and the Mach display always reads 0.

M3 (CW) spins CCW, and M4 (CCW) spins CW.  This is brand new behavior.
Any ideas as to what I need to configure to get this working correctly?

Can somebody take a screen shot of their Pins & Ports settings?
I've tried just about every option I can think of with no success.

Steve
Title: Re: Hitachi X200
Post by: stevespo on July 13, 2011, 06:33:21 PM
The thread on the brain configuration has been helpful.

http://www.machsupport.com/forum/index.php/topic,17192.msg117298.html#msg117298

I can control my spindle using the Test ModBus dialog.  On/Off, direction (CW, CCW) and Freq/RPM - all fine.
So, apparently it's not a problem with the cable, hardware, or Brain.  (Ok, maybe my brain).

One thing that confuses me a bit, is that the X200 manual says for coil 0002h that 0 = RV and 1 = FW.
What I am seeing is that 0 = CW, and 1 = CCW.  What I am calling CW would be the direction you need for standard woodworking tools.  The tool spins CW relative to the workpiece (when viewed from above).

I must have some issues with other Mach configuration, perhaps the Brain is referring to a different DRO than what I am using to display/control the spindle speed?

Steve
Title: Re: Hitachi X200
Post by: TOTALLYRC on July 30, 2011, 06:48:23 AM
FW and RV are from the drives perspective. If the motor goes the other way then swap any two of the three phase wires to change its rotation to the other way.

Mike
Title: Re: Hitachi X200
Post by: ftkalcevic on September 20, 2011, 07:23:34 PM
I'm in the process of setting up my VFD.  I'm just wondering, does any one use any of the other Inputs/Outputs?  I want to use the relay output to turn the water pump on for the spindle, and a digital output to feed back the alarm status.

Is there any nice way to set up an "Enable" input so the VFD doesn't do anything until enabled?  I see a Trip line, but that needs a reset to recover. 


I have an SJ200, which looks similar to the X200.
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 28, 2011, 09:12:12 PM
I have read and read and read and have everything hooked up the way it should be.

I can get "no error" when I open the com on test modbus

But when i read anything I get rceive timeout.

I am usiung a db9 rs232 to rs485
I have rj45 5 and 6 going to it correctly - Tx+ and TX-
I have all teh settings from diyengineer's write up
I have tested the spindle with the keypad prior to setting the modbus settings on the VFd.

Any ideas what I might need to change??
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 29, 2011, 05:30:07 PM
OK my issue was a bad serial cable. Cahnged the cable and Modbus is working!
BUT.....

Steve you and I have the exact same issues with it starting CCW, a toggle reverses it and it never stops.

Reversing the wires would not fix the issue with a spindle toggle reversing the spindle and not stopping.

Do we need that PWM?? Why would we need that with modbus??

Anyone have a working brain with run, CW, and CCW all working. Can you please upload a new brain file please.

Mikie
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 29, 2011, 07:17:27 PM
OK - So I enabled PWM on ports and pins spindle control. That seems to allow me to stop and start correctly. I flipped two motor out wires on the VFD so now rotation is correct.

I need to know how to set a delay so the spindle comes up to speed before it starts cutting - Anyone know that off the top of their head by chance?

I also need to research how to spin the spindle CCW and check that to see if that works.

The CW button just stops and starts the spindle.

I use the mach blue big tex screen.

Mikie
Title: Re: Hitachi X200
Post by: TOTALLYRC on December 30, 2011, 04:48:06 AM
To set a delay for the spindle normally you can go to ports and pins, then the spindle tab and set the delays right there. I don't know if this works with a Modbus spindle or not.

Mike
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 30, 2011, 05:03:09 AM
Yep I got it done. ports and pins spindle setup. Works perfect with modbus.

I made a little video of my modbus spindle bench testing tonight if anyone wants to check it out.

http://youtu.be/8JdEmSHFo3w (http://youtu.be/8JdEmSHFo3w)
Title: Re: Hitachi X200
Post by: TOTALLYRC on December 31, 2011, 06:56:51 AM
Looks good. Like the video.
As an aside I would consider having the spindle cooling run for a minute or 2 after the spindle stops. Your intelligent relay may or may not be programmable to allow for some delay before shutting down the cooling.

Mike
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 31, 2011, 07:14:54 AM
I will check into that today. I am pretty sure it is but I will check. I will monitor the temps of the spindle too.

I am syncing another video . I just worked on it all night and got it all done! I will post that video of it after I recode and upload it. I love when your vision becomes a reality in your build!!
Title: Re: Hitachi X200
Post by: bloomingtonmike on December 31, 2011, 03:42:33 PM
.... and here is the setup installed video. Thanks SOOO much to everyone in this thread and on the cnczone thread.

http://www.youtube.com/watch?v=x24rP5n0RNw (http://www.youtube.com/watch?v=x24rP5n0RNw)
Title: Re: Hitachi X200
Post by: arcadi1988 on August 02, 2012, 02:27:43 PM
I tried this brain, and the inverter rules OK in high rpms (1000). But in lowest rpms like 400, the inverters doesn't turn.

Is it normal?

A lot of thanks and good work! There are many things to learn ;)

My brian is the same:
Title: Re: Hitachi X200
Post by: Op4 on November 20, 2012, 05:13:35 AM
This thread has been so helpful.

I am using the same brain that has been passed around between a couple of threads, but I can only control the spindle via the Modbus Serial Monitor by writing data.  That tells me that my hardware is setup correctly, but the Brain is not.   What is the most obvious thing that comes to mind given this situation?
Title: Re: Hitachi X200
Post by: helijet on January 04, 2013, 02:53:44 AM
After reading through this thread and the X200 thread on CNCzone, I tried to setup modbus with no success. I get "time out received" everytime I try to read and write. I have everything turned on: Gecko G540 and X200 VFD. The 2.2 kw spindle is plugged into the VFD. Cat5 cable is plugged into the VFD and RJ45 Cat5 Ethernet adapter. Pin 5 of the RJ45 is connected to T+ and Pin 6 is connected to T- of the RJ485-RJ232 converter. VFD ground is connected to converter ground. Serial cable is connected from the converter and the PC.

Hitachi X200 setting is exactly the same as diyengineer suggested.

A001 = 03
A002 = 03
B089 = 01
C070 = 03
C071 = 06
C072 = 1
C074 = 00
C075 = 1
C076 = 02
C077 = 0
C078 = 0


I loaded the brain uploaded by diyengineer. Take a look at the attached pictures for the rest of my setting in Mach3 and Modbus. Spindle isn't moving. VFD stays at 0.0 Hz. I really have no idea what to do next. Can someone help me figure out what I need to do? Thanks.

http://www.ebay.com/itm/281024871400?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
http://www.ebay.com/itm/270769822341?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
Title: Re: Hitachi X200
Post by: helijet on January 04, 2013, 02:59:01 AM
More screenshots
Title: Re: Hitachi X200
Post by: pinworm21 on January 07, 2013, 04:09:24 PM
Ok.....so I am trying to help a friend of mine out with setting up a Hitachi X200 VFD and the Mach3 software Via Modbus and have been going crazy trying to figure out how to do it.

I have the modbus test working where I can connect to the VFD and read coils and holding registers with no problem so the modbus communications seem to be working. My problem is trying to get the Mach3 software to map to the RUN/STOP bit and the Spindle speed register.

From what it looks like I need to use a brain to map the two together ? Am I correct on this ?

I have been working with Industrial modbus devices (PLC's, industrial touch screens......etc) for 14yrs, and have never had this mouch trouble setting up two modbus devices.

Any input would be great...thank you,

David
Title: Re: Hitachi X200
Post by: cambosoup99 on January 08, 2013, 12:26:31 AM
From what it looks like I need to use a brain to map the two together ? Am I correct on this ?

correct, the brain can be found from the previous post. on page 7



Title: Re: Hitachi X200
Post by: cambosoup99 on January 08, 2013, 12:34:53 AM
from what it looks like, those guys that have there modbus working with the x200 don't post here anymore.  Seems they got what they needed and left.  

What we need do to have is an updated setup.  Posted for everyone to be able to use.  One guy on here, offered to sell his instructions to setup the modbus with the x200 for $150.00. That's nuts.!

I have been compiling a list of things needed to get this working again from all the info from the beginning of this thread here and cnczone.  I will post this up. So people don't have to search all over.

pinworm21 if you get this working, please help others by posting your setup.
Title: Re: Hitachi X200
Post by: Peter Homann on January 08, 2013, 01:06:17 AM
Hi,

Once you set up the Modbus transactions on Modbus setup page, you need to write a brain to transfer data between Mach3 and the X200.

Have a look at this document I wrote.

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

It shows how to communicate with a ModIO with Mach3. The technique will be the same for the X200, but the X200 registers will be different as will the Mach3 variables.

You need the brain to get the Mach3 speed and with a formula convert it to a frequency if the X200 wants the speed as a frequency.

You then need to the Mach3 led which indicates when the spindle is on or off and have the brain use this to set the necessary bits in the X200.

Cheers,

Peter.
Title: Re: Hitachi X200
Post by: bloomingtonmike on January 08, 2013, 01:59:34 AM
You do this research and pull your hair out and tell me its not worth $150.

John is up and is working via modbus. Woo hoo.
Title: Re: Hitachi X200
Post by: helijet on January 08, 2013, 02:50:11 AM
Yep. Still up playing with it because I'm too excited. :-)
Title: Re: Hitachi X200
Post by: bloomingtonmike on January 08, 2013, 03:19:21 AM
And who else here is doing 2:20am cst tech support LOL.
Title: Re: Hitachi X200
Post by: cambosoup99 on January 09, 2013, 03:04:25 AM
You do this research and pull your hair out and tell me its not worth $150.

not its not, especially when you got this information via the forums.. Will figure it out on my own before I have to pay for free information...
Title: Re: Hitachi X200
Post by: cambosoup99 on January 15, 2013, 10:24:18 PM
woohoo my modbus setup is working...now to update this post.. soon as i figure out how to post pics and files......



Hitachi X200 VFD Modbus DIY

required materials:
1. rs232 to rs485 converter (I'm using this one here http://www.ebay.com/itm/RS001-RS232-to- ... 2314ac71d3) rs001
note: I found this one searching for a more rugged design with more options, better protections and better data sheet, also 5 year warranty http://www.serialcomm.com/serial_rs232_ ... _info.aspx The eBay version doesn't have a built in provision for ground connection, although I don't think its required. X200 manual doesn't make any mention of this. edit: verified ebay converter above does work.

2. Piece of network cable (any will do, I'm using cat5e network cable)
3. serial cable (optional, you can plug the converter directly into the back of your computers serial port and just run a longer network cable to your VFD)


converter assembled:


converter assembled.JPG


The only wires you will need from the network cable is Pin 5 and Pin 6. (observe orientation and color code, I'm using cat5e network cable)

connection drawing.jpg


Pin 5 to positive on the converter
pin 6 to negative on the converter
This is all that's required for the converter assembly. The x200 only requires these two data wires for connection via mod-bus.

notes: manual mentions termination resistors. this is not required for this setup as my connection is very short. also shielded wire is recommended if you you have a lot of noise in your electrical system. A better setup would be to custom build a twisted pair, shielded network cable.



The next step is to config the x200 and mach settings.
(I'm assuming that you already have your spindle and vfd setup properly to run in the manual mode, meaning by the control panel on the vfd) SKIP TO THE BOTTOM OF THE POST FOR SETTINGS

X200 configuration Appendix B of the manual.

Set Inverter OPE/485 Switch to 485

485.jpg



Now lets go into our vfd's function codes and set those up for modbus. Set-up your vfd as shown below, all highlighted and required check boxes need to be set so communications will work properly.
Dont forget to push the STR button after every change you make, or your settings will not save

modbus parameters.jpg



*****IMPORTANT****** ONCE YOU HAVE FINISHED CONFIGURING THE PARAMETERS, TURN OFF AND UNPLUG THE VFD, WAIT ABOUT 30SECONDS TILL ALL POWER IS COMPLETELY DISSIPATED. THEN PLUG IN AND RESTART YOUR VFD.


MACH SETTINGS


In Mach3 the first thing to do is to enable MODBUS by going to Config/Ports & Pins
checkmark the ModBus InputOutput Support
checkmark the ModBus plugin supported
As shown below.

port and pins.jpg



While we are in the ports and pins configuration, where going to setup the spindle, and output signals as shown below
uncheck disable spindle relays, and set output numbers to match what is shown, notice i have nothing else on this screen checked except for disable flood mist relays because I'm not using them
.

ports and pins spindle setup.jpg



Now go into the output tab and enable output1 and output2, (notice i have set the port# to 3, reason being is that I don't want any electrical signal output, so in a sense this sort of a dummy port but we still want the brain to read this information so with that being said, it doesn't matter what pin you have it set to either. Just make sure whatever com port you use, isn't already being used by something else)

output1 output2.jpg



Exit out of config port and pins and go to config spindle pulley
on this screen you will setup your min and max spindle rpm values. I used pulley 1 min of 1000 and max 24000 rpm.
Note: you must have your min frequency setup to match your vfd. If your min frequency on your is vfd setup too high; say 200hz (12000rpm), and you entered 1000 into machscreen. Your vfd defaults to your min value of 12000. make sense? I have my min frequency on my vfd at 0, although I'd probably never go that low, its just nice for troubleshooting later.

setup spindle pulley.jpg



Next go to setup serial modbus control
match your settings as I have them here, the only thing that might vary is your com port and baud rate, these should match your computers com port and speed.

setup serial modbus control.jpg



At this point you can connect your network cable and test your setup to see if you can read and write data to your vfd. Do this by clicking on TEST MODBUS IN THE UPPER RIGHT HAND CORNER OF THE SCREEN.
your screen will look something like this.

test modbus.jpg


again make sure all your setting are correct for com and baud, which they should be by now.
click open and start testing, TEST HOLDING REGISTERS AND COILS.
test address 0, 2 registers
test address 1, 1 registers
at the end of each test, you should see a NO ERROR MESSAGE AT THE BOTTOM OF YOUR SCREEN. IF YOU GET ANYTHING ELSE. YOU WILL NEED TO TROUBLESHOOT WIRING, OR HARDWARE. DO NOT MOVE ON TO THE NEXT STEP UNTIL YOU HAVE SOLVED YOUR COMMUNICATION ISSUES.


If everything checked good, we can move on to the next step.


DOWNLOAD THIS FILE

spindlecontrol1.zip
    (625 Bytes) Downloaded 6 times

once you have unzipped the file. Place the spindlecontrol.brn file into your mach3 brains folder.

restart mach3 and goto OPERATOR BRAIN CONTROL THE FOLLOWING SCREEN SHOULD APPEAR

BRAIN CONTROL.jpg


In this screen select the file you just placed into the mach3 brains folder,

check enabled
click reload brain
lastly click ok
This will load the brain into mach3, and every time you restart mach3 it automatically loads it for you.

At this point you should be able to start and stop your spindle via modbus, if you can't double check all your settings saved properly.
so now what can i do with a modbus controlled spindle..
cw rotation (M3), ccw rotation (M4), speed control all via mach 3
Every time you start mach3, your vfd should display 0.0Hz if you have a good connection.
If there is no connection it defaults to programming mode.

There are other features of the Hitachi vfd but I wont go into that. I hope I didn't leave anything out. I'm no expert but these settings worked for me. I will post a video shortly.

That's it enjoy your new modbus controlled spindle!!!


IF YOU DO NOT HAVE YOUR VFD SETUP TO RUN IN THE MANUAL MODE LOOK HERE FIRST.

The manual shows how to do it step by step, you just need to choose the right settings for the spindle. I'll post those up.
In the manual, setup starts at page 2-8 all the way through 2-35. Read all the way through that for the initial installation. I'm going to post the setting you will need for the power up test on page 2-24.

Here is a list of settings for your spindle, some are already set at default but you should check to be sure because it will affect your spindle operation. Also I've included other parameters that need to be setup that the initial power up procedure doesn't include.

VIEW YOUR SPINDLES DATA SHEET AND ENTER YOUR VALUES HERE. SOME VALUES WILL VARY DEPENDING ON THE SPINDLE YOU USE. SETTINGS I HAVE LISTED BELOW ARE FOR 2.2KW WATER COOLED SPINDLE.

A001- 00
A002 – 02
A004- 400HZ (THIS NEEDS TO BE SET FIRST, BEFORE THE VFD WILL LET YOU CHANGE A003
A003 – 400Hz
A061 – 400HZ
A062 – 0 (THIS THE LOWEST FREQUENCY THAT YOU WANT YOUR SPINDLE TO RUN, YOUR CHOICE, I’M USING 0 FOR FULL RANGE)
A082 – 230V
A151- 0
A152 – 400HZ
A153 – 0
A154 – 100
A155 - 00
B012 – 10 (8 TO 10 AMPS DEPENDING ON YOUR SPINDLE)
H003 – 2.2 KW (this is your spindle kw rating)
H004 - 2 poles


After you set parameters above, select D001 then press function key. (Note: this isn't a requirement for initial run but you should use it to view the speed in frequency that your spindle is running)
Title: Re: Hitachi X200
Post by: cambosoup99 on January 16, 2013, 12:39:47 AM
Modbus diy setup instructions same as above with all the photos and files you need.

you need microsoft word to view it. I have also included the brain in the file.

enjoy..
Title: Re: Hitachi X200
Post by: cambosoup99 on January 16, 2013, 07:09:13 PM
updated the instruction there was a little confusion with the converter info
Title: Re: Hitachi X200
Post by: cambosoup99 on January 16, 2013, 10:23:38 PM
wire connection for 4 wire and 2 wire converters.



Title: Re: Hitachi X200
Post by: wnysupply on January 23, 2013, 11:27:20 AM
Hi
New to this forumn , but for some reason I can not see any of the pictures that cambosoup99 loaded up..need help to see these pics, as I have the same setup with X200 drive and Mach3 software.
Title: Re: Hitachi X200
Post by: Bartok on February 02, 2014, 06:36:16 PM
Hello everyone,

Is necessary the RJ-45 Breakout Board, in this video the guy is using one. http://www.youtube.com/watch?v=x24rP5n0RNw (http://www.youtube.com/watch?v=x24rP5n0RNw)  ???

thx


Title: Re: Hitachi X200
Post by: bloomingtonmike on February 02, 2014, 08:44:25 PM
Nope - just makes it easier to wire.
Title: Re: Hitachi X200
Post by: Bartok on February 05, 2014, 05:46:46 PM
which settings are correct??

cambosoup99 settings:


A001- 00
A002 – 02
A004- 400HZ (THIS NEEDS TO BE SET FIRST, BEFORE THE VFD WILL LET YOU CHANGE A003
A003 – 400Hz
A061 – 400HZ
A062 – 0 (THIS THE LOWEST FREQUENCY THAT YOU WANT YOUR SPINDLE TO RUN, YOUR CHOICE, I’M USING 0 FOR FULL RANGE)
A082 – 230V
A151- 0
A152 – 400HZ
A153 – 0
A154 – 100
A155 - 00
B012 – 10 (8 TO 10 AMPS DEPENDING ON YOUR SPINDLE)
H003 – 2.2 KW (this is your spindle kw rating)
H004 - 2 poles


or these ones suggested by diyengineer.


A001 = 03
A002 = 03
B089 = 01
C070 = 03
C071 = 06
C072 = 1
C074 = 00
C075 = 1
C076 = 02
C077 = 0
C078 = 0


I load a Gcode and run it and the VFD doesnt show the frecuency change



thanks
Title: Re: Hitachi X200
Post by: wnysupply on March 26, 2014, 10:08:24 AM
Up and running Hitachi X200 thru Mach3 ( Modbus ). Having 2 issues.... First issue is on rpm setting in mach3 does on match hz setting on VFD ( 12000rpm shows 280hz on vfd ) My second issue is, how can you delay z axis from dropping down to start cutting ( as the spindle motor is not up to full rpm yet )
Title: Re: Hitachi X200
Post by: Overloaded on March 26, 2014, 10:17:33 AM
Not sure about the first issue, maybe set up a scaling factor in the drive parameters ? ? ?

2nd issue, Config/Ports and Pins/ Spindle Setup/ Set the Spinup delay accordingly.

Russ
Title: Re: Hitachi X200
Post by: wnysupply on March 26, 2014, 05:11:32 PM
Russ
First issue resolved itself, thanks for the information on setting up the delay.
Title: Re: Hitachi X200
Post by: Overloaded on March 26, 2014, 05:15:24 PM
That's good to hear, happy to help.

Regards,
Russ
Title: Re: Hitachi X200
Post by: Op4 on March 28, 2015, 05:33:43 PM
Just wanted to follow up that you can use USB to Serial converter as long as it is isolated.  I used http://www.amazon.com/gp/product/B0093QEOJ0/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1 (http://www.amazon.com/gp/product/B0093QEOJ0/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1)

I know its spendy, but this allows me to use my laptop for controlling the x200 using the settings here.  Works perfect.  I tried two other usb to serial converters and they did not work.