Hi
How can i get a value but without Axis name in front of it? eg. [ZD] will return Z-4 i need just the value so -4.
Greatful for any help
Custom Postprocessor Axis value without Axis name
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Re: Custom Postprocessor Axis value without Axis name
For example in GCodeBase.js "ZD" is defined with a prefix:
Code: Select all
// variables:
// name, ID, always, prefix, decimals, options
this.registerVariable("zCuttingDepth", "ZD", true, "Z", "DEFAULT", "DEFAULT");
Code: Select all
this.registerVariable("zCuttingDepth", "ZD", true, "", "DEFAULT", "DEFAULT");
You should not alter GCodeBase.js as that is overwritten when QCAD/CAM is updated or reinstalled.
All postprocessors are based in one way or another on CamExporterV2.js (Without an open source reference).
G-Code as this is not functional to my knowledge, the CNC driver would not know what the '-4' in 'G1 -4' is for.
Regards,
CVH
Re: Custom Postprocessor Axis value without Axis name
You can also use [ZD#] in your post processor to only output the value, and not the prefix.