Regarding the Excel setup sheet "operations" tab, is there a way to add M0s to the list of operations, or maybe denote them in some other way?
Since they are not part of sections, I feel like it wont play nice with the way the arrays are structured for the operationParameters data in the post; but I figured I would ask
Hello, @jonathanBUCVS.
In general, Manual NC commands are not operations, and there is no simple way to list them. But if you are looking for something specific, it could be possible to collect this information and output it in setup sheets.
Could you please provide specific example, what you would like to get?
What I figured out between making this post and your reply was the below code, then prepending that to the operation description with "ncCommand + getParameter("operation-comment")"
function onManualNC(command) {
switch (command) {
case COMMAND_STOP:
ncCommand = "(M0) ";
break;
default: ncCommand = "";
}
}Seems to be a suitable workaround at this point.
On a tangentially related note, is there a clever way to remove duplicate entries from these arrays? Specifically I want to add an operationParameters["jobDescription"] array, but if I post out multiple setups in one file, I want the duplicates to be replaced by "". Ive tried a few different things and I am just struggling a bit.
So it would look like:
Setup1 toolpath11
toolpath12
toolpath13
Setup2 toolpath 21
toolpath22
Well, I figured that one out too lol. Simple mistake in the logic on my end.
Can't find what you're looking for? Ask the community or share your knowledge.