Hello Guest it is April 26, 2024, 10:31:29 PM

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 - smallpoul

Pages: 1 2 »
1
Mach4 General Discussion / Convert millisecond to time
« on: December 21, 2023, 11:41:40 AM »
Hi,
    could someone point me out on how to convert millisecond to a time stamp so i could have hour minute and second. I tried some code but unable to achive my goald.
Thanks in advance.
Mike

2
Mach4 General Discussion / Change button state linked to a register
« on: March 29, 2022, 05:04:00 PM »
Hi folks,
            i want to link a button with the state of a register, so if register is 1 state of the button is down and when 0 state is up. Do i need to insert a code in the plc or there an easier way to do it.
Thanks

3
Mach4 General Discussion / Way in lua to know if mach4 is minimized or not.
« on: February 28, 2022, 04:07:17 PM »
Hi again folks,
                    i searched in the api manuel and did'nt find what i want, is there a way to see in lua if mach4 is minimized or not so i can activate the keyboard plugin if mach4 screen is there and desactivate it when minimized.
Thanks in advance

4
Mach4 General Discussion / pwm ess laser frequency question
« on: February 25, 2022, 10:44:14 PM »
Hello,
        i've install a laser atomstack m50 on my cnc, the controller is an ess. It is hoocked up to a pwn pin that is setup in the ess plugin configuration. When i put the laser to 100%, it is a lot less powerfull then when i press the test button on the laser driver it self. What am i missing, is the pwn frequency have an impact to the power of the laser?
Thanks

5
Hi,
    I have made a long time ago a touchplate block to find x y and z. the tickness of the wall are .5 for the x and y and .25 for the  z. There is no option in the module to set the wall. Is there a simple way to edit the module to add it or someone have an idea for this problem.
Thanks

6
Mach4 General Discussion / Save in register from lua
« on: February 18, 2022, 06:54:36 PM »
Hi again,
             all i want to do is to save a box that contain an offset for my laser. I create a register LaserDroOffsetX from within the reg plugin. For testing pupose i create a button that trigger this function:
Code: [Select]
function LaserDroOffset()
local LaserXOffset = scr.GetProperty("LaserdroOffsetX", "Value");
inst = mc.mcGetInstance()
mc.mcProfileWriteString(inst, "iReg0", "LaserDroOffsetX", LaserXOffset);
end
But when i look in the plugin diagnostic, the value stay to zero
Thanks

7
Mach4 General Discussion / Change button color from lua code
« on: February 18, 2022, 01:43:29 PM »
Hi,
    all i want to do is to change the background color of a button from within a lua function,
Here what i already try:
Code: [Select]
scr.SetProperty('btnref', 'Bg color', tostring(Green));btnref is the name of the button that i want to change the colors.

Thanks

8
Hi,
     i have a function that i've put in the load screen and i will like that when mach4 receive a m3 or m5 command, it trigger also this function. I I just don't know how.
Here is the code:
Code: [Select]
function Dustcollector()
TimerPanel = wx.wxPanel (wx.NULL, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxSize( 0,0 ) )
timer = wx.wxTimer(TimerPanel)
local sig = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
mc.mcSignalSetState(sig, 1)

timer:Start(2000)
 
TimerPanel:Connect(wx.wxEVT_TIMER,
function (event)
    mc.mcSignalSetState(sig, 0)
    timer:Stop()
end)
end
Thanks

9
Mach4 General Discussion / Sreen editor wont keep dro font
« on: November 22, 2021, 12:38:17 PM »
Hey trying to make a custom screen for my cnc but everytime i adjust the font of my dro, as soon as i close the editor bang, dro font return to 26 and it is to big.
Any idea
thanks

10
General Mach Discussion / Link script to m8 and m9 command
« on: January 10, 2020, 09:02:51 PM »
I have create a m1000 and m1001 command to send http command to a smart switch for my dust collector. Everything work good but i will like to use the flood command so i was thinking to add m8 and m9 to the macro folder with my script but it does not work, what could i do to trigger m1000 when m8 is activate and m9 to m1001 when it desactivate.
Thanks

Pages: 1 2 »