v2.8.0 - Pin 'motion.spindle-forward' does not exist
10 Oct 2018 05:43 - 10 Oct 2018 05:45 #118620
by deemoss
v2.8.0 - Pin 'motion.spindle-forward' does not exist was created 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!
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!
Last edit: 10 Oct 2018 05:45 by deemoss.
Please Log in or Create an account to join the conversation.
- racedirector
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 42
10 Oct 2018 06:31 #118623
by racedirector
Replied by racedirector on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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
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.
10 Oct 2018 07:38 #118627
by deemoss
Replied by deemoss on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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!
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!
Please Log in or Create an account to join the conversation.
- racedirector
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 42
10 Oct 2018 07:44 #118628
by racedirector
Replied by racedirector on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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.
- racedirector
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 42
10 Oct 2018 07:46 #118629
by racedirector
Replied by racedirector on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
Please Log in or Create an account to join the conversation.
10 Oct 2018 09:41 #118630
by deemoss
Replied by deemoss on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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
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.
10 Oct 2018 10:04 #118631
by deemoss
Replied by deemoss on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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.
- racedirector
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 42
10 Oct 2018 10:31 - 10 Oct 2018 10:32 #118633
by racedirector
Replied by racedirector on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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
<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.
10 Oct 2018 13:37 #118640
by PCW
Replied by PCW on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
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
(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.
11 Oct 2018 07:47 #118664
by deemoss
Replied by deemoss on topic v2.8.0 - Pin 'motion.spindle-forward' does not exist
Thanks racedirector!
Please Log in or Create an account to join the conversation.
Time to create page: 0.132 seconds