Hello Guest it is April 19, 2024, 12:20:15 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 - jtiedeman

Pages: 1
1
I have made a large tube plasma system (40' long, up to 10" diameter with 3/8 wall thickness  ;D) and do a lot of cutoffs with it. I have a certain program that does a lot of incremental cuts in the Y axis so at the end of the program I want to re-home the y axis (it homes in place). I don't want to just zero the work offset because I use multiple work offsets. If I don't home it before the next tube it wants to completely unwind the y axis to start the next program from Y0. I am trying to use an M code to home my Y axis and it works great when I run it from the script editor but I can't seem to get it to do anything when I run it in MDI with an m code. Is there something I am missing or doing wrong here?

Code: [Select]
function m101()
    inst=mc.mcGetInstance()
    mc.mcAxisHome(inst,1)
end

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

I have a button to home the Y axis that works great, I am just trying to save some extra mouse clicks between tubes. Any help would be great. Thanks!

Joel

2
Mach4 General Discussion / change motor counts with lua
« on: June 08, 2016, 02:35:11 PM »
I'm trying to change a motor count value with a lua scripted M code.

This code works to change the value but it doesn't seem to make a difference in how the motor runs until I disable and actually open the Mach settings (Configure menu > Mach). I've tested and just disabling and enabling the control does not do anything. To get it to work I have to disable, open the settings, hit cancel, and then enable.

Code: [Select]
function m108()
   inst = mc.mcGetInstance()
   local val = tostring(1000)
   mc.mcProfileWriteString(inst, "Motor0", "CountsPerUnit", val)
end

Any ideas or solutions?

3
Mach4 General Discussion / arcs with a linear and rotational axis
« on: June 01, 2016, 05:33:04 PM »
We are trying to set up a system as a tubing plasma cutter. The first set of parts that we want to do are 6"x6.5"rectangular holes with .5" radius corners in both 8" and 10" diameter tubes.

We have the system set up like a lathe. Z is our long linear axis with a C axis rotating about Z and an X axis is our radius/diameter.

Can someone please give me some direction on how to do an arc with the Z and C axes. It doesn't appear like Mach supports G07.1/G107 (cylindrical interpolation). I've considered setting up the C axis like a Y (linear axis) but then it seems that my cutting feedrates would be wrong when I switch diameters. Or am I thinking about that wrong?

Hopefully someone has some answers, we can't be the first ones to run into this.

Thank you,
Joel

Pages: 1