Changes

initial page creation
[[File:Hitachi_WJ200-037LF_Stock_Photo.jpg|thumb|Hitachi WJ200-037LF stock photo]]

== Overview ==

Variable frequency drive (VFD) made by Hitachi. Useful for controlling 3-phase spindle motors on CNC routers. It can be controlled with discrete digital inputs, or over Modbus (RS-485). It can be configured from the keypad, or over USB using Hitachi's software which is much more convenient.

== Software ==

[http://www.hitachi-america.us/ice/ac-drives-inverters/software-downloads Industrial Inverters Software Downloads | ICED : Hitachi America, Ltd.]

== Modbus control ==

=== VFD parameters ===

The VFD must be configured for Modbus control of the settings of interest (usually just run/stop, forward/reverse, and electrical frequency which corresponds to speed).

{| class="wikitable"
! Name
! Value
! Default
! Description
|-
| A001
| 03 (Modbus network input)
|
| Frequency source
|-
| A002
| 03 (Modbus network input)
|
| Run command source
|-
| C071
| 06 (19,200 baud)
|
| Communication speed
|-
| C072
| 1
|
| Modbus address
|-
| C074
| 00 (no parity)
|
| Communication parity
|-
| C075
|
|
| Communication stop bits
|-
| C076
| 02 (disable)
|
| Communication error select
|-
| C077
| 2.0
|
| Communication watchdog timer period (seconds)
|-
| C078
|
|
| Communication wait time
|}

[http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/WJ200_Instruction_NT325X.pdf#page=331 Page 331] (marked B-2 in the PDF) of the instructional manual details how to wire and configure Modbus on the VFD.

=== Modbus coils/registers ===

TODO

=== mbpoll ===

There is an open source utility that can speak Modbus over a serial port (or USB to serial) that has an RS-485 adapter attached. It's called mbpoll:

https://github.com/epsilonrt/mbpoll

<code>mbpoll</code> commands to interact with the VFD:

<pre># write the output frequency as Hz * 100 (2-places fixed point in decimal) to holding register 1
./mbpoll /dev/ttyUSB0 -b 19200 6000 -s 1 -P odd -a 2 -0 -r 1 -t 4

# to turn on, write 1 to coil 1
./mbpoll /dev/ttyUSB0 1 -b 19200 -s 1 -P odd -a 2 -r 1 -t 0 -B

# to turn off, write 0 to coil 1
./mbpoll /dev/ttyUSB0 0 -b 19200 -s 1 -P odd -a 2 -r 1 -t 0 -B

# to monitor the output frequency (displays Hz * 100)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4098 -t 4

# to monitor the output current (displays amps * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4099 -t 4

# to monitor the rotation direction (displays 0 for stopped, 1 for forward, 2 for reverse)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4100 -t 4

# to monitor the output voltage (displays volts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4113 -t 4

# to monitor the output power (displays kilowatts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4114 -t 4</pre>

== Online Resources ==

[http://www.hitachi-america.us/ice/ac-drives-inverters/wj-200-series WJ200 Series AC Variable Speed Drives and Inverters | ICED : Hitachi America, Ltd.]

[http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/WJ200_Instruction_NT325X.pdf Hitachi WJ200 Instructional Manual NT325X]

[http://www.hitachi-america.us/ice/sites/default/files/products/inverter/(WJ200)SM-E265W.pdf Hitachi WJ200 Series Brochure]

[http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/NT3251X.pdf Hitachi WJ200 Quick Reference Guide NT3251X]