PathPilot Lathe with 6 place turret
23 Mar 2017 23:53 #90165
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
I am getting confused now (probably trying to keep track of too many build-treads simultaneously).
Is this a parallel port setup, or a Mesa 5i25 (+ daughterboard?) setup?
Is this a parallel port setup, or a Mesa 5i25 (+ daughterboard?) setup?
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 Mar 2017 00:24 #90167
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Andy,
Sorry ,I'm trying to convert that code to work on mesa 5i25 card, not a parallel port that it was written for. I also order a 7i76 because I was running out of pins, so I'm not using a breakout board any more.
Thanks'
Brian
Sorry ,I'm trying to convert that code to work on mesa 5i25 card, not a parallel port that it was written for. I also order a 7i76 because I was running out of pins, so I'm not using a breakout board any more.
Thanks'
Brian
Please Log in or Create an account to join the conversation.
24 Mar 2017 12:27 #90191
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
If you are not using a 7i76 then the GPIO pins have names like hm2_5i25.0.gpio.003,in / .in-not
If you have a 7i76 then the GPIO pins are serially-interfaced and "belong" to the 7i76, and have names like hm2_5i25.0.7i76.0.0.gpio.003,in / in-not for inputs. Output pins only have one HAL pin, and a separate parameter to invert-output.
Do you have a HAL pin list with all the hardware connected?
If you have a 7i76 then the GPIO pins are serially-interfaced and "belong" to the 7i76, and have names like hm2_5i25.0.7i76.0.0.gpio.003,in / in-not for inputs. Output pins only have one HAL pin, and a separate parameter to invert-output.
Do you have a HAL pin list with all the hardware connected?
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 Mar 2017 12:58 #90198
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
I'm still testing on my BOB until my 7i76 board gets here. ADMIN halshow doesn't work in PathPilot, but here is what I know, My 2i25 is configured with the gecko bit file, Stepgen.0 uses pin 2 & 3 for the x ,Stepgen.2 uses pin 6 & 7 for z.
I've configured stepgen.1 as a Y axis to turn my turret ,but have know way of testing it because Pathpilot doesn't except y g codes. Is there away to test it using keyboard commands ,like page up & page down.
Thanks'
Brian
I've configured stepgen.1 as a Y axis to turn my turret ,but have know way of testing it because Pathpilot doesn't except y g codes. Is there away to test it using keyboard commands ,like page up & page down.
Thanks'
Brian
Please Log in or Create an account to join the conversation.
24 Mar 2017 13:01 #90199
by andypugh
The "traditional" LinuxCNC method should work.
With LinuxCNC running, open a separate terminal window,
halcmd -kf
show pin
show param
show funct
exit
Replied by andypugh on topic PathPilot Lathe with 6 place turret
I'm still testing on my BOB until my 7i76 board gets here. ADMIN halshow doesn't work in PathPilot,
The "traditional" LinuxCNC method should work.
With LinuxCNC running, open a separate terminal window,
halcmd -kf
show pin
show param
show funct
exit
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 Mar 2017 13:11 #90203
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
How do I open a separate window in PathPilot or how do I get linuxCNC running from a terminal ?
Thanks'
Brian
Thanks'
Brian
Please Log in or Create an account to join the conversation.
24 Mar 2017 13:14 #90205
by andypugh
I don't know. Do they hide the Linux menu bar?
Replied by andypugh on topic PathPilot Lathe with 6 place turret
How do I open a separate window in PathPilot
I don't know. Do they hide the Linux menu bar?
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 Mar 2017 21:52 #90228
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
Yes they hide the Linux menu bar. They do give you some commands from the MDI input , like HALSCOPE.
Thanks'
Brian
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
25 Mar 2017 13:47 - 25 Mar 2017 13:49 #90247
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
I reflashed the 5i25 with the 7i76v2.bit file and ran "mesaflash --device 5i25 --readhmid" to get current configuration.
Pathpilot is using stepgen.0 for the x axis and stepgen.2 for the z axis. How would I implement stepgen.1 to turn my rotational turret ?
Thanks'
Brian
Pathpilot is using stepgen.0 for the x axis and stepgen.2 for the z axis. How would I implement stepgen.1 to turn my rotational turret ?
Thanks'
Brian
Last edit: 25 Mar 2017 13:49 by brianTruck. Reason: add pinout
Please Log in or Create an account to join the conversation.
25 Mar 2017 14:27 - 25 Mar 2017 14:28 #90249
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
Is the motor in the tool changer definitely a stepper motor?
The oracchanger seems to be set up for a DC motor, the outputs are "on" and "forward"
If the motor is a stepper motor, then you would need to set the step-generator to velocity mode and pass a speed to it.
I would suggest doing this with a "mux4" HAL component.
ON + FWD = Speed1 (100 in the example)
ON + NOT_FWD = Speed2 (-20 in the example)
NOT_ON + FWD = 0
NOT_On + NOT_FWD = 0
linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html
linuxcnc.org/docs/2.7/html/man/man9/mux4.9.html
The oracchanger seems to be set up for a DC motor, the outputs are "on" and "forward"
If the motor is a stepper motor, then you would need to set the step-generator to velocity mode and pass a speed to it.
I would suggest doing this with a "mux4" HAL component.
ON + FWD = Speed1 (100 in the example)
ON + NOT_FWD = Speed2 (-20 in the example)
NOT_ON + FWD = 0
NOT_On + NOT_FWD = 0
setp hm2_5i25.0.stepgen.01.control-type 1
loadrt mux4 names=mux.turret-speed
addf mux.turret-speed servo-thread
setp mux.turret-speed in0 0
setp mux.turret-speed in1 100
setp mux.turret-speed in2 0
setp mux.turret-speed in3 -20
net turret-on oracchanger.run mux.turret-speed sel0
net turret-dir oracchanger.forward mux.turret-speed sel1
net turret-speed mux.turret-speed.out hm2_5i25.stepgen.01.velocity-cmd
# You might want to link this to tool-change request
# And possibly turn the stepper drive off when not actually changing tools
setp hm2_5i25.stepgen.01.enable 1
linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html
linuxcnc.org/docs/2.7/html/man/man9/mux4.9.html
Last edit: 25 Mar 2017 14:28 by andypugh.
The following user(s) said Thank You: brianTruck
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.087 seconds