Acorn cnc12 macro user variables

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
T2bul
Posts: 5
Joined: Mon Feb 26, 2018 7:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Acorn cnc12 macro user variables

Post by T2bul »

Hi,
On my lathe, I have installed a cnc12 control. I
would like to display or get access to see the values of macro user variables #100-149 and #150-159.
Is it possible?
Thanks
tblough
Posts: 3072
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Acorn cnc12 macro user variables

Post by tblough »

For variables #150-159, those are contained in the cncm.job.xml file in the c:\cncm directory. For variables #100-149, there is no place to "view" them. You will have to write a g-code program to display them.

You could probably use M200 within a loop to step through the variables and display them. However since #100-149 are reset to 0.0 every time a program is run, I'm not sure what you would learn from it.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
T2bul
Posts: 5
Joined: Mon Feb 26, 2018 7:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Acorn cnc12 macro user variables

Post by T2bul »

Thank you very much for the answer, very appreciated.
I will look at the M200 code.


Hi,
I am not able to find the users variables #150-159 in the cncm.job.xml file
I have include 3 pictures of the oatg and tge first page of the cncm.job.xml file.

In my case the cncm.job.xml file is in the c:cncm414 file?
Anu clue.

Thanks again for your help
Attachments
20230126_140959.jpg
20230126_140913.jpg
20230126_140720.jpg
T2bul
Posts: 5
Joined: Mon Feb 26, 2018 7:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Acorn cnc12 macro user variables

Post by T2bul »

Hi,
I am not able to find the users variables #150-159 in the cncm.job.xml file
I have include 3 pictures including the first page of the cncm.job.xml file.

In my case the cncm.job.xml file is in the c:cncm414 file?
Any clue.

Thanks again for your help.
Allin1Chris
Posts: 132
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn cnc12 macro user variables

Post by Allin1Chris »

Hello T2bul,

What are you trying to accomplish, it might be easier to read out the value in G-Code. For Example,

Code: Select all

#100 = 0
#101 = 5
M225 #100 "Value of #101 is %.0f" #101
This will produce a message indefinitely saying "Value of #101 is 5" on screen in this example.

These % commands work in the M200 Message m-codes (Not just M225). %f is float number (%.8f) sets decimal amount to 8 digits displayed for example. %c is a character, %s is a string (#300 variables).

Mill Operators manual Section 13.51 goes over these formatted string commands and the use of %f, %c, and %s.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: Acorn cnc12 macro user variables

Post by cncsnw »

Static user variables #150 - #159 are stored in "job.xml", not "cncm.job.xml".

Index "0" - index "9" correspond to #150 - #159.
T2bul
Posts: 5
Joined: Mon Feb 26, 2018 7:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Acorn cnc12 macro user variables

Post by T2bul »

Thanks for the reply.

It includes an very relevant example pointing in the right direction. With some reading on the macro 200-..., I should be able to display macro users variables providing me a tool to debug my macros.
Again your help is really appreciated.
T2bul
Posts: 5
Joined: Mon Feb 26, 2018 7:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Acorn cnc12 macro user variables

Post by T2bul »

Thanks also for the additional info on the static user variables #150-159 stored in job.xml rather than cncm.job.xml.
Post Reply