Siemens SINUMERIK 840D sl Function Manual page 140

Extended functions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

B3: Distributed systems - 840D sl only
3.3 Examples
Identifier for NCU2, that the leading axis of NCU1 has been released: Link variable $A_DLB[0]
= 0
Program code
N1000 R1 = 0
N1004 G1 Z0 F1000
N1005 $A_DLB[0] = 1
LOOP10:
N1005 R1=R1+1
N1006 Z0.01 G91
N1008 Z0.02
N1010 Z0.03
N1012 IF R1 < 10 GOTOB LOOP10
N1098 $A_DLB[0] = 0
Program for NCU2 (following axis)
The program establishes a connection between leading axis movements on NCU1 and
following axis movements on NCU2 via a curve table. If the table has been defined, NCU2
goes into the wait position (N2006) until NCU1 has assigned axis Z as the leading axis (N1005).
The coupling is activated (N2010) as soon as axis Z has been assigned as leading axis. The
coupling is kept until NCU1 has released axis Z as the leading axis.
Program code
N2000 CTABDEL(1)
N2001 G04 F.1
N2003 G0 Y0 Z0
N2002 CTABDEF(Y, Z, 1, 0)
N2003 G1 X0 Y0
N2004 G1 X100 Y200
N2005 CTABEND
LOOP20:
N2006 IF ($A_DLB[0] == 0) GOTOB LOOP20
N2010 LEADON(Y,Z,1)
LOOP25:
N2030 IF ($A_DLB[0] > 0) GOTOB LOOP25
N2090 LEADOF(Y,Z)
140
Comment
; Initialize loop counter
; Traverse axis Z to the starting position
; Identifier for NCU2: Axis Z is assigned
;
; Increment loop counter
; Traversing the leading value axis Z
; Traversing the leading value axis Z
; Traversing the leading value axis Z
;
; Identifier for NCU2: Axis Z is free
Comment
; Initialize table 1
;
; Traverse axes Y, Z into the starting position
; Table definition ON
;
Intermediate point 1
;
Intermediate point 2
; Table definition OFF
;
; Wait for NCU1
;
=> close coupling
;
; Keep the coupling until NCU1 no longer traver-
ses the leading value axis
;
=> open coupling
Function Manual, 10/2015, 6FC5397-1BP40-5BA3
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents