G76 works but not 33

More
29 Dec 2014 02:28 #54342 by PCW
Replied by PCW on topic G76 works but not 33
OK so in any case the motion.spindle-at-speed need to be looked at (with halmeter or watch)
and if its not getting set, the signals need to be traced backwards

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

More
29 Dec 2014 05:15 #54348 by TejasDragon
Replied by TejasDragon on topic G76 works but not 33
Thanks guys, I should get the time tonight to do the changes.

Henry

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

More
29 Dec 2014 09:47 #54354 by TejasDragon
Replied by TejasDragon on topic G76 works but not 33
No luck yet, just confused. I do not see how to conect signal spindle-at-speed.
I started my config over with just the StepConfig wizard and these are what it gives me
in both hal files.
Henry

************* Lathe.hal *******************************
# Generated by stepconf 1.1 at Sun Dec 28 19:29:42 2014
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg="0x278 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0
loadrt encoder num_chan=1

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf encoder.update-counters base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf encoder.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
net spindle-cmd <= motion.spindle-speed-out
net spindle-at-speed => motion.spindle-at-speed

setp encoder.0.position-scale 60.000000
setp encoder.0.counter-mode 1
net spindle-position encoder.0.position => motion.spindle-revs
net spindle-velocity encoder.0.velocity => motion.spindle-speed-in
net spindle-index-enable encoder.0.index-enable <=> motion.spindle-index-enable
net spindle-phase-a encoder.0.phase-A
net spindle-phase-b encoder.0.phase-B
net spindle-index encoder.0.phase-Z

net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net xdir => parport.0.pin-03-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out
setp parport.0.pin-14-out-invert 1
net xenable => parport.0.pin-14-out
net spindle-phase-a <= parport.0.pin-10-in
net spindle-index <= parport.0.pin-11-in

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [AXIS_2]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.1.position-cmd
net zpos-fb stepgen.1.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.1.step
net zdir <= stepgen.1.dir
net zenable axis.2.amp-enable-out => stepgen.1.enable

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared


************************ postgui.hal **************************
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel) starts

sets spindle-at-speed true

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

More
30 Dec 2014 01:17 #54370 by cncbasher
Replied by cncbasher on topic G76 works but not 33
see attached Hal file ,
and you should see the near function and how to set it etc
Attachments:

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

More
30 Dec 2014 03:53 #54380 by TejasDragon
Replied by TejasDragon on topic G76 works but not 33
Thanks guys I got it, and have backups of my config in 3 places.

Henry

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

More
30 Dec 2014 04:22 #54382 by cncbasher
Replied by cncbasher on topic G76 works but not 33
if you are stuck , attach your config as an archive ( hal and ini )
and i'll take a look

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

More
30 Dec 2014 05:34 #54388 by cmorley
Replied by cmorley on topic G76 works but not 33
By the look of the HAL files you posted - it's not the lack of the near component.
spindle-at-speed is set true in the postgui file, so linuxcnc will not wait.

As Peter said, If you check with halmeter if that pin/signal is actually true while running, when we can cross that off the list.

If you could attach _all_ the config files and even the stepconf file that would be great.
And remind me what version of linuxcnc you are using?

Chris M

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

More
30 Dec 2014 08:25 - 30 Dec 2014 08:27 #54395 by TejasDragon
Replied by TejasDragon on topic G76 works but not 33
It does seem to be working now been running in the air with it, but here is all of my configs.
I bet there is stuff in here I don't need hopefully not something that will mess with it.

linuxcnc ver. 2.6.5

Henry
Attachments:
Last edit: 30 Dec 2014 08:27 by TejasDragon.

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

Time to create page: 0.560 seconds
Powered by Kunena Forum