Toshiba STE 58762 Welding System User Manual


 
STE 58762
2-15
(2) Computation of scalar type data
Scalar type data can be used in calculations in combination with computational operands.
However, should even one number in an expression be a real number, the output of that expression
will also be a real number. Also, the following functions will all return a real number.
SIN, COS, TAN, ASIN, ACOS, ATAN, ATAN2, SQRT, REAL, LN, LOG10, EXP
When the variable on the left side of the equation is an integer type and the output of the calculation
is not an integer, the output will be converted into an integer before being assigned to the variable.
Do not forget, however, that all decimal points are chopped off when a real number is converted to
an integer. On the other hand, when converting from an integer to a real number, the number of
significant digits is limited. When you want to make it clear what kind of data type you are dealing
with, use the INT or REAL command.
Note that character strings cannot be used in calculations. Calculations may be carried out
between the elements of vector-type variables and scalar data. In this case, an element specifier
is appended to the end of a vector-type variable to specify the element which is involved in the
calculation. The value of the element is then drawn out from the vector-type variable and used in
the calculation.
As element specifiers, ".X", ".Y", ".Z", ".C" and ".T" may be used. You may also numerically specify
the element position with ".1", ".2", ".3", ".4" and ".5."
Examples:
A = POINT1.X/25
GAIN={GAIN. l,GAIN.2,0,0,0}
Note)
You can only use this to return the value of an element from the inside of a vector-type variable.
You cannot change the value of the element itself.