TUTORIAL: edit expressions

TUTORIAL: edit expressions

Anonymous
Not applicable
1,142 Views
9 Replies
Message 1 of 10

TUTORIAL: edit expressions

Anonymous
Not applicable

Hello,

 

is there some kind of tutorial for learing to edit the expression in HSM?

 

i want to change the dwell time to: 90000/tool spindle speed, but i dont get it working

0 Likes
Accepted solutions (1)
1,143 Views
9 Replies
Replies (9)
Message 2 of 10

FTKnur
Collaborator
Collaborator

Hi @Anonymous,

 

just hover with Shift+Mouse over the Value that you want.

Then you get the Parametername. In this case it is tool_spindleSpeed (upper cases!)

This is possible with many options (checkboxes, heights ... but not the Clicked Diameter in bore operations - too bad 😕 )

 

900000 / tool_spindleSpeed

 

expression.png

0 Likes
Message 3 of 10

Anonymous
Not applicable

thank you fir your reply!

 

Do you know if its also possible to round down the results?

i become a value of 0,040395 s but i would like a value of 0,040

0 Likes
Message 4 of 10

Anonymous
Not applicable

or is it possible to make an expression like this?

 

if tooldiameter = 4 then dwell = 0,016

if tooldiameter = 10 then dwell = 0,040

0 Likes
Message 5 of 10

denis_q
Advocate
Advocate
Accepted solution

In HSMWorks the ternary operator should do the trick:

 

Syntax
result = binaryCondition ? valueReturnedIfTrue : valueReturnedIfFalse

e.g.: tool_diameter==4 ? 0.016 : tool_diameter==10 ? 0.04 : ___

Where '___' is the returned value if none of the conditions are true.

 

 

Message 6 of 10

denis_q
Advocate
Advocate

In HSMWorks it's possible to use (some) javascript??? functions.

e.g. Math.round(0,040395*100)/100

Message 7 of 10

FTKnur
Collaborator
Collaborator

@Anonymous

 

The easiest way for your dwell time is "tool_diameter * 0,4" ... with the function from @denis_q it is  also possible but you realy have a lot to write? Don't know what you exactly want 🙂

 

 

0 Likes
Message 8 of 10

Anonymous
Not applicable

Hello,

 

And selecting the holediameter for making an expression like 0,7* holediameter isn't possible?

0 Likes
Message 9 of 10

FTKnur
Collaborator
Collaborator

Nope ... the diameter of your selected hole/surface is not possible.

Only thing is makeable with "diameter range" ... don't know if you can use it.

 

I have a templates for different threads -> e.g.  M6 -> both diameter ranges set to: 4,917...

Automatic boring for standard operations 🙂

0 Likes
Message 10 of 10

ArjanDijk
Advisor
Advisor

I don't think you will find anything better then this video:


Inventor HSM and Fusion 360 CAM trainer and postprocessor builder in the Netherlands and Belgium.