Flexible NC programming
1.1 Variables
Job planning
54 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Implicit data type conversions
The following data type conversions are possible and are performed implicitly during
assignments and parameter transfers:
from ↓/ to → REAL INT BOOL
REAL x o &
INT x x &
BOOL x x x
x : Possible without restrictions
o: Data loss possible due to the range of values being overshot ⇒ alarm;
rounding: decimal place value ≥ 0.5 ⇒ round up, decimal place value < 0.5 ⇒ round down
&: value ≠ 0 ⇒ TRUE, value== 0 ⇒ FALSE
See also
General information about variables (Page 15)