PathPilot Lathe with 6 place turret
15 May 2017 21:10 #93241
by dnh2000
Replied by dnh2000 on topic PathPilot Lathe with 6 place turret
Thanks Brian!
Do you also have the files needed for the oracchanger?
I got the spinde speed encoder working on my old hal file, I will post the HAL config when I get it working again.
What input signal do you have from your encoder?
Do you also have the files needed for the oracchanger?
I got the spinde speed encoder working on my old hal file, I will post the HAL config when I get it working again.
What input signal do you have from your encoder?
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
16 May 2017 11:25 #93256
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Here is the version I'm currently using
forum.linuxcnc.org/pathpilot/32511-pathp...urret?start=80#91370
Brian
forum.linuxcnc.org/pathpilot/32511-pathp...urret?start=80#91370
Brian
Please Log in or Create an account to join the conversation.
12 Jul 2017 13:15 #95728
by dnh2000
Replied by dnh2000 on topic PathPilot Lathe with 6 place turret
How is the convertion going BrianTuck?
My machine is now up and running thanks to your Hal file.
I had to rewrite the Comp file for my turret to get the toolchange to work.
My machine is now up and running thanks to your Hal file.
I had to rewrite the Comp file for my turret to get the toolchange to work.
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
19 Jul 2017 12:08 - 19 Jul 2017 12:09 #96051
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Nice to hear your up and running.
Sorry about the delayed response ,I haven't had time to work on it lately as it's my busy season.
I still need to get the return home on tool change and get the spindle speed hooked up
Brian
Sorry about the delayed response ,I haven't had time to work on it lately as it's my busy season.
I still need to get the return home on tool change and get the spindle speed hooked up
Brian
Last edit: 19 Jul 2017 12:09 by brianTruck.
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
24 Jan 2018 21:48 #104979
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Ok ,back to the grindstone.
I fire up the controller and send x and z home and then set g30. I move up to my work-piece set z to zero and x to 1" (the material diameter). When I go into offset's and click touch tool I get a "invalid diameter" error , I've tried -1 for the diameter also. I also notice that the green leds never light up by the x and z dro's.
Thanks' Brian
I fire up the controller and send x and z home and then set g30. I move up to my work-piece set z to zero and x to 1" (the material diameter). When I go into offset's and click touch tool I get a "invalid diameter" error , I've tried -1 for the diameter also. I also notice that the green leds never light up by the x and z dro's.
Thanks' Brian
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
29 Jan 2018 01:20 #105138
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Oh i see, you have to manually enter the offset and then click touch tool.
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
03 Feb 2018 02:13 #105350
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Here is the start of getting my spindle speed input. I got a stock martin gear and bored it out to fit my spindle. Then i fabricated a mounting bracket and bearing block to mount encoder.
Brian
Brian
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
03 Feb 2018 22:19 #105376
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
What is the proper way to get the high speed encoder input from the 7i76 ? Is this right?
net spindle-phase-A <= hm2_5i25.0.7i76.0.0.input-12
net spindle-phase-B <= hm2_5i25.0.7i76.0.0.input-13
net spindle-phase-Z <= hm2_5i25.0.7i76.0.0.input-11
Thanks'
Brian
net spindle-phase-A <= hm2_5i25.0.7i76.0.0.input-12
net spindle-phase-B <= hm2_5i25.0.7i76.0.0.input-13
net spindle-phase-Z <= hm2_5i25.0.7i76.0.0.input-11
Thanks'
Brian
Please Log in or Create an account to join the conversation.
03 Feb 2018 23:13 - 03 Feb 2018 23:14 #105378
by PCW
Replied by PCW on topic PathPilot Lathe with 6 place turret
No, that gives you access to the encoder input pins,
bypassing the encoder hardware.
To use the high speed counter for the spindle, you use the hardware encoder position pins:
hm2_5i25.0.encoder.00.position
The position number will only be valid if the encoder scale is set, for example:
setp hm2_5i25.0.encoder.00.scale 4096
( that would be appropriate for a 1024 PPR encoder = 4096 quadrature counts per turn )
bypassing the encoder hardware.
To use the high speed counter for the spindle, you use the hardware encoder position pins:
hm2_5i25.0.encoder.00.position
The position number will only be valid if the encoder scale is set, for example:
setp hm2_5i25.0.encoder.00.scale 4096
( that would be appropriate for a 1024 PPR encoder = 4096 quadrature counts per turn )
Last edit: 03 Feb 2018 23:14 by PCW.
The following user(s) said Thank You: brianTruck
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 7
04 Feb 2018 13:51 #105399
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Thanks' PCW ,
here is the full code to read encoder. The scale was buried in the ini file. The trouble shooting leds never light up.
########################################################################
# Spindle Encoder
########################################################################
setp hm2_5i25.0.encoder.00.counter-mode 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
setp hm2_5i25.0.encoder.00.filter 1
# see 'man hostmot2' for descriptions
setp hm2_5i25.0.encoder.00.index-mask 0
net spindle-position hm2_5i25.0.encoder.00.position => motion.spindle-revs
net spindle-raw-velocity hm2_5i25.0.encoder.00.velocity => motion.spindle-speed-in lowpass.0.in
net spindle-velocity lowpass.0.out
net spindle-index-enable hm2_5i25.0.encoder.00.index-enable <=> motion.spindle-index-enable
# note: gpio pins only read at servo thread frequency
# these nodes are only for driving diagnostic "LEDs" in the UI
# this is only going to be useful when the spindle is rotated by hand slowly
net spindle-phase-A <= hm2_5i25.0.7i76.0.0.input-12
net spindle-phase-B <= hm2_5i25.0.7i76.0.0.input-13
net spindle-phase-Z <= hm2_5i25.0.7i76.0.0.input-11
here is the full code to read encoder. The scale was buried in the ini file. The trouble shooting leds never light up.
########################################################################
# Spindle Encoder
########################################################################
setp hm2_5i25.0.encoder.00.counter-mode 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
setp hm2_5i25.0.encoder.00.filter 1
# see 'man hostmot2' for descriptions
setp hm2_5i25.0.encoder.00.index-mask 0
net spindle-position hm2_5i25.0.encoder.00.position => motion.spindle-revs
net spindle-raw-velocity hm2_5i25.0.encoder.00.velocity => motion.spindle-speed-in lowpass.0.in
net spindle-velocity lowpass.0.out
net spindle-index-enable hm2_5i25.0.encoder.00.index-enable <=> motion.spindle-index-enable
# note: gpio pins only read at servo thread frequency
# these nodes are only for driving diagnostic "LEDs" in the UI
# this is only going to be useful when the spindle is rotated by hand slowly
net spindle-phase-A <= hm2_5i25.0.7i76.0.0.input-12
net spindle-phase-B <= hm2_5i25.0.7i76.0.0.input-13
net spindle-phase-Z <= hm2_5i25.0.7i76.0.0.input-11
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.129 seconds