Hello Guest it is March 29, 2024, 01:37:33 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 - Julie

Pages: 1 2 »
1
General Mach Discussion / Enable button time out function
« on: May 31, 2017, 09:06:44 PM »
Hello,

I want to automatically turn off the enable button when there is no movement at Mach for a period of time.
Is there a way?
For reference, I am using a pokey board.
Thank you.

2
General Mach Discussion / Warning in Mach3 with pokeys
« on: April 24, 2017, 01:35:37 AM »
Hello,

I am using pokeys57cnc.
When Mach 3 is executed, the attached message appears.
There is no problem in operation.
WinXP, win7, win10 are all the same phenomenon.
Firmware update is not helpful.
And there is no problem in Mach4.
Is there a workaround?




3
Mach4 General Discussion / Re: M6 Tool change is skipped in MACH4.
« on: April 21, 2017, 10:27:59 PM »
There is typing error in code, M6->m6.

But if there are "scr.GetProperty" command lines, it is skipped still.


4
Mach4 General Discussion / M6 Tool change is skipped in MACH4.
« on: April 20, 2017, 04:52:49 AM »
Hello,

I created a new DRO on the screen, input it and am trying to use it in the M6 for tool change.
The names of the DRO on the screen are Xpos1, Ypos1, PlateThicknes.
And i created variables like below in M6 script.

local xstart= scr.GetProperty("Xpos1", "Value")
local ystart = scr.GetProperty("Ypos1", "Value")
local StrikePlateThickness= scr.GetProperty("PlateThickness", "Value")

But T2 M6(Tool change G-code) is skipped when simulate.
If the above three lines are deleted, they are executed without skipping.

I do not know what is the problem.

** I referred to the data of DazTheGas.
    Thanks, DazTheGas. ;)



Code: [Select]
function m6()

    local inst = mc.mcGetInstance()
    local ProbeSignal = mc.ISIG_DIGITIZE
    local MaxToolNum = 6   ---- MaxToolNum = 6  
    local ToolUp = -5
    local SelectedTool = mc.mcToolGetSelected(inst)
    local CurrentTool = mc.mcToolGetCurrent(inst)    
    local xstart = scr.GetProperty("Xpos1", "Value")
    local ystart = scr.GetProperty("Ypos1", "Value")
    local StrikePlateThickness = scr.GetProperty("PlateThickness", "Value")
    
        ------------- Get touch off parameters -------------
 
if selectedtool == currenttool then
    return
mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
else

        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0")
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 X14 Y30")
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z"..probestart)
        mc.mcCntlGcodeExecuteWait(inst, "G91 G31 Z-15 F25")
        local toolz = mc.mcAxisGetPos(inst,2)
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0")
        local changetoo = mc.mcToolGetDesc(inst,selectedtool)
        wx.wxMessageBox("Please change to tool number "..selectedtool.." "..changetoo.." and press ok to continue")
        currenttool = selectedtool
        toollen = mc.mcToolGetData(inst, mc.MTOOL_MILL_HEIGHT, currenttool)
        probestart = guesslen + toollen
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 X14 Y30")
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z"..probestart)
        mc.mcCntlGcodeExecuteWait(inst, "G91 G31 Z-15 F25")
        mc.mcAxisSetPos(inst, 2 , toolz)
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0")
        mc.mcCntlGcodeExecuteWait(inst,"G90 G0 X"..xstart.." Y"..ystart)
        mc.mcToolSetCurrent(inst, selectedtool)
        wx.wxMessageBox('Toolchange finished')  
        mc.mcAxisSetPos(inst, 2 , toolz)
        mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0")
        mc.mcCntlGcodeExecuteWait(inst,"G90 G0 X"..xstart.." Y"..ystart)
        mc.mcToolSetCurrent(inst, selectedtool)
        wx.wxMessageBox('Toolchange finished')

        mc.mcCntlToolChangeManual(inst, true);
mc.mcCntlSetLastError(inst, "Current tool == " .. tostring(selectedtool) .. "   Previous Tool == " .. tostring(currenttool))
mc.mcToolSetCurrent(inst, selectedtool)
end
end


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

5
Mach4 General Discussion / Re: Lua script command
« on: April 19, 2017, 07:37:07 AM »
Cbyrdtopper, sorry.
I changed it as shown below.

mc.mcAxisSetPos(inst, 2, ZeroOffsetZ)

But I thought I solved it, but I do not know if it is correct.



6
Mach4 General Discussion / Re: Lua script command
« on: April 10, 2017, 01:27:28 AM »
I solved it. :)

7
Mach4 General Discussion / Lua script command
« on: April 07, 2017, 08:44:01 AM »
Hello,

I'm converting VB script to LUA script.

<VB script>
Call SetOEMDro(802, ZeroOffsetZ)

How can I change that by Lua script command?


8
Mach4 General Discussion / Re: User defined DROs in MACH4
« on: April 02, 2017, 01:44:28 AM »
Your reply has been helpful.
Great thanks.

9
Mach4 General Discussion / User defined DROs in MACH4
« on: March 30, 2017, 08:52:13 PM »
Hello,

I am a new in Mach4, am trying to create user defined DROs in Mach 4.
I had used that user defined LEDs and DROs were setup with values 1000 to 1254 in the OEM code field in MACH3.
How can I do user defined DROs setup in Mach4?

Thanks in advance.   :)

10
VB and the development of wizards / password button
« on: November 23, 2015, 07:27:37 PM »
Hello,

I'm making password question button in Mach3.

When user click the button, then password message box pops up.

And when user enter password, it displays as it is.

I want to display asterisk "******".

Could you tell me how to do this?


<Example code>

If Question("Password?") = 12345 Then
DoOemButton(122)
End If

Pages: 1 2 »