What is needed to wire up 2.2kw 220v Spindle and VFD?

Hey David,

I took a closer look at the manual for your Hitachi S1. The options you can find in a VFD with SVC are all somehow comparable to those of other manufacturers, and with a little familiarization you can certainly set everything as desired, but the options of the Hitachi S1 are completely different in the numbering from those of the Hitachi WJ200 / Omron MX2. So I was wondering if the Hitachi S1 is supported by the Onefinity CNC controller. A look at the source code says, no. But the Buildbotics controller, from which the Onefinity controller was forked a longer time ago, has evolved quite a bit and includes support for other VFDs that the Onefinity controller unfortunately does not yet support. And there I found the parameters and the ModBus commands that match your VFD. But surprisingly I didn’t find them under ‘Hitachi S1’, but these settings are for the VFD ‘Galt G200’. It seems that its options and its ModBus addresses and instructions are identical to those of your Hitachi S1. See here, the manufacturer’s page for the Galt G200 here, and here is the Galt G200 Series Manual (PDF). If you compare it to your Hitachi S1 Series Basic Guide (PDF), well then it seems that they are practically identical, similarly to how Hitachi WJ200 and Omron MX2 are identical.

You will of course ask, can support for this VFD be backported from Buildbotics firmware to Onefinity firmware? Sure, that should not be too difficult. I often make diffs of the two codebases to see how much work it would be to backport something, and this, compared to what effort it would make to backport other new features, would be rather simple. Question is if Onefinity wants to do that themselves. The other day someone asked for support for Fuling VFD, which is the same situation: The support is there upstream in the recent Buildbotics version, but not yet in the Onefinity firmware. I had a look at the codebase and yes, there is yet no code for the “freq-scaled-set” parameter in the Onefinity codebase, but it is present in the recent Buildbotics codebase.

What you can do easily and at once on your Onefinity Controller is create a custom ModBus VFD in the Tool Configuration Tab. For this we simply look a the code from the buildbotics codebase and take the settings from there:

In buildbotics-firmware/v1.0.4/bbctrl-firmware-master/src/avr/src/vfd_spindle.c we find this:

const vfd_reg_t galt_g200_regs[] PROGMEM = {
  {REG_MAX_FREQ_READ,    0x0003, 0}, // Read max operating frequency in 0.01Hz
  {REG_FREQ_SET,         0x2001, 0}, // Set frequency in 0.01Hz
  {REG_FREQ_READ,        0x3000, 0}, // Read frequency with 0.01Hz
  {REG_FWD_WRITE,        0x2000, 1}, // Run forward
  {REG_REV_WRITE,        0x2000, 2}, // Run reverse
  {REG_STOP_WRITE,       0x2000, 5}, // Stop
  {REG_STATUS_READ,      0x2100, 0}, // Read status
  {REG_DISCONNECT_WRITE, 0x2000, 5}, // Stop on disconnect
  {REG_DISABLED},
};

which translates to the following settings:

CommandAddressValueComment
max-freq-read 3 0 Read max operating frequency in 0.01Hz
freq-set 8193 0 Set frequency in 0.01Hz
freq-read 12288 0 Read frequency with 0.01Hz
fwd-write 8192 1 Run forward
rev-write 8192 2 Run reverse
stop-write 8192 5 Stop
status-read 8448 0 Read status
disconnect-write 8192 5 Stop on disconnect
disable

and then we take this from buildbotics-firmware/v1.0.4/bbctrl-firmware-master/src/pug/templates/settings-tool.pug :

      .notes(v-if="tool_type.startsWith('GALT G200')")
        h2 Notes
        p Set the following using the VFD's front panel.
        table.modbus-regs.fixed-regs
          tr
            th Address
            th Value
            th Meaning
            th Description
          tr
            td.reg-addr P00.01
            td.reg-value 2
            td MODBUS control
            td Run command channel
          tr
            td.reg-addr P00.06
            td.reg-value 8
            td Frequency set by MODBUS
            td Frequency command selection
          tr
            td.reg-addr P14.00
            td.reg-value 1
            td Drive ID
            td Must match #[tt bus-id] above
          tr
            td.reg-addr P14.01
            td.reg-value 3
            td 9600 BAUD rate
            td Must match #[tt baud] above
          tr
            td.reg-addr P14.02
            td.reg-value 3
            td No parity, 8 data bits, 2 stop bits, RTU mode
            td Communication mode
        p
          | Other settings according to the
          |
          a(href="https://buildbotics.com/upload/vfd/galt_g200-vfd.pdf",
            target="_blank") Galt G200 VFD manual

which translates to these additional comments:

Notes

Set the following using the VFD's front panel.

Address Value Meaning Description
P00.01 2 MODBUS control Run command channel
P00.06 8 Frequency set by MODBUS Frequency command selection
P14.00 1 Drive ID Must match #[tt bus-id] above
P14.01 3 9600 BAUD rate Must match #[tt baud] above
P14.02 3 No parity, 8 data bits, 2 stop bits, RTU mode Communication mode

Other settings according to the Galt G200 VFD manual

1 Like