[Common] # HAL component name. Default value is 'vfdmod'. ;ComponentName=vfdmod MaxSpeedRPM=12000 MinSpeedRPM=10 # A maximum allowed difference between command speed and output speed # to set HAL 'at-speed' output to TRUE. Default value is 0.05 (5%). ;AtSpeedThreshold=0.05 [RS485] # VFD slave address. SlaveAddress=1 # Serial device system path. SerialDevice=/dev/ttyUSB0 # Communication speed. BaudRate=19200 # Data bits: always 8. DataBits=8 # Parity: 'N' for none (default), 'E' for even, 'O' for odd. Parity=N # Stop bits: 1 (default) or 2. StopBits=1 # Loop delay in milliseconds, default value is 200 ms. LoopDelay=200 # Delay in characters at front of every MODBUS request. ProtocolDelay=3 # A minimum count of successfull requests to set HAL 'is-connected' output # to TRUE. Default value is 10. IsConnectedDelay=5 [Control] # Function code for control operations (Run/Stop/Direction/Reset) FunctionCode=0x05 # An address of the coil that turns spindle on. # Coil 0001h - Operation command (1=Run, 0=Stop) RunCoil=0x0001 # An address of the coil that sets spindle direction. # Coil 0002h - Rotation direction command (0=Forward, 1=Reverse) DirectionCoil=0x0002 # An address of the coil that resets a fault state. # Coil 0004h - Trip reset (1=Reset) FaultResetCoil=0x0004 [SpindleRpmIn] # Function code for writing spindle speed/frequency FunctionCode=0x10 Address=0x0001 Multiplier=100 Divider=29 [SpindleRpmOut] Address=0x1001 Multiplier=3 Divider=10 [OutputCurrent] FunctionCode=0x03 Address=0x1003 PinType=float Multiplier=1 Divider=100 PinName=OutputCurrent [OutputVoltage] FunctionCode=0x03 Address=0x1011 PinType=float Multiplier=1 Divider=10 PinName=OutputVoltage