Die Kommandozeilenschnittstelle (CLI) ist eine Option zur PRO
Version, die es einem externen Optimierungstool erlaubt, SERVOsoft®
zu steuern und die Sequenz Auto Update Funktion zu
nutzen. Das externe Programm kann ein Profilgenerator, oder
typischerweise ein Optimierungstool (OT), sein, das die Sequenz mit
jeder Iteration anpasst. Die Sequenzen können gestaltet sein wie
jede, die im Programm erzeugt werden kann, einschließlich
Kurvenprofile, Polynome und Splines sowie mit dynamischen Last- und
Schubprofilen.
Ein OT steuert SERVOsoft® über die CLI. Wenn SERVOsoft® im
CLI-Modus gestartet wird, öffnet es eine spezielle Projektdatei und
startet die Funktion Sequence Auto Update für die
angegegebene Slot-Nummer. Dann beginnt SERVOsoft® den ständigen
Ablauf von Lesen, Berechnen und Ausgeben eines XML-Reports für jede
neue Achssequenz (Seq.txt) die vom OT im „Arbeitsverzeichnis“
bereitgestellt wird. Wenn das OT fertig ist, übergibt es eine
letzte Datei mit einer „Fertig“-Sequenz. Daraufhin wird SERVOsoft®
beendet.
Die CLI benutzt ein Trennzeichen „|“ in der Weise:
SERVOsoft.exe
KommandoTyp|Sichtbarkeit|ProjektDatei|Arbeitsverzeichnis|Betriebsmodus|[SlotNummer]
- KommandoTyp
- Wert: 100
- Ein Integer, das den aktuellen Typ der Schnittstelle
angibt
- Kann in Zukunft bei Änderungen in der Schnittstelle mit
weiteren Werten ergänzt werden
- Sichtbarkeit
- Werte:
- 0 (minimiert)
- 1 (sichtbar)
- Gibt an, ob das Programm minimiert [0] oder sichtbar [1]
läuft
- Kann für die Analyse oder Fehlersuche genutzt werden. Für
schnellere Bearbeitung sollte das Programm minimiert laufen, da
dann die Bedienoberfläche nicht aufgerufen werden muss.
- ProjektDatei
- Voller Pfad und Dateiname der SERVOsoft® [.ssp4]
Porjektdatei
- ArbeitsVerzeichnis
- Gibt an, wo die „Seq.txt“-Datei liegt
- Z.B. “C:\WorkingFolder\Seq.txt”
- Das Ergbenis wird gespeichert unter
“C:\WorkingFolder\Results”
- Betriebsmodus
- Werte:
- 0 (Normal)
- 1 (Max-Stop)
- 2 (Notstrom)
- [SlotNummer]
- Werte: 1, 2, … bis zur Slotnummer des letzten
Antriebsmechanismus in der Projektdatei
- Gibt an, welcher Slot bzw. Achse bearbeitet werden soll
- Wenn nichts angegeben ist, wird standardmäßig die erste
Antriebsachse im Projekt verwendet
The Seq.txt file format is defined by the user in the project
file Axis Sequence as per the Sequence Auto Update
feature. To end the process, the final Seq.txt file should contain
the line “Done”, and optionally, can also include the
{SaveProjectAs} parameter. To continue working on another axis in
the same project, then the Seq.txt file must include the
{NextSlotNumber} parameter.
The syntax is as follows:
Done
{SaveProjectAs=PathAndFilename}
{NextSlotNumber=X}
Where the {} brackets indicate an optional parameter
{SaveProjectAs=PathAndFilename}
- Save the project file to the specified Path and Filename
- This option is provided to save the project file somewhere
other than the working project Path and Filename
- Note: When the process is "Done", the project is automatically
saved to the working project Path and Filename
{NextSlotNumber=X}
- X is the next slot number
- X must be a valid slot number between 1 and the maximum number
of axes in the project, and the X Slot Type must be “Drive Motor
Mechanism” and not a module such as an Infeed, Bleeder, etc.
For example, after working on Axis 1, if you want to start
working on Axis 2, the Seq.txt file will be:
Done
NextSlotNumber=2
And then if you want to save the project and then switch to
another axis, for example, go back to working on Axis 1, the
Seq.txt file will be:
Done
SaveProjectAs=C:\Project ABC\Scenario 5\Test3.ssp4
NextSlotNumber=1
If {NextSlotNumber} has not changed, then the program will
remain on the current Slot Number and keep listening for the next
Seq.txt.
Die Slotnummer ist spezifisch für eine Achse in einem Projekt.
Wenn z.B. ein Projekt zwei Leistungsgruppen enthält, jede mit einem
Einspeise- (Inf) und einem Bremsmodul (Bld) sowei drei Achsen (X,
Y, Z), dann sind das fünf Slots je Leistungsgruppe (PG). Die zehn
Slotnummern sind dann:
TreeView |
Slot |
Abbreviation |
Type |
|
- |
PG1 |
Power Group |
1 |
PG1.Inf1 |
Infeed Module |
2 |
PG1.Ax1 |
Axis |
3 |
PG1.Ax2 |
Axis |
4 |
PG1.Ax3 |
Axis |
5 |
PG1.Bld1 |
Bleeder Module |
|
- |
PG2 |
Power Group |
6 |
PG2.Inf1 |
Infeed Module |
7 |
PG2.Ax1 |
Axis |
8 |
PG2.Ax2 |
Axis |
9 |
PG2.Ax3 |
Axis |
10 |
PG2.Bld1 |
Bleeder Module |
In diesem Beispiel sind die Slots 2 – 4 und 7 – 9 gültig für die
Kommandozeilenschnittstelle, weil sie Antriebsmechanismen sind,
auch als „Achse“ bezeichnet, während die Slots 1, 5, 6 und 10
„Einspeisemodul“ und „Bremsmodul“ -Slots sind. Ein „Modul“-Slot
kann ein Einspeise-, Brems-, Kondensator- oder Energiespeichermodul
(ESM) sein. Obwohl der XML-Report Auslastungsdaten dieser Module
enthält, sind das keine sequenzbasierenden Achsen und können
deshalb nicht in einer seq.txt-Datei angesprochen werden.
Verwandte Themen