Hello Guest it is April 25, 2024, 11:28:02 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 - Blacksmith

Pages: 1 2 »
1
Mach4 General Discussion / Re: need help with script
« on: July 15, 2015, 10:06:40 AM »
BTW , can i use this method in a sig table also ?

2
Mach4 General Discussion / Re: need help with script
« on: July 15, 2015, 09:14:50 AM »
thank you its working :))

4
Mach4 General Discussion / need help with script
« on: July 14, 2015, 07:22:48 AM »


i have this code in the signal script,

if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end

but what if i have two inputs

something like this  : 

 if ((sig == mc.ISIG_INPUT1) and (state == 1)) and ((sig == mc.ISIG_INPUT10) and (state == 1))
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end


how do i do that ?

5
Mach4 General Discussion / Re: external cycle start
« on: July 14, 2015, 01:13:28 AM »
and it has to go in to the "signal script"

6
Mach4 General Discussion / Re: external cycle start
« on: July 14, 2015, 01:11:57 AM »
it looks like this





local inst = mc.mcGetInstance();

if (sig == mc.OSIG_MACHINE_ENABLED) then
    machEnabled = state;
end

if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end


local inst = mc.mcGetInstance();


if (sig == mc.ISIG_INPUT6) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStop(inst)
end

7
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: July 11, 2015, 11:39:58 AM »
anybody seen this behaver before  ? it happens when i hit cycle stop and hit cycle start again , in the middle of a circle .

8
Mach4 General Discussion / Re: external cycle start
« on: July 11, 2015, 09:22:06 AM »
Thank you, it's working

9
Mach4 General Discussion / external cycle start
« on: July 09, 2015, 11:43:40 AM »
is it's possible to program a external cycle start in mach4 

10
Mach4 General Discussion / Re: DRO for typing in feed rate
« on: May 30, 2015, 02:38:44 AM »
that's exactly what i need, but how do i write a script, do you have a example ?

Pages: 1 2 »