Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK 840D sl Programmierhandbuch Seite 68

Vorschau ausblenden Andere Handbücher für SINUMERIK 840D sl:
Inhaltsverzeichnis

Werbung

Flexible NC-Programmierung
2.2 Indirekte Programmierung
Wert
7
8
9
10
11
12
13
14
15
16
Beispiel
Bei einer aktiven Synchronspindelkopplung zwischen der Leitspindel S1 und der Folgespindel
S2 wird durch den SPOS-Befehl im Hauptprogramm der folgende Ersetzungszyklus zur
Positionierung der Spindeln aufgerufen.
Die Positionierung erfolgt über die Anweisung in N2230:
SPOS[1]=GP($P_SUB_SPOSIT,$P_SUB_SPOSMODE) SPOS[2]=GP($P_SUB_SPOSIT,
$P_SUB_SPOSMODE)
Die anzufahrende Position wird aus der Systemvariablen $P_SUB_SPOSIT, der
Positionsanfahrmodus wird aus der Systemvariablen $P_SUB_SPOSMODE gelesen.
Programmcode
N1000 PROC LANG_SUB DISPLOF SBLOF
...
N2100 IF($P_SUB_AXFCT==2)
N2110
N2185 DELAYFSTON
N2190 COUPOF(S2,S1)
N2200
N2210 IF($P_SUB_SPOS==TRUE) OR
($P_SUB_SPOSA==TRUE)
N2220
N2230
$P_SUB_SPOSMODE)
$P_SUB_SPOSMODE)
N2250 ELSE
N2260
N2270 M1=19 M2=19
N2280 ENDIF
N2285 DELAYFSTOF
N2290 COUPON(S2,S1)
N2410 ELSE
68
Bedeutung
PC
DAC
DIC
RAC
RIC
CAC
CIC
CDC
CACP
CACN
SPOS[1]=GP($P_SUB_SPOSIT,
SPOS[2]=GP($P_SUB_SPOSIT,
Zulässig bei:
-
POS, POSA,AX, Achsadresse
POS, POSA,AX, Achsadresse
POS, POSA,AX, Achsadresse
POS, POSA,AX, Achsadresse
POS, POSA
POS, POSA
POS, POSA
POS, POSA
POS, POSA
Kommentar
; Ersetzung des SPOS / SPOSA / M19-Be-
fehls bei aktiver Synchronspindelkopplung
; Beginn Stopp-Delay-Bereich
; Synchronspindelkopplung deaktivieren
; Leit- und Folgespindel positionieren
; Spindel mit SPOS positionieren:
; Spindel mit M19 positionieren:
; Leit- und Folgespindel positionieren
; Ende Stopp-Delay-Bereich
; Synchronspindelkopplung aktivieren
Programmierhandbuch, 10/2015, 6FC5398-2BP40-5AA3
Arbeitsvorbereitung

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Sinumerik 828d

Inhaltsverzeichnis