Hello Guest it is March 29, 2024, 08:57:25 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SolidPro

Pages: 1
1
General Mach Discussion / Plasma Torch Start Macro
« on: July 07, 2015, 06:40:03 PM »
Hello everyone.  I have been working on a M4 macro to start the torch on a plasma table running Mach3.  I think I've finally worked out all of the problems with it and would like to know how well you think it is written.

I look forward to hear what everyone has to say.

------------------------------------

'Macro to start plasma torch

'Checks dry run status
If GetOEMLED(52)Then
 Message "Dry Run"
Else

'Define
 Const PierceDlyDro = 177
 Dim PierceDly

'Read the PierceDlyDro
PierceDly = (GETOEMDRO(PierceDlyDro)* 1000)
Message "Using Pierce Delay of: " & (GETOEMDRO(PierceDlyDro)) & " Seconds"

'Main
DeActivateSignal(Output2)   'Turns off Rotary Cutter
ActivateSignal(Output3)   'Lowers head
Sleep (1000)   'Wait 1 second for the Torch Head to lower
StartTHC()
ActivateSignal (Output1)   'Turns on Torch
Sleep(GETOEMDRO(PierceDlyDro)* 1000)   'Pauses for pierce delay interval

'Wait for Arc OK signal
i = 0
While (Not GetOEMLED(36)) And (i < 400)   'Wait for Arc OK or 4 seconds
  sleep 10
  i = i + 1
Wend

'Arc OK/ No Arc routine
If GetOEMLED(36) Then
  Message "Arc Started"
 Else
  Message "Arc Failed"
  DeActivateSignal(Output1)   'Turn off torch
  DeActivateSignal(Output3)   'Raise head
  Code ("M30")
 END IF

end if

2
VB and the development of wizards / Programing Question
« on: May 07, 2014, 08:13:00 PM »
I am working on a custom Homing/Referencing script and would like help with some code.

In my script I want to pause the code to wait for the referencing process to finish. The code that I am using is:

DoOemButton(1023)   'Home Y
While IsMoving
Sleep(1000)
Wend

This code was developed from a number of examples from the forum but it does not seem right to me.

The way I would translate it would be;  While the machine is still homing the Y axis wait 1 second and then run the rest of the code.  

What I want to do is wait until the referencing process is complete and then run the rest of the code.

Is this code correct?

Is there a better way to write this script?


3
General Mach Discussion / CNC Plasma setu.p
« on: November 04, 2013, 11:33:32 AM »
I am setting up a CNC Plasma machine and am unsure of the best way to handle two items.  I have tried looking them up on the forum and not found what I am looking for.  Any help would be greatly appreciated.

The first is how to handle an 'OK to move' signal.  My plasma controller system contains a set of contacts that close once plasma torch is on and functioning properly. if for some reason the arch fails these contacts open to stop movement until the torch is functioning properly.  What I am unsure about is how do I interface this with Mach to work properly and in a way that is consistent with the operation of other plasma machines?

The second item has to do with raising and lowering the head.  On my machine the head is raised or lowered by an air cylinder.  Though I could use coolant pump circuit to implement this,I would prefer to integrate it into the code that starts and stops the torch head. Do I accomplish this through a macro, a brains file, or some other way.

Pages: 1