Help needed on the best way to control a 8 position lathe turret
Moderator: cnckeith
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
the npn 4-channel optocoupler
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
Today I managed to figure out how to have the 5v logic outputs from the optical sensors send a signal to acorn on the 24v input terminals.
it required having the sensor logic 5v output turn on a npn transistor to power the optocoupler.
the electronics all work now (without using relays) I just need to make a circuit board and install everything.
Thanks For Viewing
Steve
https://www.youtube.com/watch?v=4GL9hTAqMGg
it required having the sensor logic 5v output turn on a npn transistor to power the optocoupler.
the electronics all work now (without using relays) I just need to make a circuit board and install everything.
Thanks For Viewing
Steve
https://www.youtube.com/watch?v=4GL9hTAqMGg
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 8905
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
fyi... we just updated the beta grey code plc program and instructions for lathe turrets.
https://www.centroidcnc.com/centroid_di ... s_rev2.zip
from this thread..
viewtopic.php?f=63&t=1340&p=7671#p7671
https://www.centroidcnc.com/centroid_di ... s_rev2.zip
from this thread..
viewtopic.php?f=63&t=1340&p=7671#p7671
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
Thanks Keith
I am about ready to begin with the software
I want to copy my entire directory to a flash drive first.
I am also going to make a circuit board instead of the breadboard I was using in the last video.
I know nothing about coding or electronics so everything requires a lot of looking up and YouTube.
Steve
I am about ready to begin with the software
I want to copy my entire directory to a flash drive first.
I am also going to make a circuit board instead of the breadboard I was using in the last video.
I know nothing about coding or electronics so everything requires a lot of looking up and YouTube.
Steve
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
my first attempt at installing the tool change software was a total failure
was late i should have just stopped...
I was installing gray logic 2 outputs software and when i got to setting the inputs and outputs in wizard the choices were not available.
I was too tired I will start over today.
I also didn't realize relays 1 and 2 are the originals on my acorn board, the wiring shows them in the relay block.
inputs and outputs not in wizard choices:
ToolTurretPosBit1
ToolTurretPosBit2
ToolTurretPosBit3
ToolTurretPosBit4
RotateToolTurret
ReverseToolTurret
I assume the PLC map file didn't load
spindle OK goes to my vfd, what is drive OK , is that the fault from closed loop steppers?
I didn't post a report, I want to try to find the problem I missed a step I'm sure.
was late i should have just stopped...
I was installing gray logic 2 outputs software and when i got to setting the inputs and outputs in wizard the choices were not available.
I was too tired I will start over today.
I also didn't realize relays 1 and 2 are the originals on my acorn board, the wiring shows them in the relay block.
inputs and outputs not in wizard choices:
ToolTurretPosBit1
ToolTurretPosBit2
ToolTurretPosBit3
ToolTurretPosBit4
RotateToolTurret
ReverseToolTurret
I assume the PLC map file didn't load
spindle OK goes to my vfd, what is drive OK , is that the fault from closed loop steppers?
I didn't post a report, I want to try to find the problem I missed a step I'm sure.
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 8905
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
hello.
are you using the beta plc program?
if so,
open the schematic included with the beta grey code program, wire the machine this way.
now use the wizard to setup the cnc machine, everything except the ATC turret.
install the beta PLC program and associated files according the instructions included with the beta PLC lathe turret grey code ATC program.
now you can NOT use the Wizard from here on out! the wizard will overwrite the beta ATC plc grey code program if you do.
test and debug from here on out with the macros and CNC12.
are you using the beta plc program?
if so,
open the schematic included with the beta grey code program, wire the machine this way.
now use the wizard to setup the cnc machine, everything except the ATC turret.
install the beta PLC program and associated files according the instructions included with the beta PLC lathe turret grey code ATC program.
now you can NOT use the Wizard from here on out! the wizard will overwrite the beta ATC plc grey code program if you do.
test and debug from here on out with the macros and CNC12.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
Keith
I was not using the beta program but now i have tried it also.
the plc keeps changing my inputs for 1-4 to nc and i need them to be no for 831-838 and turret-tool-settings.txt to be correct.
I use relay 1 as forward and relay 2 as reverse, they have been output tested and working.
acorn was showing the correct tool number until i tried the one output plc and that is when the inputs 1-4 got swapped to nc.
the reason I tried the new "one output gray program" is because in the two output I could not open mdi.
here is my report
thank you
Steve
I was not using the beta program but now i have tried it also.
the plc keeps changing my inputs for 1-4 to nc and i need them to be no for 831-838 and turret-tool-settings.txt to be correct.
I use relay 1 as forward and relay 2 as reverse, they have been output tested and working.
acorn was showing the correct tool number until i tried the one output plc and that is when the inputs 1-4 got swapped to nc.
the reason I tried the new "one output gray program" is because in the two output I could not open mdi.
here is my report
thank you
Steve
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
sorry Keith I missed your previous post
I'm setting it to the side for now my head hurts lol
This crazy thing is keeping me up at night...
Everything on my lathe worked perfect until I got this crazy idea.
I need more knowledge before continuing
the electronics are sending the proper codes, the one and two output relays are working the motor correctly. acorn shows tool numbers when I make the turret rotate...
Thank You
Steve
I'm setting it to the side for now my head hurts lol
This crazy thing is keeping me up at night...
Everything on my lathe worked perfect until I got this crazy idea.
I need more knowledge before continuing
the electronics are sending the proper codes, the one and two output relays are working the motor correctly. acorn shows tool numbers when I make the turret rotate...
Thank You
Steve
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
Keith
I think you may have missed how my tool changer needs to function in my first post. I do not have a pawl. I do not need to keep the motor holding in reverse with low voltage. the stepper motor is locked when not rotating.
the motor drives the turret to the tool number position, then only past it the exact same amount it is going to reverse (0.1)to be back on the bcd value.
the motor reverses for 0.1 second then shuts off. This does not move the tool off of the position it loads a spring locking the sprag and setting bcd.
after the sensor 1 location is set the face of the turret can be unlocked to rotate the tool to the correct center line of the spindle and locked down for calibration.
I have the gray logic working showing the correct tool as the motor turns selecting the 1 or 2 output in diagnostic screen.
I have relay one, output one, turning the motor forward
I have relay two, output two, reversing the motor
I have the sprag removed for testing to keep from damaging the spring as i adjust the reverse timing for the correct amount of load.
I tried the 2 output gray logic because it turns off after it reverses.
i set 851 the time to go past to .1 second
I set 848 to 0.15 seconds of reverse before shutting off. 0.15 for backlash and the tool number should still be showing (may need to adjust time to hit tool indicator bcd. ( the sensor is changing position in reverse the tools position is not changing )
after getting all of this set up, Acorn would not let me open mdi to do a tool change, when i clicked on mdi nothing happened
aux 11 didn't seem to do anything I think it froze up .
I'll start over maybe I did something out of sequence making sure to set up my automatic tool touch off and other settings in wizard then moving on.
your assistance is greatly appreciated.
Thank You
Steve
I think you may have missed how my tool changer needs to function in my first post. I do not have a pawl. I do not need to keep the motor holding in reverse with low voltage. the stepper motor is locked when not rotating.
the motor drives the turret to the tool number position, then only past it the exact same amount it is going to reverse (0.1)to be back on the bcd value.
the motor reverses for 0.1 second then shuts off. This does not move the tool off of the position it loads a spring locking the sprag and setting bcd.
after the sensor 1 location is set the face of the turret can be unlocked to rotate the tool to the correct center line of the spindle and locked down for calibration.
I have the gray logic working showing the correct tool as the motor turns selecting the 1 or 2 output in diagnostic screen.
I have relay one, output one, turning the motor forward
I have relay two, output two, reversing the motor
I have the sprag removed for testing to keep from damaging the spring as i adjust the reverse timing for the correct amount of load.
I tried the 2 output gray logic because it turns off after it reverses.
i set 851 the time to go past to .1 second
I set 848 to 0.15 seconds of reverse before shutting off. 0.15 for backlash and the tool number should still be showing (may need to adjust time to hit tool indicator bcd. ( the sensor is changing position in reverse the tools position is not changing )
after getting all of this set up, Acorn would not let me open mdi to do a tool change, when i clicked on mdi nothing happened
aux 11 didn't seem to do anything I think it froze up .
I'll start over maybe I did something out of sequence making sure to set up my automatic tool touch off and other settings in wizard then moving on.
your assistance is greatly appreciated.
Thank You
Steve
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 143
- Joined: Wed Oct 10, 2018 8:37 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38d2697ca033-0611180974 mpu12
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: New Port Richey, Fl. USA
- Contact:
Re: Help needed on the best way to control a 8 position lathe turret
OK reloaded everything and now things are different, I can get into mdi and enter a tool number press cycle start. no movement
it says: 311 waiting for memory #9 (m101)
then it says : 327 job-cancelled
Then: atc_timeout
I'm looking up m101
any ideas
Steve
it says: 311 waiting for memory #9 (m101)
then it says : 327 job-cancelled
Then: atc_timeout
I'm looking up m101
any ideas
Steve
No Brains, No Headaches...
(Note: Liking will "up vote" a post in the search results helping others find good information faster)