1.1 Can we access the currently executing G-code line in real time (not the entire script)?
State.GetCurrentLineInfo and State.GetCurrentStackLevelZeroLineInfo will give the current executing line number.
GetCurrentLineInfo can give the executing line of a sub program or macro.
This line number can ...
Search found 42 matches
- Tue May 20, 2025 11:18 am
- Forum: Centroid CNC12 APi Discussions
- Topic: Inquiry on Real-Time Control Capabilities (CNC12 + API)
- Replies: 1
- Views: 117
Re: Inquiry on Real-Time Control Capabilities (CNC12 + API)
This post has been liked 1 time(s).
- Mon May 05, 2025 7:56 am
- Forum: Centroid Acorn CNC Controller
- Topic: Probing report missing data?
- Replies: 5
- Views: 138
Re: Probing report missing data?
Hello
I finally got my probing working and import into my cad.
for my circle bores my cad is setup that it reads the coordinates and diameter and when imported it will draw the circles for me automatically.
However with the slot it is missing one of the length value in the probing cyles.txt.
How ...
This post has been liked 1 time(s).
- Wed Feb 26, 2025 2:20 pm
- Forum: Centroid CNC12 APi Discussions
- Topic: SetSystemVariable?
- Replies: 6
- Views: 24778
Re: SetSystemVariable?
If you want the single line call, yes. If you're not interested in upgrading, you can cheese it a little with
public CentroidAPI.CNCPipe.ReturnCode SetUserVariable(int variableNumber, double newValue)
{
var cncPipe = new CentroidAPI.CNCPipe.Job(m_pipe);
string command = "#" + variableNumber ...
public CentroidAPI.CNCPipe.ReturnCode SetUserVariable(int variableNumber, double newValue)
{
var cncPipe = new CentroidAPI.CNCPipe.Job(m_pipe);
string command = "#" + variableNumber ...
This post has been liked 1 time(s).
- Wed Feb 26, 2025 2:10 pm
- Forum: Centroid CNC12 APi Discussions
- Topic: SetSystemVariable?
- Replies: 6
- Views: 24778
Re: SetSystemVariable?
What version of software are you using? The SetSystemVariable call was added in CNC12 v5.24
This post has been liked 1 time(s).
- Thu Jun 12, 2025 8:19 am
- Forum: Centroid CNC12 APi Discussions
- Topic: Some remarks about the last API documentation 1.0.0 given with V5.30 acorn
- Replies: 1
- Views: 34
Re: Some remarks about the last API documentation 1.0.0 given with V5.30 acorn
Hello,
I'm currently updating the python wrapper for acorn v5.30. I'm having some trouble, could you help me with this, please ?
( cnc-centroid-skinning python with the 64bits update).
* method : (PLC) GetPlcSystemVariableBit, there is an enum : MpuToPcSysVarBit, I don't find anything about ...
This post has been liked 0 time(s).
- Wed Jun 04, 2025 8:35 am
- Forum: Centroid Acorn CNC Controller
- Topic: MessageBox
- Replies: 3
- Views: 101
Re: MessageBox
Hello,Where can I find info on passing data to CentroidMessageBox.exe? Finally getting aquinted and building an acorn system. Starting off simple with 2 axis system and floating head. Ive realized over the years floating head as many words has been used as and come to mean something other than ...
This post has been liked 0 time(s).
- Tue Apr 08, 2025 9:47 am
- Forum: Centroid Acorn CNC Controller
- Topic: Graphics Backplot for Rotary <Resolved>
- Replies: 8
- Views: 150
Re: Graphics Backplot for Rotary
I had no problems loading your report to graph this job.
Capture4.PNG
Here is the file I'm trying to plot.
I'm curious that you said you loaded my report and got it to plot correctly. Makes me wonder if there is something odd about my G-Code. It cuts fine. Model from Fusion with Swissi ...
This post has been liked 0 time(s).
- Tue Apr 08, 2025 8:39 am
- Forum: Centroid Acorn CNC Controller
- Topic: Graphics Backplot for Rotary <Resolved>
- Replies: 8
- Views: 150
Re: Graphics Backplot for Rotary
Thank you. The report is attached.
This is a screenshot of a leg spindle with Parm150 set to 5. It shows the tool path movement, but it's hard to get a sense of the part's shape when it's shown in the single dimension.
Screenshot (51).png
Your report has P150 == 3 which is correct for rotary ...
This post has been liked 0 time(s).
- Mon Apr 07, 2025 8:12 am
- Forum: Centroid Acorn CNC Controller
- Topic: Graphics Backplot for Rotary <Resolved>
- Replies: 8
- Views: 150
Re: Graphics Backplot for Rotary
Can you upload a report and your job file so I can take a look?
Rotary graphics will display if you have an axis set parallel to the X or Y axis and bit 2 of P150 is NOT set.
Rotary graphics will display if you have an axis set parallel to the X or Y axis and bit 2 of P150 is NOT set.
This post has been liked 0 time(s).
- Wed Feb 26, 2025 9:02 am
- Forum: Centroid CNC12 APi Discussions
- Topic: SetSystemVariable?
- Replies: 6
- Views: 24778
Re: SetSystemVariable?
Yes, CNCPipe.Job.SetSystemVariable(...) which has an overload for the string variables as well. Please note that #1-#149 are initialized to 0 before the beginning of a job and not every variable is writeable.
More information on variables can be found in the manual in section 11.2.16: https://www ...
More information on variables can be found in the manual in section 11.2.16: https://www ...
This post has been liked 0 time(s).