Hello Guest it is April 25, 2024, 05:05:57 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.


Messages - KPfundstein

Pages: 1
1
Mach4 General Discussion / Re: G68 Angle and Probing
« on: May 12, 2020, 04:39:56 AM »
Steve i was searching fpr the limitations you described in you prost, but i could not find them ... i usesd the following Document ...

https://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Mill%20GCode%20Manual.pdf

Is ther another one ?

Thanks for your help ...

2
Mach4 General Discussion / Re: G68 Angle and Probing
« on: May 12, 2020, 04:18:38 AM »
I Managed it so far by first setting the rotation with G68 ... Afterwards i Probe and set   G92 X0 and a G92 Y0 at the Probing points. Then move to X0 and Y0 and reset the angle to 0 using G69 and reset G92 using G92.1. Then set mc.mcAxisSetPos(inst, 0 , 0)   and mc.mcAxisSetPos(inst, 1 , 0) to get X0Y0. At the end i set the agle again with G68... It seems to work, but its not "nice" way. And in the DOCs i found that G92 should not be used ... :-(  I hoped that there is a better way .....

3
Mach4 General Discussion / Re: G68 Angle and Probing
« on: May 12, 2020, 03:52:40 AM »
 Steve, but probing as usual is not the way to get the corect corner on a worpice which is not in angle. if you look athe picture for exampel.... probe P1 and P2 will end in X0Y0 at P3 and not at P4 ...  :(

4
Mach4 General Discussion / Re: G68 Angle and Probing
« on: May 12, 2020, 03:28:27 AM »
Dear Steve

if that is not possible how do i set the X0Y0 offset for a workpice? For example if i want to use the front left corner of a workpice as X0Y0 offset. Your answer would meant that it is impossible to probe that corner, if the workpice is not in 100 % in angle... So G68 would never make sense, if you cannot probe anymore ...

klaus

5
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 ...

6
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