Page 1 of 1

Acorn cnc12 macro user variables

Posted: Sun Jan 22, 2023 7:12 pm
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

Re: Acorn cnc12 macro user variables

Posted: Sun Jan 22, 2023 9:33 pm
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.

Re: Acorn cnc12 macro user variables

Posted: Mon Jan 23, 2023 11:18 am
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

Re: Acorn cnc12 macro user variables

Posted: Thu Jan 26, 2023 3:34 pm
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.

Re: Acorn cnc12 macro user variables

Posted: Thu Jan 26, 2023 4:31 pm
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.

Re: Acorn cnc12 macro user variables

Posted: Thu Jan 26, 2023 5:43 pm
by cncsnw
Static user variables #150 - #159 are stored in "job.xml", not "cncm.job.xml".

Index "0" - index "9" correspond to #150 - #159.

Re: Acorn cnc12 macro user variables

Posted: Thu Jan 26, 2023 7:27 pm
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.

Re: Acorn cnc12 macro user variables

Posted: Thu Jan 26, 2023 7:30 pm
by T2bul
Thanks also for the additional info on the static user variables #150-159 stored in job.xml rather than cncm.job.xml.