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.
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=311The 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...