v2.8.0 - Pin 'motion.spindle-forward' does not exist

More
8 years 3 weeks ago #118620 by deemoss
Hi guys,

I am trying to control the spindle with rs485 according to these instructions buildyourcnc.com/FAQ/13271 .

However, as I run LinuxCNC I get the error "./custom.hal:10: Pin 'motion.spindle-forward' does not exist". Also, when I execute the halcmd in terminal I get the same error.

Attachment not found



Why is this?

I am using 2.8.0 pre 1

The error log is attached.

Thanks!

Please Log in to join the conversation.

More
8 years 3 weeks ago #118623 by racedirector
Ran across the same thing, motion has changed for 2.8

You will need to change all spindle references to spindle.xxx

spindle.forward should fix your particular issue.

Cheers

Please Log in to join the conversation.

More
8 years 3 weeks ago #118627 by deemoss
Thanks racedirector,

I tried the below with no luck. Also should't I see a "spindle" component in the halshow (see screenshot)?

net spindle-cw spindle.0.forward => vfd.spindle-forward
> Pin 'spindle.0.forward' does not exist

and
net spindle-cw halui.spindle.0.forward => vfd.spindle-forward
> Pin 'halui.spindle.0.forward' does not exist

Attachment not found



Attachment not found



Thanks!

Please Log in to join the conversation.

More
8 years 3 weeks ago #118628 by racedirector
spindle is actually part of motion, take a look at motion in the 2.8 docs, thats how I found it.

Please Log in to join the conversation.

More
8 years 3 weeks ago #118629 by racedirector

Attachment not found

Please Log in to join the conversation.

More
8 years 3 weeks ago #118630 by deemoss
Still no joy

dimos@lcnc ~ $ halrun
halcmd: loadusr -Wn vfd hy_vfd -n vfd -d /dev/ttyUSB0 -p none -r 9600
halcmd: net spindle-cmd-rpm-abs => vfd.speed-command
halcmd: net spindle-cw motion.spindle.0.forward => vfd.spindle-forward
<stdin>:3: Pin 'motion.spindle.0.forward' does not exist

Please Log in to join the conversation.

More
8 years 3 weeks ago #118631 by deemoss
OK it worked when I run lcnc, with the changes applied to custom.hal. Why it didn't work in terminal with halcmd?

Please Log in to join the conversation.

More
8 years 3 weeks ago #118633 by racedirector
I would say because you were still using "motion." "spindle.0.xxx" doesn't use "motion." first.

<stdin>:3: Pin 'motion.spindle.0.forward' does not exist

if you took the "motion." part off this command it would probably work :)

Please Log in to join the conversation.

More
8 years 3 weeks ago #118640 by PCW
You also did not load motion (emcmot)
(you only loaded the VFD module so only VFD pins are available)

AFAIK spindle is still part of motion regardless of any name changes

Please Log in to join the conversation.

More
8 years 2 weeks ago #118664 by deemoss
Thanks racedirector!

Please Log in to join the conversation.

Time to create page: 0.609 seconds
Powered by Kunena Forum