Hello Guest it is March 28, 2024, 10:49:48 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 - tjhanks

Pages: 1
1
Modbus / Re: WJ200 low and high range hex frequency data
« on: January 11, 2014, 04:46:20 PM »
One more slight difference between X200 brains and WJ200 and NE-S1 brains is that the frequency resolution is 0.01Hz, so you have to pass 40000 for 400Hz which is 10 times greater than the 4000 you pass for 400Hz on the X200.

  The simple fix is to add a 10* multiplier into your frequency formulas in those brains.

2
Modbus / Re: WJ200 low and high range hex frequency data
« on: January 11, 2014, 04:43:05 PM »
Made some progress on the coil writing issue.

From modbus test window if I write to coil 0 this value "FF00" the spindle turns ON and if I write "0" or "0000" the spindle turns OFF.
What I found is that the manual for X200 drive seems to be wrong bacause for X200 I could write "1" and "0" to turn ON and OFF.  The modbus section of both manuals is pretty much the same in fact WJ200 manual has X200 references which shows that the section was copied and edited but not carefully checked.

Anyway, now the question is how do I write FF00 to coil1?
I used the serial port monitor to see what message is going out to the drive when I turn ON the spindle from test window.  That message is:
01 05 00 00 FF 00 8C 3A
and to turn OFF:
01 05 00 00 00 00 CD CA

So from test window function 05 is used to write to the coil.
When I setup modbus and brain to write to the same coil, function 0F is used. This function writes data in consecutive coils vs. 05 which writes data in a single coil.  This might be O.K. but I can't make the value to come up as FF00.  It looks that there is a binary to HEX conversion when writing to modbus, so I tried writing 255 which equals FF in HEX but no luck, I think the message comes out with a value 00 02

An interesting observation is after I write FF00 to turn ON spindle and then read the current value back I actually get 0001


Sinij,
  I read your conversations in this thread, and also on the Yahoo group.  Thanks for putting in good work on this issue and documenting it.

  I just purchased one of Hitachi's new NE-S1 inverters to replace my chinese VFD that blew up.  At any rate, and I'm configuring Modbus control of the spindle, I ran into the same issues you were having with your WJ200, namely that you cannot write a 1 (0001h) to the first couple coils to enable the drive.  I AM able to start my drive by using FF00 as you suggested. This issue, in my opinion, lies with our Inverters.

  I discovered another workaround that doesn't require a complete reworking of the Brains.  I found that if you tried to write 9 or more coils at a time, then you could successfully write a 0001h to start both coils 0 and 1 to start the inverter.  That means there's a very simple fix to make your the brains for an X200 work with either a WJ200 or a NE-S1.  When you configure Modbus in the Serial Plugin section, you can just modify the Run/Direction config to write to 9 coils.  Then your X200 brains will work as intended.

 Screenshot below.


Pages: 1