Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK MC PLC Funktionshandbuch Seite 616

Inhaltsverzeichnis

Werbung

Referenz zum PLC-Grundprogramm
10.6 Funktionen (FC)
Spindel pendeln
// Spindel (Maschinenachse 5) pendeln, starten und stoppen
// #statStart: Bool;
// #statStop: Bool;
// #tempPositionReached: Bool;
// #tempError: Bool;
// #tempErrorCode: Byte;
// Auftragsstart zum Starten: #statStart := TRUE;
// Auftragsstart zum Stoppen: #statStop := TRUE;
"LBP_CtrlAxisSpindle"(Start := #statStart,
IF #tempPositionReached OR #tempError THEN
END_IF;
Teilungsachse verfahren
// Teilungsachse (Maschinenachse 4) auf nächste Teilungsposition
positionieren
// #statStart: Bool;
// #tempPositionReached: Bool;
// #tempError: Bool;
// #tempErrorCode: Byte;
// Auftragsstart: #statStart := TRUE;
"LBP_CtrlAxisSpindle"(Start := #statStart,
616
Stop
:= #statStop,
Funct
:= 3,
Mode
:= 0,
AxisNo
:= 5,
Pos
:= 0,
FRate
:= 0,
InPos
=> #tempPositionReached,
Error
=> #tempError,
State
=> #tempErrorCode);
#statStart := FALSE;
#statStop := FALSE;
Stop
:= FALSE,
Funct
:= 4,
Mode
:= 1,
AxisNo
:= 4,
Pos
:= +1,
FRate
:= 60.0,
InPos
=> #tempPositionReached,
Error
=> #tempError,
// Spindel pendeln
// 5. Maschinenachse
// Teilungsachse positionieren
// Inkrementell positionieren
// 4. Maschinenachse
// +1 Teilungsposition
Funktionshandbuch, 06/2019, A5E47437861A AA
PLC

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis