Hello Guest it is March 29, 2024, 08:29:17 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 - KPfundstein

Pages: 1
1
Mach4 General Discussion / G68 Angle and Probing
« on: May 10, 2020, 06:45:23 PM »
How can i set a Probing Position when an Agel is set using G68. In Detail i am tying to probe against the Y axis using an G31.1 Y 100 F 100 .. After Probe Contact i would like to set the Y koordinate to 0.
If i Use mc.mcAxisSetPos(inst, 1 , 0) it semms that the 0 position is set, but not valid for the rotation ...

2
Mach4 General Discussion / Dialog in m6 Macro not Modal
« on: April 16, 2020, 10:45:14 AM »
Hi, am trying to show a dialog during the Toolchange, to gin ethe user some option amd a status feedback. I Already tested the Macro in Debugger, and everthing works fine ...
The Problem nu is if GCode Contains an T1 M6 (for example) the Macro is called, but the dialog ist not shown Modal. If i Run the eyaple in Debugger it Shows first MessageBox, opens the dialog and after closing the dialog it shows up MessageBox 2.


During a Toolchange caused by a GCODE T1 M6 it shows First Messagebox, Dialog and Second Messagebox as soon i cloed the first one ....

I also tryed to open the dialog moda by using  dialog:ShowModal(true) which works also fine in debugger but causes an error in GCODE ...

function m6()
   dialog = wx.wxDialog(wx.NULL, wx.wxID_ANY, "Mach4 Auto Caculate Motor Counts Per Units", wx.wxDefaultPosition, wx.wxDefaultSize)
   panel = wx.wxPanel(dialog, wx.wxID_ANY)
   dialog:Connect(wx.wxEVT_CLOSE_WINDOW,
      function (event)
         dialog:Destroy()
         event:Skip()
      end)
   
   
   inst = mc.mcGetInstance()
   wx.wxMessageBox("before Toolchange Dialog")
   dialog:Centre()
   -- Show the dialog
   dialog:Show(true)
   wx.wxGetApp():MainLoop()
   
   wx.wxMessageBox("after ToolChange Dialog")
end

if (mc.mcInEditor() == 1) then
    m6()
end

Pages: 1