Search found 74 matches

by corbin
Thu Jun 19, 2025 12:25 am
Forum: Centroid CNC12 APi Discussions
Topic: Working on some runtime info..
Replies: 11
Views: 4735

Working on some runtime info..

Working on a little app for runtimes. When you run a job, it will save the time it took, and show you how long is left when you run it again. It also does some basic estimates based on the line through the gcode.

I need to figure out a good way to launch it on start of CNC12.

All the code is at ...
This post has been liked 3 time(s).
by corbin
Wed Jul 30, 2025 5:17 pm
Forum: Centroid CNC12 APi Discussions
Topic: Job is running status
Replies: 5
Views: 2872

Re: Job is running status

Thanks! I'll check it out when I move to the next rev.

Below is my ugly heuristic hack that is working for now...

// HACK! It is hard to tell if we are running a warmup macro or something else. so, this is a heuristic to determine that, which may not be right
if (newJobIsRunning ...
This post has been liked 0 time(s).
by corbin
Wed Jul 16, 2025 12:34 pm
Forum: Centroid CNC12 APi Discussions
Topic: Job is running status
Replies: 5
Views: 2872

Re: Job is running status

Thanks! Is there a difference between SV_JOB_IN_PROGRESS and SV_PROGRAM_RUNNING? I haven't poked around at SV_PROGRAM_RUNNING.

Maybe one could indicate the GCode file is running, and another could indicate that anything else is running (ie: macros via the VCP, MDI, etc)?

Corbin
This post has been liked 0 time(s).
by corbin
Tue Jul 15, 2025 12:39 pm
Forum: Centroid CNC12 APi Discussions
Topic: Job is running status
Replies: 5
Views: 2872

Job is running status

Hello! I'm trying to find out if a job is running or not. Specifically, the filename that is loaded. The trouble I'm having is that SV_JOB_IN_PROGRESS returns IO_LOGICAL_1 even when I'm running a warmup routine, and haven't actually started the job. Is there a way to differentiate this?

Thanks ...
This post has been liked 0 time(s).
by corbin
Wed Jun 25, 2025 6:27 pm
Forum: Centroid CNC12 APi Discussions
Topic: Working on some runtime info..
Replies: 11
Views: 4735

Re: Working on some runtime info..


our g code backplot actually runs the job with accel/decel taken into account (and including smoothing if you are using G64!) it does the actual motion planning for the g code graph, not just drawing some lines. thats why CNC12's drilling job time estimates are so accurate compared to a cad/cam ...
This post has been liked 0 time(s).
by corbin
Thu Jun 19, 2025 4:16 pm
Forum: Centroid CNC12 APi Discussions
Topic: ATC Fetch Tool Popup
Replies: 1
Views: 1599

ATC Fetch Tool Popup

I'm not sure if I shared this, but this is my ATC "fetch tool" popup to select a tool in your rack (or something not in your rack via user prompts in the script).

fetch tool popup.mp4

Clicking the button fetches that tool.

Code is at https://github.com/corbinstreehouse/Centroid-ATC ...
This post has been liked 0 time(s).
by corbin
Thu Jun 19, 2025 4:08 pm
Forum: Centroid CNC12 APi Discussions
Topic: Working on some runtime info..
Replies: 11
Views: 4735

Re: Working on some runtime info..


M130 allows you to run shell commands. You may still have to write a batch script to start it up


Yeah! I realized a while back that you don't need a batch file. Stuff like this works:

<line>M130 "C:\CNCM\ToolRackSetup.exe -showToolSetupWindow"</line>

When I had a batch file you would see it ...
This post has been liked 0 time(s).
by corbin
Thu Jun 19, 2025 4:06 pm
Forum: Centroid CNC12 APi Discussions
Topic: Working on some runtime info..
Replies: 11
Views: 4735

Re: Working on some runtime info..


cool!
what happens when you use F4 Run, F2 search and choose to start somewhere in the middle of the program?


Yeah, that will fall back to the estimate, which is entirely brain-dead at just a percentage through the gcode file. Although, I don't have a good way of knowing when it starts half-way ...
This post has been liked 0 time(s).
by corbin
Thu Jun 19, 2025 10:28 am
Forum: Centroid CNC12 APi Discussions
Topic: VCP and external program launch
Replies: 6
Views: 15346

Re: VCP and external program launch

What version was <app> added?

I've been doing this to pass parameters to my application:

<vcp_button>
<run>
<line>M130 "C:\CNCM\ToolRackSetup.exe -showToolSetupWindow"</line>
</run>
</vcp_button>
This post has been liked 0 time(s).
by corbin
Thu Jun 19, 2025 10:25 am
Forum: Centroid CNC12 APi Discussions
Topic: Working on some runtime info..
Replies: 11
Views: 4735

Re: Working on some runtime info..

Yeah, I've got a few VCP buttons already launching my apps; one does a drop down for tool selection.

I was thinking I could add something to my home script.

Corbin
This post has been liked 0 time(s).