×
Forum Header
configuration help
15 Mar 2011 19:58 #7864
by cncbasher
configuration help was created by cncbasher
Hi ,
ok newbies have to start somewhere , but becoming stuck on configuration using stepconf wizard . no doubt now begins a steep learning curve with emc ! , my parallel port is configured as
pin2 x axis step
pin3 x axis direction
pin4 z axis step
pin5 z axis direction
pin7 spindle step
pin8 spindle direction
pin9 spindle enable
pin10 limit sw x
pin11 spindle index pulse
pin12 limit z
pin13 Estop
pin 14 spindle on
pin16 spindle reverse
this works perfectly well under turbocnc , but i am having problems being unable to configure the spindle both in step direction enable signals & incorporating spindle on and reverse
also emc errors out on making pin 14 spindle on . saying that another pin is spindle enable etc , which i presume is pin 9
could someone be kind enough to show how to set the spindle correctly etc
i would like to lock the spindle from being enabled on by mistake , which is why i am using the spindle step direction signals ( from a homman digispeed controller to vfd )
but open to options
Thanks
Dave
ok newbies have to start somewhere , but becoming stuck on configuration using stepconf wizard . no doubt now begins a steep learning curve with emc ! , my parallel port is configured as
pin2 x axis step
pin3 x axis direction
pin4 z axis step
pin5 z axis direction
pin7 spindle step
pin8 spindle direction
pin9 spindle enable
pin10 limit sw x
pin11 spindle index pulse
pin12 limit z
pin13 Estop
pin 14 spindle on
pin16 spindle reverse
this works perfectly well under turbocnc , but i am having problems being unable to configure the spindle both in step direction enable signals & incorporating spindle on and reverse
also emc errors out on making pin 14 spindle on . saying that another pin is spindle enable etc , which i presume is pin 9
could someone be kind enough to show how to set the spindle correctly etc
i would like to lock the spindle from being enabled on by mistake , which is why i am using the spindle step direction signals ( from a homman digispeed controller to vfd )
but open to options
Thanks
Dave
Please Log in or Create an account to join the conversation.
15 Mar 2011 22:17 #7868
by BigJohnT
Replied by BigJohnT on topic Re:configuration help
I don't see a spindle enable as one of the choices. What are you doing to create it?
John
John
Please Log in or Create an account to join the conversation.
16 Mar 2011 10:12 - 16 Mar 2011 10:14 #7881
by cncbasher
Replied by cncbasher on topic Re:configuration help
Thanks John for getting back , at the moment setting spindle as pwm give me errors see attached file , and their seems to be no way of setting step direction enable signals either for spindle use
net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value
net spindle-enable <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 50.0
setp pwmgen.0.scale 2666.66666667
setp pwmgen.0.offset 0.2
setp pwmgen.0.dither-pwm true
net spindle-on <= motion.spindle-on
net spindle-ccw <= motion.spindle-reverse
net spindle-pwm => parport.0.pin-01-out
net spindle-on => parport.0.pin-14-out
net spindle-ccw => parport.0.pin-16-out
net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value
net spindle-enable <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 50.0
setp pwmgen.0.scale 2666.66666667
setp pwmgen.0.offset 0.2
setp pwmgen.0.dither-pwm true
net spindle-on <= motion.spindle-on
net spindle-ccw <= motion.spindle-reverse
net spindle-pwm => parport.0.pin-01-out
net spindle-on => parport.0.pin-14-out
net spindle-ccw => parport.0.pin-16-out
Last edit: 16 Mar 2011 10:14 by cncbasher.
Please Log in or Create an account to join the conversation.
16 Mar 2011 10:38 #7882
by cncbasher
Replied by cncbasher on topic Re:configuration help
John
pin 14 spindle on seems to be the problem pin , changing from spindle on to say spindle cw , clears the error , although of course this is not a cure
i presume because pwm is selected it is linked to spindle enable , although i would have thought having a specific spindle on condition , is a much safer option than a zero pwm value
pin 14 spindle on seems to be the problem pin , changing from spindle on to say spindle cw , clears the error , although of course this is not a cure
i presume because pwm is selected it is linked to spindle enable , although i would have thought having a specific spindle on condition , is a much safer option than a zero pwm value
Please Log in or Create an account to join the conversation.
16 Mar 2011 12:06 #7883
by andypugh
Replied by andypugh on topic Re:configuration help
cncbasher wrote:
From your debug file:
my-mill.hal:29: Pin 'motion.spindle-on' was already linked to signal 'spindle-enable'
The problem is that you are trying to link the motion.spindle-on signal twice. You can only mention each pin once in a HAL file, though you can use signal names multiple times. (the signal name is the first thing after the net command, and you can choose them freely)
deletethen editto read
(Or, to be even more compact, you could replace all 3 of the lines I quoted with:(As a net command must have a signal name, can have only one "source" pin but can have any number of "sink" pins.)
net spindle-enable <= motion.spindle-on => pwmgen.0.enable
...
net spindle-on <= motion.spindle-on
...
net spindle-on => parport.0.pin-14-out
From your debug file:
my-mill.hal:29: Pin 'motion.spindle-on' was already linked to signal 'spindle-enable'
The problem is that you are trying to link the motion.spindle-on signal twice. You can only mention each pin once in a HAL file, though you can use signal names multiple times. (the signal name is the first thing after the net command, and you can choose them freely)
delete
net spindle-on <= motion.spindle-on
net spindle-on => parport.0.pin-14-out
net spindle-enable => parport.0.pin-14-out
(Or, to be even more compact, you could replace all 3 of the lines I quoted with:
net spindle-enable <= motion.spindle-on => pwmgen.0.enable parport.0.pin-14-out
Please Log in or Create an account to join the conversation.
16 Mar 2011 12:30 #7884
by cncbasher
Replied by cncbasher on topic Re:configuration help
Thanks for the clarification , much appricated ... i 'll take that as lesson one ! in the long book of answers
Dave
Dave
Please Log in or Create an account to join the conversation.
16 Mar 2011 13:29 #7885
by BigJohnT
Replied by BigJohnT on topic Re:configuration help
This should jump start your HAL knowledge :
www.linuxcnc.org/docview/html/hal_basic_hal.html
Glad to see you got it sorted out.
John
www.linuxcnc.org/docview/html/hal_basic_hal.html
Glad to see you got it sorted out.
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.090 seconds