Changes

Jump to navigation Jump to search
added tables for relevant Modbus registers
Line 71: Line 71:  
=== Modbus coils/registers ===
 
=== Modbus coils/registers ===
   −
TODO
+
Coils for writing (they can usually also be read):
 +
 
 +
{| class="wikitable"
 +
! Coil No. (hex)
 +
! Coil No. (dec)
 +
! Values
 +
! Description
 +
|-
 +
| 0x0001
 +
| 1
 +
| 1: on, 0: off
 +
| Operation command
 +
|-
 +
| 0x0002
 +
| 2
 +
| 1: reverse, 0: forward
 +
| Rotation direction command
 +
|-
 +
| 0x0004
 +
| 4
 +
| 1: reset
 +
| Trip reset
 +
|}
 +
 
 +
Coils for reading:
 +
 
 +
{| class="wikitable"
 +
! Coil No. (hex)
 +
! Coil No. (dec)
 +
! Values
 +
! Description
 +
|-
 +
| 0x000F
 +
| 15
 +
| 1: run, 0: stop
 +
| Operation status
 +
|-
 +
| 0x0010
 +
| 16
 +
| 1: reverse, 0: forward
 +
| Rotation direction
 +
|-
 +
| 0x0011
 +
| 17
 +
| 1: ready, 0: not ready
 +
| Inverter ready
 +
|-
 +
| 0x0013
 +
| 19
 +
| 1: tripping, 0: normal
 +
| "running" (tripping?) status
 +
|}
 +
 
 +
[http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/WJ200_Instruction_NT325X.pdf#page=353 Page 353] (marked B-24 in the PDF) lists the Modbus coil numbers and their functions.
 +
 
 +
"Holding" registers for writing:
 +
 
 +
{| class="wikitable"
 +
! Register No. (hex)
 +
! Register No. (dec)
 +
! Values
 +
! Description
 +
|-
 +
| 0x0001, 0x0002 (MSB)
 +
| 1, 2
 +
| 0 - 40000 (decimal Hz * 100)
 +
| Frequency setpoint
 +
|}
 +
 
 +
Taken from [http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/WJ200_Instruction_NT325X.pdf#page=355 Page 355] (marked B-26 in the PDF) of the instructional manual.
 +
 
 +
Registers for "monitoring" (reading):
 +
 
 +
{| class="wikitable"
 +
! Register No. (hex)
 +
! Register No. (dec)
 +
! Values
 +
! Description
 +
|-
 +
| 0x1001, 0x1002
 +
| 4097, 4098 (MSB)
 +
| 0 - 40000 (decimal Hz * 100)
 +
| Output frequency monitor
 +
|-
 +
| 0x1003
 +
| 4099
 +
| 0 - 65530 (decimal A * 10)
 +
| Output current monitor
 +
|-
 +
| 0x1004
 +
| 4100
 +
| 0: stopping, 1: forward, 2: reverse
 +
| Rotation direction monitoring
 +
|-
 +
| 0x1011
 +
| 4113
 +
| 0 - 6000 (decimal V * 10)
 +
| Output voltage monitor
 +
|-
 +
| 0x1012
 +
| 4114
 +
| 0 - 1000 (decimal kW * 10)
 +
| Power monitor
 +
|}
 +
 
 +
Taken from [http://www.hitachi-america.us/supportingdocs/forbus/inverters/Support/WJ200_Instruction_NT325X.pdf#page=359 Page 359] (marked B-30 in the PDF) of the instructional manual.
    
=== mbpoll ===
 
=== mbpoll ===
Line 82: Line 187:     
<pre># write the output frequency as Hz * 100 (2-places fixed point in decimal) to holding register 1
 
<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
+
./mbpoll /dev/ttyUSB0 -b 19200 6000 -s 1 -P odd -a 1 -0 -r 1 -t 4
    
# to turn on, write 1 to coil 1
 
# 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
+
./mbpoll /dev/ttyUSB0 1 -b 19200 -s 1 -P odd -a 1 -r 1 -t 0 -B
    
# to turn off, write 0 to coil 1
 
# 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
+
./mbpoll /dev/ttyUSB0 0 -b 19200 -s 1 -P odd -a 1 -r 1 -t 0 -B
    
# to monitor the output frequency (displays Hz * 100)
 
# to monitor the output frequency (displays Hz * 100)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4098 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4098 -t 4
    
# to monitor the output current (displays amps * 10)
 
# to monitor the output current (displays amps * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4099 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4099 -t 4
    
# to monitor the rotation direction (displays 0 for stopped, 1 for forward, 2 for reverse)
 
# 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
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4100 -t 4
    
# to monitor the output voltage (displays volts * 10)
 
# to monitor the output voltage (displays volts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4113 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4113 -t 4
    
# to monitor the output power (displays kilowatts * 10)
 
# to monitor the output power (displays kilowatts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4114 -t 4</pre>
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4114 -t 4</pre>
    
== Online Resources ==
 
== Online Resources ==

Navigation menu