Setting up a tool changer
Is this one of those tool changers that you always go one direction to a point that is calculated based on the current tool position and the requested tool position then back up a bit to a hard stop? I forget the name MyFord or something like that...
Boxford, maybe. You clearly need to study www.lathes.co.uk more carefully.
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
BigJohnT wrote:
Is this one of those tool changers that you always go one direction to a point that is calculated based on the current tool position and the requested tool position then back up a bit to a hard stop? I forget the name MyFord or something like that...
John
Nope, it was custom made... it indeed uses a micro controller that receives the pulses and execute the changes, as andy said.
And also, yes, we do have a position encoder and a locked indicator. I'll try to take some pictures of my machine later so that you can understand it better too.
I also will be gone for the afternoon so I can't work on this right now, but what I wanna do is study a little bit the classicladder interface and logic and try to implement my VBscript code on it.
Please Log in or Create an account to join the conversation.
What I need now is the same thing I was needing 2 months ago when we first talked.
I'm using parallel port pin 16 as the "enable" signal. (it has to be 1 while the change is being done).
And pin 17 is where I send the tool number, so if the tool is 5 I send 5 pulses there.
After the change is done, my driver will send the "change done" bit to parallel port pin 10.
Could you help me do that in classicladder?
Please Log in or Create an account to join the conversation.
For example
If tool number requested is not the same as the current tool initiate a tool change.
...
If tool change is complete and successful tell EMC that the tool change is done.
John
Please Log in or Create an account to join the conversation.
If tool number requested is not the same as the current tool, initiate a tool change.
Activate parallel port pin 16
Declare variable A == 0
While tool number requested > A do:
Activate parallel port pin 17
Wait (50 miliseconds)
Deactivate parallel port pin 17
A == A + 1
End While
When A = tool number requested, exit loop
Deactivate parallel port pin 16
Wait for input from parallel port pin 10 saying that the change is completed
Return tool change done
Please Log in or Create an account to join the conversation.
if tool change is true turn on parallel pin 16
if tool change is true start timer 1 (preset 50ms)
if timer 1 is on turn on parallel pin 17
if timer 1 is done
and tool requested is equal to current tool
and parallel pin 10 is on return tool change done
if timer 1 is done and tool requested is not equal to current tool reset timer 1
The part that is sketchy to me is how do you know what tool is current after each move?
John
Please Log in or Create an account to join the conversation.
That's why I used the increasing variable A, because I need the parallel pin 17 to pulse as many times as my tool number, so if T6 is called, it should loop 6 times, without readying anything from my machine.
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
You said I should put the requested tool number in the preset of the counter. I don't understand how can I do that. I've linked iocontrol.0.tool-prep-number with classicladder.0.s32in-01 on my custom.clp file, so I've tried to put %IW1 as the preset of the timer but it doesn't accept it. Is that the way or am I missing something here?
Please Log in or Create an account to join the conversation.