Hello Guest it is April 19, 2024, 05:45:06 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 - Collyble

Pages: 1
1
Mach4 General Discussion / live feed
« on: May 24, 2022, 06:54:23 AM »
Dear sirs
I need to use mach 4 to drive motors that respond to sensors in real time.
Kindly let me know if the mach4 API allows for live feed from a gcode script that is generated by other software in real time
regards
Ivan

2
Thank you both for your kind attention

The request is for the situation where the machine is referenced already. As the origin of the workpiece that I have is nearly always away from the machine origin I frequently require to perform the ref all axis . Many times I do it with the spindle deep in the material as I forget to raise it before performing the ref all axis.
The sequence I follow is to lift the z axis well above the work surface then perform the X and Y ref and finally the Z which is located at the position x=0 and y=0. My z probe is adjustable and I align it with the work surface for each job.
For a tool change i would ref all axis , perform the change and perform the ref all axis function.

3
Dear all
 I would really appreciate anyone who could help me sort out this screen function I am trying to modify.
I would like the machine to perform a G0 Z20 before starting the ref all axis routine.
I tried this but it does not work
It just goes to Z20 and ignores the rest
Any help would be greatly appreciated

 mc.mcCntlGcodeExecute(inst, 'G00 Z20')
    mc.mcAxisDerefAll(inst)  --Just to turn off all ref leds
    mc.mcAxisHomeAll(inst)
    coroutine.yield() --yield coroutine so we can do the following after motion stops
    ----See ref all home button and plc script for coroutine.create and coroutine.resume
    wx.wxMessageBox('Referencing is complete')
end

Pages: 1