PathPilot Lathe with 6 place turret
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 7
22 Mar 2017 01:18 - 22 Mar 2017 01:19 #90040
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Thanks' Chris
I have it moving , Z is moving backwards and seems to need input from spindle to run at constant speed. Here is first test video.
Thanks'
Brian
I have it moving , Z is moving backwards and seems to need input from spindle to run at constant speed. Here is first test video.
Thanks'
Brian
Last edit: 22 Mar 2017 01:19 by brianTruck.
The following user(s) said Thank You: Lcvette
Please Log in or Create an account to join the conversation.
22 Mar 2017 02:28 #90045
by Lcvette
That's awesome! Guessing that's the Constant Surface Speed requiring the spindle input for movement?
Replied by Lcvette on topic PathPilot Lathe with 6 place turret
Thanks' Chris
I have it moving , Z is moving backwards and seems to need input from spindle to run at constant speed. Here is first test video.
Thanks'
Brian
That's awesome! Guessing that's the Constant Surface Speed requiring the spindle input for movement?
Please Log in or Create an account to join the conversation.
22 Mar 2017 11:56 #90059
by andypugh
The simple answer to that is to invert the "dir" pin, but making the stepgen scale negative is probably better.
Replied by andypugh on topic PathPilot Lathe with 6 place turret
Thanks' Chris
I have it moving , Z is moving backwards
The simple answer to that is to invert the "dir" pin, but making the stepgen scale negative is probably better.
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: 107
- Thank you received: 7
22 Mar 2017 12:24 #90064
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Chris,
Yes that is the constant surface speed in action. My lathe has only a index pulse on the spindle and I'm trying to figure out how to make that work with the CSS. PathPilot see's my index pulse on the z input of the spindle encoder.
Andy,
Made stepgen scale negative and now it's going the right way.
Thanks'
Brian
Yes that is the constant surface speed in action. My lathe has only a index pulse on the spindle and I'm trying to figure out how to make that work with the CSS. PathPilot see's my index pulse on the z input of the spindle encoder.
Andy,
Made stepgen scale negative and now it's going the right way.
Thanks'
Brian
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 7
23 Mar 2017 00:20 - 23 Mar 2017 12:11 #90096
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
So i disabled the CSS by calling a M51 P1 in the g-code. So I now have the same lathe I had in Mach3 ,except it's faster, smother and has a nicer interface. This is when the gray hairs start growing.
My first order of business is to get the tool changer working. I see that PathPilot calls a function (is function the right name) called tormachltc in hal. This function appears to be already compiled so there is know messing with it (I think).
What is the proper way to write and call a function from hal ?
edit:
I read the full documentation on this turret code and it fully describes how to implement it.
wiki.linuxcnc.org/uploads/oracchanger.comp
But where is timedelay2.comp
Thanks'
Brian
My first order of business is to get the tool changer working. I see that PathPilot calls a function (is function the right name) called tormachltc in hal. This function appears to be already compiled so there is know messing with it (I think).
What is the proper way to write and call a function from hal ?
edit:
I read the full documentation on this turret code and it fully describes how to implement it.
wiki.linuxcnc.org/uploads/oracchanger.comp
But where is timedelay2.comp
Thanks'
Brian
Last edit: 23 Mar 2017 12:11 by brianTruck. Reason: add turret link
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 7
23 Mar 2017 13:43 #90118
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Where does PathPilot hide the pin assignments for step & direction. I know what pins they are using ,but for life of me I cannot figure out how they set them.
The input pins stand out like this - hm2_5i25.0.gpio.003.in_not
Brian
The input pins stand out like this - hm2_5i25.0.gpio.003.in_not
Brian
Please Log in or Create an account to join the conversation.
23 Mar 2017 13:54 #90119
by PCW
Replied by PCW on topic PathPilot Lathe with 6 place turret
Stepgen (and PWM,Encoder etc) pins are determined by the specific
FPGA configuration you are using, so stepgens are addressed by number
( 0..N ) in hal
FPGA configuration you are using, so stepgens are addressed by number
( 0..N ) in hal
The following user(s) said Thank You: brianTruck
Please Log in or Create an account to join the conversation.
23 Mar 2017 19:31 #90146
by Lcvette
Replied by Lcvette on topic PathPilot Lathe with 6 place turret
Out of curiosity, I would assume that if pathpilot is preconfigured for most functionality already, would it make the most sense to replicate their connections to avoid alot of "coding" programming for those of us very nervous about doing such things? And is there a list of connections for the tormach machines to make that easier?
As much as I hate wiring, I would be much more comfortable going through my control cabinet to mimic pathpilot than trying to program everything around from the looks of it.
Thanks,
Chris
As much as I hate wiring, I would be much more comfortable going through my control cabinet to mimic pathpilot than trying to program everything around from the looks of it.
Thanks,
Chris
Please Log in or Create an account to join the conversation.
23 Mar 2017 19:38 #90149
by andypugh
I think this makes sense, especially as moving step/dir pins around with a 5i25 means recompiling FPGA firmware...
Have you worked out which pin is which with the installed firmware yet?
Replied by andypugh on topic PathPilot Lathe with 6 place turret
Out of curiosity, I would assume that if pathpilot is preconfigured for most functionality already, would it make the most sense to replicate their connections to avoid alot of "coding" programming
I think this makes sense, especially as moving step/dir pins around with a 5i25 means recompiling FPGA firmware...
Have you worked out which pin is which with the installed firmware yet?
Please Log in or Create an account to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 7
23 Mar 2017 23:05 - 24 Mar 2017 00:29 #90164
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
So the 2 lines I've highlighted should be the only 2 that control the steppper on stepgen 0 , right ?
# loading the toolchange and timedelay2 components in .hal file
###############################################################
loadrt oracchanger
addf oracchanger servo-thread
loadrt timedelay count=1
addf timedelay.0 servo-thread
# will wait 5 secs approx and turn motor off after reversing against stop
setp timedelay.0.on-delay 5
net tool-change iocontrol.0.tool-change => oracchanger.toolchange
net tool-changed iocontrol.0.tool-changed <= oracchanger.toolchanged
net tool-number iocontrol.0.tool-prep-number => oracchanger.toolnumber
net tool-oldnumber iocontrol.0.tool-number => oracchanger.currenttoolnumber
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net sig1 oracchanger.opto1 <= parport.x.pin-xx-in <<<<< these 3 need to be 5i25 inputs
net sig2 oracchanger.opto2 <= parport.x.pin-xx-in
net sig3 oracchanger.opto3 <= parport.x.pin-xx-in
net sig-forward oracchanger.forward => parport.x.pin-xx-out <<<<<these 2 need to be 5i25 stepgen.1 ,right ?
net sig-run oracchanger.run => parport.x.pin-xx-out <<<<<<
net xhomed axis.0.homed => oracchanger.ishomedX
net zhomed axis.2.homed => oracchanger.ishomedZ
net delaystart timedelay.0.in <= oracchanger.delaystart
net delaydone timedelay.0.out => oracchanger.delaydone
# if the delay is too long in switching relays for forward and reverse
# setp oracchanger.times 300
# for instance will make it shorter, default is 500 - about 1-2 secs on my system
################################################################################
Thanks'
Brian
# loading the toolchange and timedelay2 components in .hal file
###############################################################
loadrt oracchanger
addf oracchanger servo-thread
loadrt timedelay count=1
addf timedelay.0 servo-thread
# will wait 5 secs approx and turn motor off after reversing against stop
setp timedelay.0.on-delay 5
net tool-change iocontrol.0.tool-change => oracchanger.toolchange
net tool-changed iocontrol.0.tool-changed <= oracchanger.toolchanged
net tool-number iocontrol.0.tool-prep-number => oracchanger.toolnumber
net tool-oldnumber iocontrol.0.tool-number => oracchanger.currenttoolnumber
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net sig1 oracchanger.opto1 <= parport.x.pin-xx-in <<<<< these 3 need to be 5i25 inputs
net sig2 oracchanger.opto2 <= parport.x.pin-xx-in
net sig3 oracchanger.opto3 <= parport.x.pin-xx-in
net sig-forward oracchanger.forward => parport.x.pin-xx-out <<<<<these 2 need to be 5i25 stepgen.1 ,right ?
net sig-run oracchanger.run => parport.x.pin-xx-out <<<<<<
net xhomed axis.0.homed => oracchanger.ishomedX
net zhomed axis.2.homed => oracchanger.ishomedZ
net delaystart timedelay.0.in <= oracchanger.delaystart
net delaydone timedelay.0.out => oracchanger.delaydone
# if the delay is too long in switching relays for forward and reverse
# setp oracchanger.times 300
# for instance will make it shorter, default is 500 - about 1-2 secs on my system
################################################################################
Thanks'
Brian
Last edit: 24 Mar 2017 00:29 by brianTruck. Reason: added inputs
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.116 seconds