- Posts: 13
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I tried this spindle config and I get the following error - ./remora-ec500.hal:79: Ini variable '[SPINDLE_0]RPM_GAIN' not found. Would you or anyone else know what might be wrong and how to fix it?thanks vp, that will save us a lot of work. we need to archive this shit for the repo or something
darkpheonix - that is good to hear
spyder - this is my WIP remora spindle template (no encoder edition). murphy is also using it. some might be duplicate to what you have now
Code:######################################################################################### # Remora Spindle hal remora_spindle.hal # # this hal file includes the following # - connecting Remora outputs to LinuxCNC motion spindle.0 enable/direction # - connecting spindle signals to LinuxCNC motion spindle.0 pins # - converting the LinuxCNC motion spindle.0.speed-out-abs to signal with scale # - connecting converted LinuxCNC motion spindle.0.speed-out-abs to Remora PWM # ######################################################################################### # conenct LinuxCNC motion spindle.0 on/enable to remora output 01 net spindle-on <= spindle.0.on => remora.output.01 # conenct LinuxCNC motion spindle.0 direction to remora output 02 net spindle-cw <= spindle.0.forward => remora.output.02 # connect spindle signals to LinuxCNC motion spindle.0 net spindle-cmd-rpm <= spindle.0.speed-out net spindle-cmd-rps <= spindle.0.speed-out-rps net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs net spindle-at-speed => spindle.0.at-speed ### Connect and configure spindle PWM/0-10v signal ### ########################################################### # Spindle PWM 0-100 control # converting the LinuxCNC spindle speed output # into a useable output signal for our remora pwm component # - for pwm the math is 100/ [MAX SPINDLE RPM] = gain # 100/(5000rpm) = .02 , the gain is 0.02 ########################################################### # load a linuxCNC scale module, loadrt scale names=scale_to_rpm.0,scale-rpm addf scale-rpm servo-thread # configure spindle rpm to pwm # pwm 100 / max rpm = gain number #setp scale-rpm.gain 0.02 # 100/ rpm (5000) = .02 setp scale-rpm.gain [SPINDLE_0]RPM_GAIN # 100/ rpm (5000) = .02 # connect the LinuxCNC motion spindle.0 speed-out-abs to the pwm scale net spindle-speed-scale spindle.0.speed-out-abs => scale-rpm.in # connect pwm scale output to remora spindle pwm SP.0 net spindle-speed-abs scale-rpm.out => remora.SP.0 # Manual toolchange loadusr -W hal_manualtoolchange net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Please Log in or Create an account to join the conversation.