Hello Guest it is October 19, 2019, 07:01:43 PM

Author Topic: Assigning a port/pin to "torch up/torch down"  (Read 17936 times)

0 Members and 1 Guest are viewing this topic.

Assigning a port/pin to "torch up/torch down"
« on: January 06, 2009, 05:30:23 PM »
I would like to use a digital output to control my preliminary torch height control. Im using an air cylinder to control my torch height and cant find any information on how i would assign a port/pin to that function. I can assign "coolant on/off" to that function and just add it to my G code, but im hoping theres a better way. Any help is appreciated.
Re: Assigning a port/pin to "torch up/torch down"
« Reply #1 on: January 06, 2009, 05:43:04 PM »
How do you want to activate it ? Witha a manual button press or switch to toggle up-dn ? With GCode ?
Several ways to do it depending.......
Brain, Macro pump, Macro.........
RC
Re: Assigning a port/pin to "torch up/torch down"
« Reply #2 on: January 06, 2009, 05:44:37 PM »
I have an air solenoid. Solenoid normally open, torch is up. With voltage, closed and torch down. So all i need is a voltage to drop the tip when a cut starts.
Re: Assigning a port/pin to "torch up/torch down"
« Reply #3 on: January 06, 2009, 06:53:01 PM »
Good info.....but not exactly what I meant to ask.
At what point does the cyl. go up or down ?
Is it during the program run...or do you do it manually ?
I dont have a plasma so I'm not sure how the "Preliminary Move" is meant to operate.
RC
Re: Assigning a port/pin to "torch up/torch down"
« Reply #4 on: January 07, 2009, 10:42:24 AM »
When you run a program, the torch turns on and off each time it cuts a shape from your plate. You want the torch to lower to each cut, then raise up and move to the next cut. So basically when the torch is off, you want it up, when the torch is on you want it down. But you want it to drop down a second before the torch comes on, and you want it to go up a second after it goes off. The function is to protect the torch tip from intersecting with parts you've cut that have shifted after being freed from your stock.  Right now i could manually add code throughout the G-code and assign "coolant on/off" to my height control, but that isnt ideal because i can't generate that into my code. 

If i could make the delay from "torch on" into movement, i could just use the torch on function. I just need to know how to assign a digital output to "torch on".
Re: Assigning a port/pin to "torch up/torch down"
« Reply #5 on: January 07, 2009, 11:55:22 AM »
If you are using the M3 and M5 for ON and OFF, just modify those macros to include an activation and de-activation of an output to pull inand drop the relay.

Not sure of the syntax, but will try it later.
RC

Re: Assigning a port/pin to "torch up/torch down"
« Reply #6 on: January 07, 2009, 12:20:19 PM »
Hmmmm. not sure why this is not working right.

If run through the script window, it's fine.
MDI M3 and the spindle starts imediately.

Hmmmmm, prety sure this would work in earlier revs.  ::)

RC  ???

BOTH of these work through the scripter window, but w/MDI, OUT3 never comes ON and the Spin. starts and stops immediately.
Otherwise  ::)  ::) I think it is what you are looking for.

I need a Code Monkey,
RC
« Last Edit: January 07, 2009, 02:18:19 PM by Overloaded »
Re: Assigning a port/pin to "torch up/torch down"
« Reply #7 on: January 07, 2009, 12:55:24 PM »
Hmmmm. not sure why this is not working right.

If run through the script window, it's fine.
MDI M3 and the spindle starts imediately.

Hmmmmm, prety sure this would work in earlier revs.  ::)

RC  ???

BOTH of these work through the scripter window, but w/MDI, OUT3 never comes ON and the Spin. starts and stops immediately.
Otherwise  ::)  ::) I think it is what you are looking for.

I need a Code Monkey,
RC

So what you have there "activate signal(output3)"

Would initial output 3 upon an M3 signal?  So you make the macro for M5 read "deactivate signal(output3)"?

Also, my output signal to my plasma unit will be "spindle on" and "off"?
« Last Edit: January 07, 2009, 12:59:05 PM by halkintool »
Re: Assigning a port/pin to "torch up/torch down"
« Reply #8 on: January 07, 2009, 01:05:47 PM »
If I could get it to work, I would have explained better.
I used OUTPUT3 for the coil on your Air valve.
M3 is Start or Torch ON.
OUT3 is activated first lowering your cyl.
% seconds later, the torch comes on (5 so I could easily see it)
all is well until your code hits M5.
Then the torch goes OFF and *seconds later OUT3 de-activates raising the cyl.
The ports/Pins are the easy part, need this to work first.
Might be to do with new release.
RC
Re: Assigning a port/pin to "torch up/torch down"
« Reply #9 on: January 07, 2009, 01:15:02 PM »
Do you have a link for coding basics or something? I have no experience what-so-ever.

I assume "Code G4 P5" is a code to initiate a 5 second delay?