Mover-Befehle abspeichern

Mit der Befehlsverlauf-Funktion können bis zu 25 Befehle für einen Mover gespeichert werden. Jeder Befehl enthält den Befehlstyp, die Station, einen Text und einen Zeitstempel.

Mover-Befehle abspeichern 1:

Wird kein eigener Zeitstempel eingetragen, fügt die Funktion automatisch einen Zeitstempel hinzu.

Folgende Aufrufe sind für das Verwalten des Befehlsverlaufs erforderlich:


stCommand         : ST_TcIoXtsMoverCommand;

refCommandHistory : REFERNCE TO ARRAY[1..TcIoXtsEnvironmentParameterList.MaxMessageCommandHistory] OF ST_TcIoXtsMoverCommand;

//preparing the message to store in command history
//if there is no time stamp in the message, the program will add one automatically
stCommand.sCommandType   := ‘MoverAbsoluteCA‘;
stCommand.sStation       := ‚Station2’;
stCommand.sText          := ‚Pos:1000,Acc/Dec:10000‘;

//adding message int command history
fbXtsEnvironment.XpuTcIo(1).MoverTcIo(1).AddCommand(stCommand);

//read command history
refCommandHistry REF= fbXtsEnvironment.XpuTcIo(1).MoverTcIo(1).P_CommandHistory;

//clear all messages in command history
fbXtsEnvironment.XpuTcIo(1).MoverTcIo(1).ClearCommandHistory();