Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK 840D sl Funktionshandbuch Seite 701

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

Werbung

Hauptprogramm
Programmierung
PROC MAIN
...
N210 COUPON(S2,S1)
N220 SPOS[1]=100
...
N310 G01 F1000 X100 M19
Ersetzungsunterprogramm "LANG_SUB", Variante 1
Optimiert auf Einfachheit und Geschwindigkeit durch direkte Adressierung der Spindeln (S1:
Leitspindel, S2: Folgespindel).
Programmierung
N1000 PROC LANG_SUB DISPLOF SBLOF
N2100 IF($P_SUB_AXFCT==2)
N2110 ;Ersetzung von SPOS/SPOSA/M19 bei aktiver Synchronspindelkopplung
N2185
N2190
N2200
N2210
N2220
N2230
LABEL1_DC:
LABEL1_IC:
LABEL1_AC:
LABEL1_ACP: SPOS[1]=ACP($P_SUB_SPOSIT) SPOS[2]=ACP($P_SUB_SPOSIT)
LABEL1_ACN: SPOS[1]=ACN($P_SUB_SPOSIT) SPOS[2]=ACN($P_SUB_SPOSIT)
LABEL1_CONT:
N2250
N2270
Grundfunktionen
Funktionshandbuch, 12/2018, A5E40870716A AB
DELAYFSTON
COUPOF(S2,S1)
IF($P_SUB_SPOS==TRUE) OR ($P_SUB_SPOSA==TRUE)
;SPOS und SPOSA werden auf SPOS abgebildet
CASE $P_SUB_SPOSMODE OF \
0 GOTOF LABEL1_DC \
1 GOTOF LABEL1_IC \
2 GOTOF LABEL1_AC \
3 GOTOF LABEL1_DC \
4 GOTOF LABEL1_ACP \
5 GOTOF LABEL1_ACN \
DEFAULT GOTOF LABEL_ERR
SPOS[1]=DC($P_SUB_SPOSIT) SPOS[2]=DC($P_SUB_SPOSIT)
GOTOF LABEL1_CONT
DELAYFSTOF
SPOS[1]=IC($P_SUB_SPOSIT) SPOS[2]=IC($P_SUB_SPOSIT)
DELAYFSTON
GOTOF LABEL1_CONT
SPOS[1]=AC($P_SUB_SPOSIT) SPOS[2]=AC($P_SUB_SPOSIT)
GOTOF LABEL1_CONT
GOTOF LABEL1_CONT
ELSE
M1=19 M2=19
K1: BAG, Kanal, Programmbetrieb, Reset-Verhalten
10.18 Ersetzung von Funktionen durch Unterprogramme
Kommentar
; Synchronspindelkopplung aktivieren
; Leitspindel mit SPOS positionieren
; Leitspindel mit M19 positionieren
Kommentar
; Beginn Stopp-Delay-Bereich
; Synchronspindelkopplung ausschalten
; Leit- und Folgespindel positionieren
; Spindel mit M19 positionieren
; Leit- und Folgespindel
701

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Sinumerik 840de sl

Inhaltsverzeichnis