Hello Guest it is April 19, 2024, 04:46:27 PM

Author Topic: GCODE stops executing  (Read 946 times)

0 Members and 1 Guest are viewing this topic.

GCODE stops executing
« on: October 31, 2020, 06:27:20 PM »
I have not been successful in getting a program to execute fully.  I have tried several different programs created by Solidworks 2019 CAM software and hawks ridge post processor.  I have a license that is displayed under the help-about menu item.  Every gcode program begins by executing as expected then it just stops.  No error. I cannot make the program run from another line but can control the machine through jogging or MDI.  It looks to me that a stop signal is being send from somewhere.

The following gcode stops at line "Y398. F2400.", when it stops the log is created.

G0 Z42.5
Z32.75
G1 Z30. F400.
Y398. F2400.
Y0.

LOG
2020-10-31 16:14:33.238 - Attempt transition from "File Running" on event "Stop" gcodeexec.cpp:686
2020-10-31 16:14:33.238 - S_FILE_RUNNING2_on_exit
2020-10-31 16:14:33.238 - Signal id 1114, (Gcode Running), changed from HIGH to LOW.
2020-10-31 16:14:33.238 - S_FILE_RUNNING_on_exit
2020-10-31 16:14:33.238 - ACTION_stop
2020-10-31 16:14:33.238 - [PoKeys]  [msg] PluginInstanceProcessMsg mInst = 0, msg = MSG_GCODE_LINE (1009), wparam = 283, lparam = 1

2020-10-31 16:14:33.238 - [PoKeys]  [msg] PluginInstanceProcessMsg mInst = 0, msg = MSG_STOP_EXECUTION (1020), wparam = 0, lparam = 0

2020-10-31 16:14:33.285 - S_IDLE_on_entry


--------------
I have reinstalled mach4, pokeys57 plugins, and signature file.

Anyone have an idea of what to do here?

Re: GCODE stops executing
« Reply #1 on: October 31, 2020, 06:49:42 PM »
I found another post that creates a similar log.

The title is:
Topic: Mach4 Stops mid cycle, "Never happened before"
Re: GCODE stops executing
« Reply #2 on: November 25, 2020, 08:16:46 AM »
When you say stop do you mean the movement of the spindle on the XYZ axis stops permanently until restart or do you mean that the movement on the XYZ axis stop temporarily and then resumes after a brief outage?  This outage might be a second or two?
Re: GCODE stops executing
« Reply #3 on: November 25, 2020, 07:05:04 PM »
is that all yours gcode? nothing more?
if you try run this lines by MDI what is the result?
did you add event handler in yours screen script?
Re: GCODE stops executing
« Reply #4 on: November 29, 2020, 10:47:06 AM »
The x, y, and z axis stopped.  It turned out that the gcode created through Solidworks CAM compensated for the tool diameter and Mach4 also compensated for it.  For reasons I don't understand this stopped the machine on G41 instruction.  The solution was to put a zero diameter in the tool table for all tools.

Note that my original post cited the wrong gcode due to Mach4 looking ahead 20 lines.  I found the correct line of code by consulting the history.
« Last Edit: November 29, 2020, 10:51:21 AM by rocknroll »