Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:38:20 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Oxy Fuel preheat time in Mach3
Pages: 1   Go Down
Print
Author Topic: Oxy Fuel preheat time in Mach3  (Read 614 times)
0 Members and 2 Guests are viewing this topic.
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« on: February 23, 2011, 04:10:58 PM »

Hi, I have a home made oxy fuel cutting cnc machine 5ft x 10ft, i have made several test cuts and seems to work well, but I have a little problem with the preheat.

I´m draw in Autocad, then i put the DXF file in ProNest and there generate the G-Code for Mach3, ok all fine but but i no have idea how set the preheat dely time before the machine start the cut.

For the moment y try with this: I modify the file C:\Mach3\macros\plasma\m4.m1s

Sleep 25000 (this example is for a delay of 25 seconds)
activateSignal(OUTPUT1) (this activate the selenoid to open the oxigen)
Sleep 1000 (I use this time for the initail penetracion before machine moves)

This method works for me, but i don't like!!!, anybody know a better method? or a screenset with a DRO to put that time in seconds or someting like that?

sorry for my bad english, tanks

this is my machine and a sample cuts in .250 inch


* DSCN4884.JPG (127.17 KB, 1280x960 - viewed 80 times.)

* DSCN4882.JPG (83.98 KB, 1280x960 - viewed 64 times.)
« Last Edit: February 23, 2011, 04:26:14 PM by gzm.pepe » Logged
Hood
Active Member

Online Online

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #1 on: February 23, 2011, 04:45:29 PM »

You could have a user DRO (or several) on the screen and have your M4 macro look to it for its value.
Hood
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #2 on: February 23, 2011, 04:50:19 PM »

You could have a user DRO (or several) on the screen and have your M4 macro look to it for its value.
Hood

thanks Hood, you can tell me the script can use for do that?
Logged
Hood
Active Member

Online Online

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #3 on: February 23, 2011, 04:59:34 PM »

Not great at VB but something like this MIGHT WORK

DRO1 = GetUserDRO(2222)
DRO2 = GetUserDRO(2223)

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


Hood



Logged
rrc1962
Active Member

Offline Offline

Posts: 434


View Profile
« Reply #4 on: February 23, 2011, 06:45:19 PM »

The G code for a dwell is "G4 P1".  1 being the number of seconds to delay.  If Mach is set to dwell in milliseconds, you would use 1000 to represent 1 second.  You could have your CAM drop the G4 in the program or have your CAM insert a macro.  A macro might look something like this...DRO1234 would be a user DRO where you enter the dwell time.

code "G4 P" & getUserDRO(1234)

You could use the same code inside the M3 macro, but I prefer having it separate.
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #5 on: February 23, 2011, 06:52:50 PM »

Not great at VB but something like this MIGHT WORK

DRO1 = GetUserDRO(2222)
DRO2 = GetUserDRO(2223)

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


Hood





Thanks Hood you are my hero!! works perfect,
Logged
Johnny Storm
Active Member

Offline Offline

Posts: 105



View Profile
« Reply #6 on: February 23, 2011, 06:53:58 PM »

The G code for a dwell is "G4 P1".  1 being the number of seconds to delay.  If Mach is set to dwell in milliseconds, you would use 1000 to represent 1 second.  You could have your CAM drop the G4 in the program or have your CAM insert a macro.  A macro might look something like this...DRO1234 would be a user DRO where you enter the dwell time.

code "G4 P" & getUserDRO(1234)

You could use the same code inside the M3 macro, but I prefer having it separate.

Thanks rrc1962 it's a great solution too
Logged
Hood
Active Member

Online Online

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #7 on: February 23, 2011, 07:21:36 PM »

Ha ha well I am amased VB that IO wrote works first attempt Grin
Hood
Logged
Hood
Active Member

Online Online

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #8 on: February 23, 2011, 08:20:59 PM »

oops clumsy fingers, must have hit the I and O key at the same time, should have just been I.
Hood
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!