Siemens SINUMERIK 840D sl Programming Manual page 122

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Subroutines, Macros
2.18 Cycles: Setting parameters for user cycles
Example: uc.com file - user cycle description
The explanation is based on the continuation of the
example:
For the following two cycles a cycle parameterization is to be newly created:
PROC MY_CYCLE_1 (REAL PAR1, INT PAR2, CHAR PAR3, STRING[10] PAR4)
;The cycle has the following transfer parameters:
;PAR1:
;PAR2:
;PAR3:
;PAR4:
...
M17
PROC SPECIAL CYCLE (REAL VALUE1, INT VALUE2)
;The cycle has the following transfer parameters:
;
;VALUE1:
;VALUE2:
...
M17
Associated file uc.com:
%_N_UC_COM
;$PATH=/_N_CUS_DIR
//C25(MY_CYCLE_1) usercycle_1
(R/-1000.001 123.456 / 100 /Parameter_2 of cycle)
(I/0 999999 / 1 / Integer value)
(C//"A" / Character parameter)
(S///Subroutine name)
//C26(SPECIALCYCLE)
(R///Entire length)
(I/*123456/3/Machining type)
M17
2-38
Real value in range –1000.001 <= PAR2 <= 123.456, default with 100
Positive integer value between 0 <= PAR3 <= 999999, default with 0
1 ASCII character
String of length 10 for a subroutine name
Real value without value range limitation and default
Integer value without value range limitation and default
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents