Open MarcSN311 opened 2 years ago
Hi!
The PI500 pull request has been merged into master and will be available in some future release.
To include the PI500 plugin into your hal, you have to add the following line (with your own adaptions):
loadusr pi500_vfd --device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AB0JPYI4-if00-port0 --baud 9600
As device you can take any serial device, e.g., /dev/ttyUSB0 or /dev/ttyASM0 or what ever Modbus adapter you use.
The baud rate is set in the VfD (see manual), but default is 9600.
Further configuration of my files:
setp pi500-vfd.0.mbslaveaddr 1
# Has to be enabled. Otherwise the VFD trips
setp pi500-vfd.0.enable 1
net spindle-cw pi500-vfd.0.run
net spindle-at-speed pi500-vfd.0.is-at-speed
net spindle-vel-cmd-rps pi500-vfd.0.commanded-frequency
net spindle-alarm pi500-vfd.0.is-alarm
net spindle-ready pi500-vfd.0.is-ready
net motor-current-scale pi500-vfd.0.motor-current => scale.0.in
setp scale.0.offset 0
setp scale.0.gain 1000
net spindle-at-speed gmoccapy.spindle_at_speed_led
net spindle-current gmoccapy.spindle_feedback_bar scale.0.out
Hi!
Form this pullrequest: https://github.com/LinuxCNC/linuxcnc/pull/1172 I understand, that you are using the wj200 module to control your PI500. Could you provide some information on how to set this up?
Your PI500 module hasn't made it into a release yet as far as I can see, otherwise I would try to use that.
Thanks, Marc