Hello Guest it is April 16, 2024, 03:13:24 AM

Author Topic: Run G code from here starts cutting at transfer speed.  (Read 963 times)

0 Members and 1 Guest are viewing this topic.

Offline lgr

*
  •  44 44
    • View Profile
Run G code from here starts cutting at transfer speed.
« on: June 20, 2019, 01:39:54 PM »
When I use "Run G code from here" it starts cutting at the transfer speed, not the cut speed, not sure if this is a controller plugin issue or Mach 4. I'm using a Hicon integra controller. I guess I could just stick in an F command on the line I'm starting from, but it seems odd.

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Run G code from here starts cutting at transfer speed.
« Reply #1 on: June 20, 2019, 11:00:43 PM »
Tested with 4162 earlier today and did not see this. Are you using set next line then run from here?
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Run G code from here starts cutting at transfer speed.
« Reply #2 on: June 21, 2019, 04:34:21 PM »
Hi,
I have build 4162 also, according to that the action of the <Run Gcode From Here> button is 'RunFromHere'.
Given that it is a stock Mach4 action we cannot see the code behind it

I remember always struggling with <Run From Here> in Mach3 until I understood all the implications of the instruction.
One of the important procedures required to <run from here> is to set the correct machine mode.

When you run a Gcode program at any given instant it might be that the spindle is spinning clockwise, ie that some time
in the immediate past an M3 has been issued, and presumably an S*********x to set the speed. The machine may be in incremental
mode, ie a G91 may be in effect and the current move being a linear interpolating cutting move G1 F*********x in effect.

If you start a Gcode program at some point throughout its length......what mode should the machine start in? You can't tell
without scanning through the Gcode that precedes it. There is an API function that does that called 'dry run':

Code: [Select]
LUA Syntax:
rc = mc.mcCntlDryRunToLine(
number mInst,
number line)

Description:
Process G code forward to a given line without motion.
It has a VERY important note that simply cannot be overlooked:
Code: [Select]
Notes:
Once the dry run is started, the function returns immediately. To wait on the dry run, you must check the state of the control.

I would presume that the stock action, 'RunFromHere', must include this API function or another very similar to it in order for
<Run Gcode From Here> to work. It sounds like from your description that Mach is not 'initializing' itself which suggests to me
that as Chaoticone has suggested may be because it is included in the <Set Next Gcode Line> and you have not used it?

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