NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
Forum Header
  • Page:
  • 1

TOPIC: configuration help

configuration help 15 Мар 2011 12:58 #7864

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 689
  • Thank you received: 30
  • Karma: 53
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
The administrator has disabled public write access.

Re:configuration help 15 Мар 2011 15:17 #7868

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
I don't see a spindle enable as one of the choices. What are you doing to create it?

John
The administrator has disabled public write access.

Re:configuration help 16 Мар 2011 03:12 #7881

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 689
  • Thank you received: 30
  • Karma: 53
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 This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 16 Мар 2011 03:14 by cncbasher.
The administrator has disabled public write access.

Re:configuration help 16 Мар 2011 03:38 #7882

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 689
  • Thank you received: 30
  • Karma: 53
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
The administrator has disabled public write access.

Re:configuration help 16 Мар 2011 05:06 #7883

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4146
  • Thank you received: 141
  • Karma: 130
cncbasher wrote:
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
then edit
net spindle-on => parport.0.pin-14-out
to read
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
(As a net command must have a signal name, can have only one "source" pin but can have any number of "sink" pins.)
The administrator has disabled public write access.

Re:configuration help 16 Мар 2011 05:30 #7884

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 689
  • Thank you received: 30
  • Karma: 53
Thanks for the clarification , much appricated ... i 'll take that as lesson one ! in the long book of answers

Dave
The administrator has disabled public write access.

Re:configuration help 16 Мар 2011 06:29 #7885

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
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
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 1.111 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.