UPG - how to do a simple equation in the post?
I'm just trying to get camworks to post out my dwell correctly. All I want to do is have the post pick up the spindle speed and divide that by 120.. I've tried everything that I can think of. I would think having this in the cycle would work
Code:
P<%:(120/OPR_SPEED)
but it just returns 000..
Any ideas?
Re: UPG - how to do a simple equation in the post?
I'm by no means an expert on this, but when I have to do something like this I format it as follows,
P<#:ABS(120/OPR_Z_SPEED)>
You have to make sure the entire equation is in parenthesis, and that the entire variable is within brackets < & >. You should be using the pound sign instead of the percent as well. Finally, you have to make sure that the variable is being output at a time when the spindle speed is not zero. I know that sounds dumb, but it can happen.
Hope that helps.
Re: UPG - how to do a simple equation in the post?
So that should be, P<%:(OPR_SPEED/120)
I'm sure your VAR would be more than willing to help you out
Re: UPG - how to do a simple equation in the post?
:T:P<%: (OPR_SPEED/120)><EOL>
Make sure you had put this after at least one tool section, or it will always be zero.