Enhanced Level Commands
4.10 Macroprograms
04.07
4-159
© Siemens AG 2007 All rights reserved
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
Table 4-11 Address -- variable correspondence and usable addresses for call up
commands (type II), continued
Address in Type II System variableAddress in Type IISystem variable
I5 $C_I[4] K10 $C_K[9]
J5 $C_J[4]
Note: If more than one set of I, J, or K is specified, the order of sets is determined for each
I/J/K set, so that variable numbers are determined corresponding to that order.
Example of argument specification
When arguments are specified, the macroprogram call up code must always be
specified before the specification of arguments. If argument specification is given
before the macroprogram call up code, an alarm occurs. The value of argument
specification can include a sign and decimal point independent of the address.
If no decimal point is used, the value is saved to the variable as the value with a
decimal point according to the normal number of digits of that address.
1
st
set
2
nd
sets
3
rd
sets
G65 P*** A10. C20. X30. Z40. I50. K60. J70. I80.;
$C_I[1]: 80. $C_I_ORDER[1]: 3
§C_J[0]: 70. $C_J_ORDER[0]: 2
$C_K[0]: 60. $C_K_ORDER[0]: 1
$C_I[0]: 50. $C_I_ORDER[0]: 1
$C_Z: 40.
$C_X: 30.
$C_C: 20.
$C_A: 10.
Fig. 4-30 Example of argument specification