I'm trying to use the G10 command to change some parameters in one of my custom scripts.
I followed the examples in the manual and they work.
The parameters I am trying to change are:
3,17,12 and 17. Every time I run a G10 P3 R0 command for example I get an "invalid P" error in the MDI window.
Is there something I am missing about formatting these commands?
G10 Commands Error
Moderator: cnckeith
-
- Posts: 2190
- Joined: Sat Nov 18, 2017 2:32 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: Yes
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: Acorn 238
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bergland, MI, USA
- Contact:
Re: G10 Commands Error
Look in the manual. Are those parms read/write or read only?
Re: G10 Commands Error
Unfortunately, I don't think the manual documents which parameters can be set with G10, and which cannot.
If you are wanting to change configuration options like P3, P12 and P17, without just going to the Parameters table and changing them, then you will probably have to approach it from the Skinning interface (write your own short external programs that change the desired values, then call those programs through Windows or through SV_SYS_COMMAND assignments in the PLC program.
Admittedly, I have not been through the Skinning interface in detail, but I am pretty sure it allows you to request changes to Machine Parameter values.
If you are wanting to change configuration options like P3, P12 and P17, without just going to the Parameters table and changing them, then you will probably have to approach it from the Skinning interface (write your own short external programs that change the desired values, then call those programs through Windows or through SV_SYS_COMMAND assignments in the PLC program.
Admittedly, I have not been through the Skinning interface in detail, but I am pretty sure it allows you to request changes to Machine Parameter values.
-
- Posts: 199
- Joined: Mon Oct 29, 2018 5:25 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: G10 Commands Error
I wondered about some of them being able to be written or not from a g code command.
One in particular that seems like it should be able to be written over is 71. That one is the distance of a touch off plate to a spoilboard surface. That could be something that changes often which is why I am trying to write it with a script. I want users to be able to calibrate the distance from a touch off plate to the spoilboard surface. I am currently doing this as a non-volatile value, but if possible it would be nice if it was in the Wizard as parm 71
One in particular that seems like it should be able to be written over is 71. That one is the distance of a touch off plate to a spoilboard surface. That could be something that changes often which is why I am trying to write it with a script. I want users to be able to calibrate the distance from a touch off plate to the spoilboard surface. I am currently doing this as a non-volatile value, but if possible it would be nice if it was in the Wizard as parm 71
-
- Posts: 353
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: G10 Commands Error
I don't use param 71 but this is a working "calibrate tool measure switch" macro. several things won't apply, but everything is noted to show what it is doing when.
I read that param's 700-799 are all open to use also.
I read that param's 700-799 are all open to use also.
- Attachments
-
- mfunc48.mac
- (1.99 KiB) Downloaded 7 times
Ken
-
- Posts: 7334
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: G10 Commands Error
we in in the middle of updating the cnc12 operators manuals, i added this to the list to get more info on which parameters you can use G 10 with or not. thanks for the reminder, and to add reference to that material in the macro programming guide as well.
and yes you can do a lot with the skinning tools several users have done some nice custom UI's with it. using skinning is real programming work so a background in programming really helps. we are behind on documentation for skinning as well but there is basic skinning info package with every cnc12 install under the skinning folder and i do have a step by step document showing how to create the PLC diagnostic app with skinning tool if anyone is interested and skinning needs its own thread/forum.
and yes you can do a lot with the skinning tools several users have done some nice custom UI's with it. using skinning is real programming work so a background in programming really helps. we are behind on documentation for skinning as well but there is basic skinning info package with every cnc12 install under the skinning folder and i do have a step by step document showing how to create the PLC diagnostic app with skinning tool if anyone is interested and skinning needs its own thread/forum.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
-
- Posts: 7334
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: G10 Commands Error
Here is an example of a user created HMi for a production machine, the machine operator would never see the regular CNC12 screen just the smaller HMi screen to run the machine.
https://youtube.com/shorts/O6pEY9bWp_0
https://youtube.com/shorts/O6pEY9bWp_0
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
-
- 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: G10 Commands Error
FYI, The G10 section in the manual was updated to include a list of Parameters that are read only in V5.00.
https://www.centroidcnc.com/centroid_di ... manual.pdf
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