RS485 spindles

Wiring diagram not available. View SVG

RS485 is the recommended way to control your VFD. Unlike analog 0-10V control, RS485 gives you two-way communication — the FluidBoard talks to your VFD and the VFD talks back. This means the controller knows the actual spindle speed at all times.

The real advantage: safety polling. If communication to the VFD is lost, or if the spindle speed deviates from the commanded speed, the machine goes to ALARM. On a regular analog setup, a broken wire means your spindle could be running at full speed with no way for the controller to know.

The FluidBoard has a built-in RS485 transceiver with ESD protection, so you can wire directly to the board — no external adapter needed.

If your VFD doesn't support RS485 (or isn't a supported model), you can use the 0-10V analog output instead.

Setting up the VFD

Before setting up RS485 communication, you need to configure the VFD and check if your VFD is supported. This is very device specific, so see the manual of your VFD for details.

If your VFD is supported, check the following:

  • The VFD should be set to RS485 communication
  • Set the baud rate to a reasonable value like 19200 baud, 8 data bits, 1 stop bit, even or odd parity. (19200 8E1)
  • Set the modbus address. This should be unique for every VFD connected to the controller.
  • Make sure that the parameters for max spindle speed/frequency, min and max frequency and acceleration/deceleration are sane.
  • If you have a brake resistor circuit, make sure that the VFD is configured to use it.

While other values should work fine, we recommend using 19200 baud, 8 data bits, 1 stop bit and even parity.

Spindles are dangerous tools! Always ensure spindles are properly clamped before even attempting to run them. Never run an ATC spindle without a tool. This can damage the seals of the spindle beyond repair.

Noise filters and grounding

VFD's generate a lot of noise. It is highly recommended to use a proper EMI filter on your power supply.

We strongly recommend earth grounding your VFD to limit the possibility of electric shock.

Wiring

RS485 devices are susceptible to EMI noise. Always use CAT-6 cable for wiring, prefer a shielded FTP cable over an UTP cable. Keep your cable as far away from any high voltage cable as possible, especially from the VFD spindle and mains cables.

  • Connect the shield on one side to the chassis (which should go to the earth of the wall socket).
  • Use one twisted pair for the RS485 communication (A+/B- or RS485+/RS485-). All the other pairs should be connected to the GND. Note that GND is not the shield!
  • Connect the A+ and B- pins to the RS485 A+ and B- pins on the VFD. Connect the GND on the VFD.
  • There is no need to connect GND on the controller.

Configuration

uart1:
  txd_pin: gpio.1
  rxd_pin: gpio.6
  baud: 19200
  mode: 8E1

Huanyang:
  uart_num: 1
  modbus_id: 1
  tool_num: 0
  speed_map: 0=0% 0=25% 6000=25% 24000=100%
  off_on_alarm: false

For more details, see the FluidNC Wiki on spindles.

Copyright (c) 2024 by NubiloSoft, all rights reserved.