Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK 840D sl Funktionshandbuch Seite 625

Mit cnc-software 4.5 sp2
Vorschau ausblenden Andere Handbücher für SINUMERIK 840D sl:
Inhaltsverzeichnis

Werbung

Programmierung
GOTOF LABEL1_CONT
LABEL1_AC: SPOS[1]=AC($P_SUB_SPOSIT) SPOS[2]=AC($P_SUB_SPOSIT)
GOTOF LABEL1_CONT
LABEL1_ACP: SPOS[1]=ACP($P_SUB_SPOSIT) SPOS[2]=ACP($P_SUB_SPOSIT)
GOTOF LABEL1_CONT
LABEL1_ACN: SPOS[1]=ACN($P_SUB_SPOSIT) SPOS[2]=ACN($P_SUB_SPOSIT)
LABEL1_CONT:
N2250 ELSE
N2270 M1=19 M2=19
N2280 ENDIF
N2285 DELAYFSTOF
N2290 COUPON(S2,S1)
N2410 ELSE
N2420 ;ab hier Bearbeitung weiterer Ersetzungen
...
N3300 ENDIF
...
N9999 RET
LABEL_ERR: SETAL(61000)
Ersetzungsunterprogramm "LANG_SUB", Variante 2
Flexibilität durch indirekte Adressierung über Systemvariable (Leitspindel: $P_SUB_LA,
Folgespindel: $P_SUB_CA).
Programmierung
N1000 PROC LANG_SUB DISPLOF SBLOF
N1010 DEF AXIS _LA
N1020 DEF AXIS _CA
N1030 DEF INT _LSPI
N1040 DEF INT _CSPI
...
N2100 IF($P_SUB_AXFCT==2)
N2110 ;Ersetzung von SPOS/SPOSA/M19 bei aktiver Synchronspindelkopplung
N2120 _LA=$P_SUB_LA
N2130 _CA=$P_SUB_CA
N2140 _LSPI=AXTOSPI(_LA)
N2180 _CSPI=AXTOSPI(_LA)
N2185 DELAYFSTON
N2190 COUPOF(_CA,_LA)
N2200
N2210 IF($P_SUB_SPOS==TRUE) OR ($P_SUB_SPOSA==TRUE)
N2220 ;SPOS und SPOSA werden auf SPOS abgebildet
Grundfunktionen
Funktionshandbuch, 03/2013, 6FC5397-0BP40-3AA1
K1: BAG, Kanal, Programmbetrieb, Reset-Verhalten
8.15 Ersetzung von Funktionen durch Unterprogramme
Kommentar
; Spindel mit M19 positionieren
; Leit- und Folgespindel
; Ende Ersetzung SPOS, SPOSA
; Ende Stopp-Delay-Bereich
; Synchronspindelkopplung aktivieren
; Ende Ersetzungen
; Normales Programmende
; Fehler aufgetreten
Kommentar
; Leitachse/-spindel
; Folgeachse/-spindel
;
Leitspindelnummer (programmierte
;
Spindel)
; Folgespindelnummer
; Achsname der Leitspindel
; Achsname der Folgespindel
; Nummer der Leitspindel
; Nummer der Folgepindel
; Beginn Stopp-Delay-Bereich
; Synchronspindelkopplung deaktivieren
; Leit- und Folgespindel positionieren:
625

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Sinumerik 840de slSinumerik 828d

Inhaltsverzeichnis