simple task Xilog plus postprocessor

simple task Xilog plus postprocessor

Anonymous
Not applicable
883 Views
1 Reply
Message 1 of 2

simple task Xilog plus postprocessor

Anonymous
Not applicable

Hello,

I know barely nothing about Javascript, and postprocessors, but ive managed to assemble a post that´s almost working as intended.

 

Whats left is to assign a new variable (N) that gets the value from "tool.comment". I need this to assign what kind of drills im using (flat or pointed)

 

this is the section that im need this assignment, but i dont know how to create the text variable

 

function onCyclePoint(x, y, z) {
switch (cycleType) {
case "drilling":
forceXYZ();
writeBlock(
"XBO",
xOutput.format(x),
yOutput.format(y),
zOutput.format(z),
"D=" + xyzFormat.format(tool.diameter),

"N=" + tool.comment--------------------------------------------i need this, and i will assign "P" or "L" as the text value in tool comments in fusion 360---------------------------

 

Id be really glad if someone could help me!

 

884 Views
1 Reply
Reply (1)
Message 2 of 2

Steinwerks
Mentor
Mentor

Can you attach a sample file for how the code needs to be output?

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes