July 2013 4.3 Input and output of machine parameters 479
Special case:
Entering a formula
Currently only for MP1054.x (linear distance of one motor revolution) and for
MP7530 (within description tables for the kinematics).
You can enter a formula instead of a fixed value. When entering the formula,
you must pay attention to the case of the letters (whether they are small or
capital). Functions are written small, variables are written in capitals.
Functions:
Variable:
Example:
MP1054.0: x*0.1^6+15 (x in 0.0001 mm)
Entering a formula in MP1054.x is only useful if a position encoder is
connected to the axis.
For machine parameters with formula input (e.g. MP1054), the formula can be
indicated in an ASCII file. For identification, the character "@", followed by the
absolute path name, is entered in the machine parameter.
Example:
@PLC:\MP\1054-X.A
The file must contain only the formula. Comments are not allowed. The
formula in the file may consist of several lines and contain blank lines. The first
1024 characters of the file are evaluated.
+ Addition sin Sine
– Subtraction cos Cosine
· Multiplication tan Tangent
/ Division asin Arc sine
log Logarithm acos Arc cosine
ln Logarithm to the base of 10 atan Arc tangent
exp Exponent sqrt Square root
() Expressions in parentheses
are solved
^ Exponential calculation
"REF"
or "x"
Current position of the axis relative to the machine datum
(resolution 0.0001 mm or °)
‘x’ was simply introduced as a short form