Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK MC PLC Funktionshandbuch Seite 615

Inhaltsverzeichnis

Werbung

// #tempPositionReached: Bool;
// #tempError: Bool;
// #tempErrorCode: Byte;
// Auftragsstart: #statStart := TRUE;
"LBP_CtrlAxisSpindle"(Start := #statStart,
IF #tempPositionReached OR #tempError THEN
END_IF;
Spindel drehen
// Spindel (Maschinenachse 5) auf 3000 U/min drehen, 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;
PLC
Funktionshandbuch, 06/2019, A5E47437861A AA
Stop
:= FALSE,
Funct
:= 1,
Mode
:= 2,
AxisNo
:= 5,
Pos
:= 90.0,
FRate
:= 600.0,
InPos
=> #tempPositionReached,
Error
=> #tempError,
State
=> #tempErrorCode);
#statStart := FALSE;
Stop
:= #statStop,
Funct
:= 2,
Mode
:= 5,
AxisNo
:= 5,
Pos
:= 0,
FRate
:= 3000.0,
InPos
=> #tempPositionReached,
Error
=> #tempError,
State
=> #tempErrorCode);
#statStart := FALSE;
#statStop := FALSE;
// Spindel positionieren
// kürzester Weg
// 5. Maschinenachse
// Spindel drehen
// Drehrichtung wie M4
// 5. Maschinenachse
Referenz zum PLC-Grundprogramm
10.6 Funktionen (FC)
615

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis