Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:17:59 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  System wait for manual input to Cycle Start
Pages: 1   Go Down
Print
Author Topic: System wait for manual input to Cycle Start  (Read 640 times)
0 Members and 2 Guests are viewing this topic.
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« on: March 16, 2011, 12:06:28 PM »

I made a Screenset for a cnc table with plasma and oxyfuel torch, this screenset have 2 DRO´s one for preheating time and the other for the pierce time. When I cut with oxifuel I put the torch over the plate and I count the seconds for a hot red dot for cutting, then y move the torch away the plate and put that seconds in the DRO for preheating... now im redy to cut some shapes in this plate.Ok that´s fine, but i want a alternative method for preheating ando cuting without using the anterior method of puting seconds in the DRO.

For example if I want to cut a shape with some holes, I want to decide when is the correct moment for cutting for each hole Basing Im seeing the hot red dot and then press a key in ma joypad to start for example the CycleStart Button. Im trying to make a Macro for that, something like this:

m4.m1s :
DRO1 = GetUserDRO(2222) * 1000
DRO2 = GetUserDRO(2223) * 1000

If (DRO1) = 0 Then

SystemWaitFor DoOEMButton (1000)

Else

Sleep (DRO1)
activateSignal(OUTPUT1)
Sleep (DRO2)

End If



* Screenset_oxyfuel_plasma.JPG (245.83 KB, 800x640 - viewed 97 times.)
Logged
KTM
Active Member

Offline Offline

Posts: 87



View Profile
« Reply #1 on: March 18, 2011, 12:10:20 AM »

It is quite simple to do this in Mach - Just set your pierce delay at 99 sec and when the plate is heated sufficiently press Cycle start and the code will continue from the next line.
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #2 on: March 18, 2011, 09:22:38 AM »

It is quite simple to do this in Mach - Just set your pierce delay at 99 sec and when the plate is heated sufficiently press Cycle start and the code will continue from the next line.

I try it and not work for me, I put a big number like 99 seconds for preheat time, but when I press the cycle start button nothing hapend, the system not moves before that time is passed Sad

another suggestion?
Logged
KTM
Active Member

Offline Offline

Posts: 87



View Profile
« Reply #3 on: March 18, 2011, 12:08:41 PM »

Post your g-code and XML - Then I will have a look at it.
Logged
Overloaded
Global Moderator
*
Offline Offline

Posts: 3,072



View Profile
« Reply #4 on: March 18, 2011, 12:13:18 PM »

Could you simply place an M1 at the appropriate place in your code ?
Then when red and ready, hit Cycle Start.
May be too simple .... that's the way I think.
Russ
Logged

"I haven't failed. I've just found 10,000 ways that won't work."         Edison

"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #5 on: March 18, 2011, 01:02:24 PM »

Post your g-code and XML - Then I will have a look at it.

Yes here is an example of g-code file generate with Pronest8 and the XML file of Mach3 I use.

* g-code brida.txt (0.74 KB - downloaded 48 times.)
* -Plasma-.xml (106.12 KB - downloaded 42 times.)
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #6 on: March 18, 2011, 01:07:59 PM »

Could you simply place an M1 at the appropriate place in your code ?
Then when red and ready, hit Cycle Start.
May be too simple .... that's the way I think.
Russ

thanks looks like a good solution, but I place the M1 code manually in the g-code every time right? i wish something more automated, for easy to use and fast cuts.
Logged
KTM
Active Member

Offline Offline

Posts: 87



View Profile
« Reply #7 on: March 18, 2011, 03:42:34 PM »

For the pierce delay try using G4 P99 (G4 is dwell and The P is the dwell time), Then the cycle start will will work to continue to the next line.
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #8 on: March 18, 2011, 10:00:50 PM »

For the pierce delay try using G4 P99 (G4 is dwell and The P is the dwell time), Then the cycle start will will work to continue to the next line.

KTM Thankyou very much, i made it, i modify my M4 macro with this:

DRO1 = GetUserDRO(2222) ‘ this is the preheat time
DRO2 = GetUserDRO(2223) * 1000 ‘ this is the pierce time

code ("G4 P" & DRO1)
ActivateSignal(OUTPUT1) ‘ this output activate the selenoid to open the oxigen for cutting
Sleep (DRO2)


Now when i preheating and I choose too many seconds I can skip pressing the Cycle Start button.

Thanks greetings from México
« Last Edit: March 18, 2011, 10:02:55 PM by gzm.pepe » Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!