Hello Guest it is April 24, 2024, 08:00:38 PM

Author Topic: Run From Here  (Read 438 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  563 563
    • View Profile
Run From Here
« on: November 11, 2022, 01:39:55 PM »
I am wanting to make this a little easier for my customers.
The old M3 was a little easier and i want to make this even easier than that, only 1 click of the mouse.
Is there any way to do "Run From Here" in a script?
Is it mc.mcRunFromHere(inst)?
or RunFromHere()?
or?

Thanks,
Bill
Re: Run From Here
« Reply #1 on: November 12, 2022, 12:09:54 AM »
Hi,
yes there is, see attached.

The RunFromHere function in Mach3 caused more crashes and heartache than all the other features combined. The same thing will happen with Mach4.
You'll have to experiment until you get the procedure correct, and woe betide you if you deviate from that procedure in practice....you'll have crashes
otherwise.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

*
  •  563 563
    • View Profile
Re: Run From Here
« Reply #2 on: November 14, 2022, 08:20:22 AM »
Joe,

I know about the button.
It is a pain if you don't do it correct.
That is what I would like to work on.
I have no problem writing the rest of the LUA I just need to know how to do the "Run From Here" in code.
Re: Run From Here
« Reply #3 on: November 15, 2022, 02:50:02 PM »
Hi,
to my knowledge there is not one API which does it. Using the screen editor the procedure is an internally programmed Mach4 Action called 'RunFromHere'.
It does not appear there to be any means to view or edit that action.

The critical part of any run-from-here routine is being able to dry run the Gcode program to the 'Here' point, but without movement. This API is for that purpose:

LUA Syntax:
rc = mc.mcCntlDryRunToLine(
      number mInst,
      number line)

Description:
Process G code forward to a given line without motion.

There is nothing to stop you from programming your own run-from-here routine. Its always the details about the preparatory move that cause all the crashes.
What would you do differently to NFS to reduce the crash potential?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

*
  •  563 563
    • View Profile
Re: Run From Here
« Reply #4 on: November 15, 2022, 03:43:14 PM »
Craig,

I have no idea until I start playing with it exactly how I will do it or if I can do it.
I am swamped until the start of the year but wanted to start thinking about it.
Just wanted something easier for my customers to use.
Thanks to you I have someplace to start.
Thanks.
If I get something I will post it on here.

Bill