Herunterladen Inhalt Inhalt Diese Seite drucken

Lenze 9300 Servo PLC Handbuch Seite 75

Vorschau ausblenden Andere Handbücher für 9300 Servo PLC:
Inhaltsverzeichnis

Werbung

5.6.2
Beispielschrittkette "SpeedSequence"
Ausgangsaktion Init:
(* First, jump into state positioning of template *)
g_bPositioningEnable:=TRUE;
Eingangsaktion Step1:
(* Set mode of positioning to Speed *)
(* −−> Also possible is 2 instead of Speed *)
g_byPositioningMode:=Speed;
(* Copy 1st profile to g_wMotionProfileNumber *)
(* −−> Also possible is the accordance number in enum list *)
g_wMotionProfileNumber:=Profile19;
(* Initialization of Timer to generate transition for the next step, *)
(* because no Done state comes to g_wMotionControlNumber *)
SpeedTimer(IN:=TRUE, PT:=t#400ms);
Ausgangsaktion Step1:
(* Reset SpeedTimer, to start new timer procedure at next step *)
SpeedTimer(IN:=FALSE);
Transition Trans1:
L
Template Positioner
PROGRAM SpeedSequence
(* Example of a positioning sequence in mode Speed *)
(* with 3 destinations *)
VAR_INPUT
SFCInit
(* TRUE: The sequence is fixed in step Init *)
END_VAR
VAR
SpeedTimer : TON;
(* Timer for start different velocity profiles *)
(* without destinations *)
END_VAR
TP Positioner Servo PLC 5.0 DE
Zustände & Funktionen
Funktion "StandardPositioning"
: BOOL;
5−41

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis