Hello Guest it is April 25, 2024, 06:44:51 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.


Messages - smallpoul

Pages: 1 2 3 »
1
Mach4 General Discussion / Re: Convert millisecond to time
« on: December 22, 2023, 10:29:29 AM »
Thanks it work perfectly.
Code: [Select]
-------------------------------------------------------
--  Machine up time
-------------------------------------------------------
local Milliseconds = mc.mcCntlGetPoundVar(inst, 3001 )
local seconds = string.format("%02.f", math.floor(Milliseconds/1000))
if seconds == 0 then
scr.SetProperty("Machineuptime", "Label", "00:00:00")
else
local hours = string.format("%02.f", math.floor(seconds/3600))
local mins = string.format("%02.f", math.floor((seconds/60) - (hours*60)))
local secs = string.format("%02.0f",(seconds - (hours*3600) - (mins*60)))
scr.SetProperty("Machineuptime", "Label", hours ..":" ..mins ..":".. secs)
end

2
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

3
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

5
Thanks  SwiftyJ,
                        you give me a lot more then what i asked lol, so appreciated. work like a charm.
 

6
Hi,
    thanks for your reply, sorry my mistake, all i want is a signal from mach4 to trigger when it is minimized or showed, with that i could make a script that enable or disable the keybord.

7
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

8
Mach4 General Discussion / Re: pwm ess laser frequency question
« on: February 28, 2022, 04:02:55 PM »
Yes Tweakie.CNC thanks,
                                    only need to update ess plugin to the latest.

9
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

10
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

Pages: 1 2 3 »