Siemens SIMATIC S5 Manual page 61

Positioning module 1p 247 for stepper motors
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Machining Programs and their Structure
Here, machining program 1 is started.
Mode BA 8
Subroutine 9 is called in this machining program. By means of Ml O, this program controls the
drilling of three holes (at O mm, 10 mm and 20 mm). The three coordinates are specified as abso-
lute values. Following each execution of subroutine 9, coordinate 40 mm is approached in ma-
chining program 1 and a relative zero offset of 40 mm is executed via G54, G55 and G56, The
values of the offsets are assigned in the corresponding machine data record. Subroutine 9 is
called a total of three times. Before the end of the program, the tool holder is brought to its home
position at the reference point by G74. Since the offsets are still effective, the actual position
value is now displayed as -130 mm, At the end of the main program, all the zero offsets activated
in the machining program are cleared again. An offset of +1 O mm remains, which was executed
at the beginning with BA13.
Example
Values in the machine data:
zero offset 1 : 40 mm
zero offset 2: 80 mm
zero offset 3: 120
Machining programs:
N1 L9
N3G54
N4 L9
N6G55
N7 L9
N9G56
N2 G04 F50 Ml O
N3X1OF100
N4 G04 F50 Ml O
N5X20F100
N6 G04 F50 Ml O
N7 M02
2-44
Parameter
1;
mm
call subroutine 9
to coordinate 40 mm at 500 mnlmin
zero offset by
40
call subroutine 9
to coordinate 40 mm at 500 mm/min
zero offset by
80
call subroutine 9
to coordinate 40 mm at 500 mrn/min
zero offset by 120 mm/ G55 no longer effective
approach reference point
program end
wait 5 sec
to coordinate 10 mm at 100 mtimin
wait 5 sec
to coordinate 20 mm at 100 mnlmin
wait 5 sec
program end
Start command
mm
mm /
no longer effective

Advertisement

Table of Contents
loading

Table of Contents