Machsupport Forum

Support => Downloads => MACH TOOL BOX => Topic started by: BR549 on July 16, 2010, 08:53:25 PM

Title: Plasma Auto Preset tip voltage
Post by: BR549 on July 16, 2010, 08:53:25 PM
This is a routine to be able to AUTO PRESET the tip voltage setting On your MP3000 DTHC from CandCNC FROM the gcode program. The way it works is you insert this Macro along with a P# that equals the preset tip voltage. This way you will never forget to set those values as they will auto load and notify the DTHC before the Gcode runs. It will also alert you IF you set a value lower than a safe voltage.

M549 P100     will autopreset the tip voltage to 100volts AND notify the MP3000 of the change.(;-)


**********************************************************

'M549 Auto tip voltage PRESET
PresetV = param1
None2 = Param2
None3 = Param3
SetUserDro(1036,PresetV)
Sleep(1000)
Call NotifyPlugins(25502)
If GetUserDro(136) < 50 Or PresetV <50 Then
   MsgBox("Preset Voltage is Below Minimum, Reset PARAMETER and RESTART")
   DoButton(1)
   While Ismoving()
   Sleep(10)
   Wend
   DoButton(2)
Else
End If


We are working with Les at SCam to be able to include the Macro INFO at post time based on TOOL# used for the operation.