Hello Guest it is April 25, 2024, 12:32:59 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 - KatzYaakov

491
Mach4 General Discussion / Re: Mach 4 Automaticly open GCode ?
« on: August 22, 2019, 03:25:06 PM »
you can see the attach(sorry for the language)
customer even not need see mach interface
then mach write status on text file and i can read it as event in my c#

492
Mach4 General Discussion / Re: Mach 4 Automaticly open GCode ?
« on: August 22, 2019, 03:17:56 PM »
dll work perfect
can do any thing

493
Mach4 General Discussion / Re: Mach 4 Automaticly open GCode ?
« on: August 22, 2019, 01:31:49 PM »
use the dll option
i use it a lot very powerful
i have "work list" that load the program and run it on 2 computers with 2 mach system(labeling and cnc)


494
Mach4 General Discussion / Re: Pause Lua script mach4
« on: August 21, 2019, 03:26:59 PM »
i use this:
function waiit()
   local inst = mc.mcGetInstance()
   local GCode =""
            GCode = GCode ..string.format("G4 p500")
            mc.mcCntlGcodeExecuteWait (inst, GCode) ---wait 0.5 second
   
end

495
Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 18, 2019, 11:53:58 PM »
thanks alot ill try

496
Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 18, 2019, 04:04:02 PM »
steve
i real thanks for yours kindly help
but according instruction i cant get the machine state
i try copy the instruction but its cant compile
always compilation error


MINSTANCE mInst = 0;
mcState state;
char stateName[80];
int rc = mcCntlGetState(mInst, &state);
if (rc == MERROR_NOERROR) {
   // Success!
   rc = mcCntlGetStateName(mInst, state, stateName, sizeof(stateName));

}

497
Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 17, 2019, 04:52:18 PM »
i understand about the :
mc.mcSignalWait
i test and its ok

but when i have also  :
mc.mcSignalSetState

then what can i do? i have only 2 return rc options not one of them will handle stop option
and again ,when i press stop that m function not stop its continue to run only movement stop



498
Mach4 General Discussion / Re: Lua script problems
« on: August 16, 2019, 11:56:26 AM »
in the new version you cant use same function name in 2 M function
or use public main or change the name in each M function

499
Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 16, 2019, 11:38:30 AM »
thanks alot got it
but where can i find the  mcErrorCheck.lua module to get the return list?

500
Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 16, 2019, 03:54:32 AM »
i try use the return id but it always give me Unexpected value
for example:

local   dhs= mc.mcSignalWait(0, mc.ISIG_INPUT14, 1, 2);

this gave me the value 40.0 if no any signal change
 second question is how i abort?
i try with "goto exit"  but it always not find the label ( i put the label ::exit::)