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

More
10 Oct 2018 05:43 - 10 Oct 2018 05:45 #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.



Why is this?

I am using 2.8.0 pre 1

The error log is attached.

Thanks!
Attachments:
Last edit: 10 Oct 2018 05:45 by deemoss.

Please Log in or Create an account to join the conversation.

More
10 Oct 2018 06:31 #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 or Create an account to join the conversation.

More
10 Oct 2018 07:38 #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





Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Oct 2018 07:44 #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 or Create an account to join the conversation.

More
10 Oct 2018 07:46 #118629 by racedirector
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Oct 2018 09:41 #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 or Create an account to join the conversation.

More
10 Oct 2018 10:04 #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 or Create an account to join the conversation.

More
10 Oct 2018 10:31 - 10 Oct 2018 10:32 #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 :)
Last edit: 10 Oct 2018 10:32 by racedirector.
The following user(s) said Thank You: deemoss

Please Log in or Create an account to join the conversation.

More
10 Oct 2018 13:37 #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
The following user(s) said Thank You: racedirector, deemoss

Please Log in or Create an account to join the conversation.

More
11 Oct 2018 07:47 #118664 by deemoss
Thanks racedirector!

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum