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
Acorn cnc12 macro user variables
Moderator: cnckeith
-
- Posts: 3100
- 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
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.
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.
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.
-
- 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
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
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
-
- 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
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.
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.
-
- Posts: 135
- 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
Hello T2bul,
What are you trying to accomplish, it might be easier to read out the value in G-Code. For Example,
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.
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
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
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
Re: Acorn cnc12 macro user variables
Static user variables #150 - #159 are stored in "job.xml", not "cncm.job.xml".
Index "0" - index "9" correspond to #150 - #159.
Index "0" - index "9" correspond to #150 - #159.
-
- 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
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.
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.
-
- 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
Thanks also for the additional info on the static user variables #150-159 stored in job.xml rather than cncm.job.xml.