# Modbus configuration for spindle control via RS-485 (Half Duplex) # This file defines the Modbus registers for controlling spindle speed, direction, and status. [SPINDLE] register=40001 # Register for spindle speed command scale=1000 # Scaling factor for RPM (e.g., 1 unit = 1 RPM) min=0 # Minimum spindle speed (RPM) max=24000 # Maximum spindle speed (RPM) [DIRECTION] register=40002 # Register for spindle direction control bit-type=coil # Direction control is a single-bit coil register reverse=1 # Set to 1 for reverse direction forward=0 # Set to 0 for forward direction [ENABLE] register=40003 # Register for enabling/disabling the spindle bit-type=coil # Enable/disable control is a single-bit coil register enable=1 # Set to 1 to enable the spindle disable=0 # Set to 0 to disable the spindle [FAULT] register=40004 # Register for spindle fault status bit-type=coil # Fault status is a single-bit coil register fault=1 # Set to 1 when a fault is present no-fault=0 # Set to 0 when no fault is present # Notes: # Ensure the Modbus configuration matches the spindle drive's documentation. # Adjust the register numbers and scaling factors according to your VFD or spindle drive setup. # This file should be placed in the same directory as your LinuxCNC configuration.