3.1.1.2 Predefined user variables: Channel-specific arithmetic parameters (R)
Channel-specific arithmetic parameters or R parameters are predefined user variables with the
designation R, defined as an array of the REAL data type. For historical reasons, notation both
with array index, e.g. R[10], and without array index, e.g. R10, is permitted for R parameters.
When using synchronized actions, the $ sign must be included as a prefix, e.g. $R10.
Syntax
When used as a preprocessing variable:
R<n>
R[<expression>]
When used as a main run variable:
$R<n>
$R[<expression>]
Meaning
R: Identifier when used as a preprocessing variable, e.g. in the part program
$R: Identifier when used as a main run variable, e.g. in synchronized actions
Type: REAL
Range of values:
For a non-exponential notation:
± (0.000 0001 ... 9999 9999)
Note:
A maximum of 8 decimal places are permitted
For an exponential notation:
± (1*10
-300
... 1*10
+300
)
Note:
● Notation: <Mantissa>EX<Exponent> e.g. 8.2EX-3
● A maximum of 10 characters are permitted including sign
and decimal point.
<n>: Number of the R parameter
Type: INT
Range of values: 0 - MAX_INDEX
Note
MAX_INDEX is calculated from the parameterized number of R-
parameters:
MAX_INDEX = (MD28050 $MN_MM_NUM_R_PARAM) - 1
<expression>: Array index
Any expression can be used as an array index, as long as the result of the expres‐
sion can be converted to the INT data type (INT, REAL, BOOL, CHAR).
Work preparation
3.1 Flexible NC programming
NC programming
392 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0