Explanation
* At type conversion from REAL to INT, fractional values that are >=0.5 are rounded up,
others are rounded down (cf. ROUND function).
1)
Value <> 0 is equivalent to TRUE; value == 0 is equivalent to FALSE
2)
If the value is in the permissible range
3)
If only 1 character
4)
String length 0 = >FALSE, otherwise TRUE
Note
If conversion produces a value greater than the target range, an error message is output.
If mixed types occur in an expression, type conversion is automatic. Type conversions are also
possible in synchronous actions, see Chapter "Motion-synchronous actions, implicit type
conversion".
3.1.2 Indirect programming
3.1.2.1 Indirectly programming addresses
When indirectly programming addresses (Page 1235), the extended address (<Index>) is
replaced by the suitable type of variable.
Note
It is not possible to indirectly program addresses for:
● N (block number)
● L (subprogram)
● Settable addresses
(e.g. X[1] instead of X1 is not permissible)
Syntax
<ADDRESS>[<Index>]
Meaning
<ADDRESS>[...]: Fixed address with extension (index)
<index>: Variable, e.g. for spindle number, axis, ....
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 433