Automatic Tool Turret Setup
12 Feb 2021 00:34 #198462
by Barry
Automatic Tool Turret Setup was created by Barry
I was wondering if someone could please point me to a script example that would control the simple Automatic Tool Turret (ATT) on my lathe. I've done a lot of research already but haven't found an example that seems to fit my particular setup.
My ATT is overly simple. A stepper motor drives a 10:1 gearbox attached to a ratcheting rotary head with 6 cutting tools (spaced at 60 degrees). The ratcheting mechanism requires the head to move past the tool position and then reverse against a stop. There is 1 on-off switch in tool position 1 for homing.
I know Carousel is a program specifically designed for ATTs, but I'm lost on how to get it going for my setup because all of the examples I've seen require a pulse signal at each tool position. Unfortunately, I only have a index signal at tool position 1 so my setup would require the scaled position of the stepper motor to provide the pulsed signal when tool positions are reached. Also, I'm not exactly sure how to use Carousel to drive a stepper motor forwards and backwards.
My current solution is to assign the A-Axis to the ATT and call an o-code subroutine at each tool change in the G-code script. This works okay but AXIS distorts the shape of the tool on the screen (i.e. the tool is shown rotating about the X-Axis). I'd prefer not to have a distorted image of the tool on the screen.
Shown below is the O-code subroutine that I'm currently using if it helps someone.
o500 SUB
o501 if[#5400 EQ 1]
F2500 G1 A02
F100 G1 A-0
o501 endif
o502 if[#5400 EQ 2]
F2500 G1 A62
F100 G1 A-60
o502 endif
o503 if[#5400 EQ 3]
F2500 G1 A122
F100 G1 A-120
o503 endif
o504 if[#5400 EQ 4]
F2500 G1 A182
F100 G1 A-180
o504 endif
o505 if[#5400 EQ 5]
F2500 G1 A242
F100 G1 A-240
o505 endif
o506 if[#5400 EQ 6]
F2500 G1 A302
F100 G1 A-300
o506 endif
o500 ENDSUB
Thank you,
Barry
My ATT is overly simple. A stepper motor drives a 10:1 gearbox attached to a ratcheting rotary head with 6 cutting tools (spaced at 60 degrees). The ratcheting mechanism requires the head to move past the tool position and then reverse against a stop. There is 1 on-off switch in tool position 1 for homing.
I know Carousel is a program specifically designed for ATTs, but I'm lost on how to get it going for my setup because all of the examples I've seen require a pulse signal at each tool position. Unfortunately, I only have a index signal at tool position 1 so my setup would require the scaled position of the stepper motor to provide the pulsed signal when tool positions are reached. Also, I'm not exactly sure how to use Carousel to drive a stepper motor forwards and backwards.
My current solution is to assign the A-Axis to the ATT and call an o-code subroutine at each tool change in the G-code script. This works okay but AXIS distorts the shape of the tool on the screen (i.e. the tool is shown rotating about the X-Axis). I'd prefer not to have a distorted image of the tool on the screen.
Shown below is the O-code subroutine that I'm currently using if it helps someone.
o500 SUB
o501 if[#5400 EQ 1]
F2500 G1 A02
F100 G1 A-0
o501 endif
o502 if[#5400 EQ 2]
F2500 G1 A62
F100 G1 A-60
o502 endif
o503 if[#5400 EQ 3]
F2500 G1 A122
F100 G1 A-120
o503 endif
o504 if[#5400 EQ 4]
F2500 G1 A182
F100 G1 A-180
o504 endif
o505 if[#5400 EQ 5]
F2500 G1 A242
F100 G1 A-240
o505 endif
o506 if[#5400 EQ 6]
F2500 G1 A302
F100 G1 A-300
o506 endif
o500 ENDSUB
Thank you,
Barry
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
12 Feb 2021 00:38 #198464
by tommylight
The following user(s) said Thank You: Barry
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds