Siemens SINUMERIK 840D sl Programming Manual page 914

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.16 Axis couplings
Fast digital inputs, real-time variables $AC_MARKER and position comparisons are linked using
the Boolean operator AND for evaluation as conditions.
Note
In the following example, line change, indentation and bold type are used for the sole purpose
of improving readability of the program. For the control, everything that follows a line number
constitutes a single line.
Comment
Program code
N2 $AC_MARKER[0]=0 $AC_MARKER[1]=0 $AC_MARKER[2]=0 $AC_MARKER[3]=0 $AC_MARKER[4]=0 $AC_MARKER[5]=0
$AC_MARKER[6]=0 $AC_MARKER[7]=0
N10 IDS=1 EVERY ($A_IN[1]==1) AND ($A_IN[16]==1) AND ($AC_MARKER[0]==0)
DO LEADON(X,LW,1) LEADON(YL,LW,2) LEADON(ZL,LW,3) $AC_MARKER[0]=1
N20 IDS=11 EVERY ($A_IN[1]==1) AND ($A_IN[5]==0) AND ($AC_MARKER[5]==0)
DO LEADON(U,LW,4) PRESETON(U,0) $AC_MARKER[5]=1
N21 IDS=12 EVERY ($A_IN[1]==1) AND ($A_IN[5]==0) AND ($AC_MARKER[6]==0)
DO LEADON(V,LW,4) PRESETON(V,0) $AC_MARKER[6]=1
N22 IDS=13 EVERY ($A_IN[1]==1) AND ($A_IN[5]==0) AND ($AC_MARKER[7]==0)
DO LEADON(W,LW,4) PRESETON(W,0) $AC_MARKER[7]=1
N30 IDS=3 EVERY ($A_IN[2]==1)
DO LEADOF(X,LW) LEADOF(YL,LW) LEADOF(ZL,LW) LEADOF(U,LW) LEADOF(V,LW) LEADOF(W,LW) $AC_MARKER[0]=0
$AC_MARKER[1]=0 $AC_MARKER[3]=0 $AC_MARKER[4]=0 $AC_MARKER[5]=0 $AC_MARKER[6]=0 $AC_MARKER[7]=0
....
N110 G04 F01
N120 M30
Description
Master value coupling requires synchronization of the leading and the following axes. This
synchronization can only be achieved if the following axis is inside the tolerance range of the
curve definition calculated from the curve table when the master value coupling is activated.
The tolerance range for the position of the following axis is defined via machine data MD
37200: COUPLE_POS_POL_COARSE A_LEAD_TYPE.
If the following axis is not yet at the correct position when the master value coupling is activated,
the synchronization run is automatically initiated as soon as the position setpoint value
calculated for the following axis is approximately the real following axis position. During the
synchronization procedure the following axis is traversed in the direction that is defined by the
914
Comment
; Defines all static synchronized actions.
; ****Reset marker
; **** E1 0=>1 transfer ON
;**** E1 0=>1 coupling roller feed ON
; **** E1 0->1 coupling alignment head ON
; **** E1 0->1 lubrication coupling ON
; **** E2 0=>1 coupling OFF
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents