- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- ClassicLadder TUrret using mesa 5i25 w 7i76
ClassicLadder TUrret using mesa 5i25 w 7i76
- Jakemestre1
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 4
10 Feb 2018 05:52 #105692
by Jakemestre1
ClassicLadder TUrret using mesa 5i25 w 7i76 was created by Jakemestre1
Hello everybody,
I am trying to get my home built turret to work with linuxcnc via classic ladder. I'm a bit unsure how to even start honestly. I've checked out the example turret tutorial but I'm pretty confused about how to get this to work with the mesa 5i25/7i76 and its stepgenerator.
Here's a photo of the setup.
I've got an air cylinder that actuates the turret connected to output-03. A PNP proximity sensor on the main pulley as index connected to input-07. There's another PNP prox sensor to sense the turret closed as well. And lastly a little step/dir closed loop stepper hooked up to stepper2. It's a little mechaduino connected as a step/dir stepper. Do I need to define another stepper, say Y or A in my ini and hal files? Then what do I do about the classicladder step and dir outputs?:
net tstep <= stepgen.2.step => parport.1.pin-17-out
net tdir <= stepgen.2.dir => parport.1.pin-16-out
Any help on this would be super appreciated. I'm a complete newb when it comes to linuxcnc.
Thanks in advance.
Jake Mestre
I am trying to get my home built turret to work with linuxcnc via classic ladder. I'm a bit unsure how to even start honestly. I've checked out the example turret tutorial but I'm pretty confused about how to get this to work with the mesa 5i25/7i76 and its stepgenerator.
Here's a photo of the setup.
I've got an air cylinder that actuates the turret connected to output-03. A PNP proximity sensor on the main pulley as index connected to input-07. There's another PNP prox sensor to sense the turret closed as well. And lastly a little step/dir closed loop stepper hooked up to stepper2. It's a little mechaduino connected as a step/dir stepper. Do I need to define another stepper, say Y or A in my ini and hal files? Then what do I do about the classicladder step and dir outputs?:
net tstep <= stepgen.2.step => parport.1.pin-17-out
net tdir <= stepgen.2.dir => parport.1.pin-16-out
Any help on this would be super appreciated. I'm a complete newb when it comes to linuxcnc.
Thanks in advance.
Jake Mestre
Please Log in or Create an account to join the conversation.
11 Feb 2018 00:40 #105729
by cmorley
Replied by cmorley on topic ClassicLadder TUrret using mesa 5i25 w 7i76
Ok first what sequence of events need to be done for this to work.
Does one turn the turret open loop till a sensor fires or does it move to a position?
Does it need to be homed or do the sensors detect the absolute turret position?
Are you using a parallel port or a MESA card (I saw your other post - so probably MESA)
have you had this running with something else, if so what was the sequence used?
I like to make a list of inputs and outputs etc and what they mean.
input 1 bit index of position 1
input 2 bit turret closed
output 1bit air cylinder closed
output 2 bit step
output 3 bit direction
or
output 2 s32 position
then write a sequence of events.
Then try to duplicate in ladder programming.
Then add fault code.
Something like that anyways.
Chris M
Does one turn the turret open loop till a sensor fires or does it move to a position?
Does it need to be homed or do the sensors detect the absolute turret position?
Are you using a parallel port or a MESA card (I saw your other post - so probably MESA)
have you had this running with something else, if so what was the sequence used?
I like to make a list of inputs and outputs etc and what they mean.
input 1 bit index of position 1
input 2 bit turret closed
output 1bit air cylinder closed
output 2 bit step
output 3 bit direction
or
output 2 s32 position
then write a sequence of events.
Then try to duplicate in ladder programming.
Then add fault code.
Something like that anyways.
Chris M
Please Log in or Create an account to join the conversation.
26 Feb 2018 20:52 #106567
by andypugh
Replied by andypugh on topic ClassicLadder TUrret using mesa 5i25 w 7i76
You might be able to use just HAL and no Ladder with a G-code subroutine for the sequencing.
See the sim/axis/vismach/vmc_toolchange for a virtual machine simulation that does that.
See the sim/axis/vismach/vmc_toolchange for a virtual machine simulation that does that.
Please Log in or Create an account to join the conversation.
27 Mar 2018 23:01 #108009
by BigJohnT
Replied by BigJohnT on topic ClassicLadder TUrret using mesa 5i25 w 7i76
I have an example simulator for a lathe turret gnipsel.com/files/linuxcnc/configs/cl-turret-sim.zip it may or may not help.
JT
JT
Please Log in or Create an account to join the conversation.
- Jakemestre1
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 4
31 Mar 2018 05:50 #108164
by Jakemestre1
Replied by Jakemestre1 on topic ClassicLadder TUrret using mesa 5i25 w 7i76
Thanks guys, I really appreciate your help. I've got it running with a remapped M6 and some sweet code from Andy. I couldn't figure out how to control the position of the turret in classic ladder. I don't know if it's possible. But with some remapping and a little simple gcode with o word logic I've got it running the way I want. Thanks again for all the support.
Please Log in or Create an account to join the conversation.
29 Apr 2018 22:49 #109834
by keithmech
Replied by keithmech on topic ClassicLadder TUrret using mesa 5i25 w 7i76
any chance you could post what you did for future reference?
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- ClassicLadder TUrret using mesa 5i25 w 7i76
Time to create page: 0.067 seconds