Third party software and hardware support forums. > Modbus

WJ200 low and high range hex frequency data

<< < (5/6) > >>

cncbaltar:

--- Quote from: bloomingtonmike on September 01, 2013, 05:40:49 PM ---Couple of WJ200 setting things important to remember.

If you are using a brand new drive - Do the power test and verify the Drive works.

Then when ready, connect up and change:
A001 to 03
A002 to 03
Verify all your settings for com speed (c071 to c078)
then once everything is set/stored/saved
POWER OFF YOUR WJ200, wait 5 min (I waited about 1 min and it was fine), Then POWER IT BACK ON (or reset it) - You need to do that before Modbus control will work
TX+ on RS485 adapter to SP on the Hitachi WJ200
TX- on RS485 adapter to SN on Hitachi WJ200
Verify your serial port settings on the PC, make sure they match the inverter, and set those in Mach as well.

--- End quote ---

I have a WJ200 and I am have a heck of a time getting mod bus to work..  Curious of others settings for testing it.  I have read all of Sinji posts including finding the thread that he supposedly got help on at Yahoo.

I am using a USB to RS485 specifically MWE820B at USCONVERTERS this one: http://www.usconverters.com/index.php?main_page=product_info&cPath=75&products_id=311
The way I have everything connected is as Bloomingtonmike said above, of course I read the manual to verify and all looks right to me.

I am using mach3 Full paid version R3.043.066
Modbus has been enabled within Mach 3
Simply using the Test ModBus function I am able to connect to my COMM port and I have connected the RS-485 terminals to a data analyzer and can confirm I am writing data to the WJ200 but nothing at all happens.
I believe the data formats for everything is incorrect but NOBODY including Hitachi can seem to verify anything for me.  Can somebody simply tell me what I should be typing into the Test ModBus window to make a simple run command work?
Here is what I am typing:
PortNum: 10 (of course everybody is different)
BaudRate: 57600 (again each to their own)
SlaveAddr: 1 (My WJ200 is also set to 1)
StartC: 0  (This is my biggest unknown according the WJ200 Manual Section B-24 Run command is 0001 but in the Hitachi Example 3 that Sinji provided it should be 2 what ever the case I have tried 0, 1, 2 and gotten nothing to happen.
NumCoils: 1
Data: Currently writing 65280 however I have tried 0001, 1, FF00, 255 none work

WJ200 settings are what the manual recommend and correspond to my COM settings:
Then when ready, connect up and change:
A001 to 03
A002 to 03
Verify all your settings for com speed (c071 to c078): done these match my PC COMM settings
then once everything is set/stored/saved
POWER OFF YOUR WJ200, wait 5 min (I waited about 1 min and it was fine), Then POWER IT BACK ON (or reset it) - You need to do that before Modbus control will work
A+ on USB->RS485 adapter to SP on the Hitachi WJ200
B- on USB->RS485 adapter to SN on Hitachi WJ200
GND on USB->RS485 adapter to GND on Hitachi WJ200

Yes I did the whole power off to reset my WJ200 with latest settings  I have also power cycled the PC and Mach3 to verify settings are set and look good.

Now where things get a little sketchy for me:  I decided to make sure data was coming out of the USB->RS485 converter by hooking up a serial data bus analyzer.  On the A+ pin and B- pin (this is RS-485 on my converter)  I see the data coming out and I can successfully change values like the slave address or start coil and number of coils however when I write 65280 as my data it looks like the USB converter is converting it to dec.

So if I write to the Coils (05) the following data from the Test ModBus window:

SlaveAddr: 1
StartC: 2
NumCoils: 1
Data: FF00

my Data analyzer shows the following:  01 05 00 02 FF 00 2D FA
Which basically looks right however the last 16 bits of the CRC does not  according to the WJ200 manual is 8C A3 but I get 2D FA

Any help would greatly be appreciated or screen captures of what I should be writing with the updated software all the help videos including the ModIO manual use outdated software...

cncbaltar:
So digging more and more,  Duh CRC is calculated off of the data that is being sent...

So trying values.  When I send the following data:

SlaveAddr: 1
StarC: 0
NumCoils:1
Data: FF00

The following gets transmitted 01 05 00 00 FF 00 8C 3A  just as sinji saw in his early creation of this thread
Stupid manual show the CRC code as 8C A3  I am guessing it is simply a typo, however I still have no functionality over modbus..

The manual definitely appears to be a copy of the X200 manual which really helps nobody...  Sinji or bloomingtonmike I would love to hear from you how you got yours working I just purchased the serial converter that Bloomingtonmike mentioned below hopefully that will resolve my issue if it is simply an incompatibility issue that I have seen from a couple other threads..

I know this is an old thread but I hope somebody out there is still working with WJ200 VFDs with modbus.


bloomingtonmike:
Hi. Yep still here.

The WJ200 does not use the RJ45 port for modbus - it uses the two pins as noted in the manual. That $5 rs232-to rs485 adapter and a two conductor wire should be all you need.

I have it working via modbus and mach but the brains file needs work to control the 60hz motor I have. You might be fine with a spindle that is 400hz.

cncbaltar:

--- Quote from: bloomingtonmike on September 17, 2013, 03:42:05 PM ---Hi. Yep still here.

The WJ200 does not use the RJ45 port for modbus - it uses the two pins as noted in the manual. That $5 rs232-to rs485 adapter and a two conductor wire should be all you need.

I have it working via modbus and mach but the brains file needs work to control the 60hz motor I have. You might be fine with a spindle that is 400hz.

--- End quote ---

iam NOT using the RJ45 port.. I am using a USB->RS485 (two wire)  I am using it the same way you are can you tell me exactly what you used to test your setup if it is Mach3 what did you type into your data section of the TestModBus window?

Here is how I have mine hooked up:
A+ on USB->RS485 adapter to SP on the Hitachi WJ200
B- on USB->RS485 adapter to SN on Hitachi WJ200
GND on USB->RS485 adapter to GND on Hitachi WJ200

bloomingtonmike:
You cannot use a USB to RS-485 adapter.
I never used or recommended one.

You need a 9 pin serial RS-232 - RS-485 adapter.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version