ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/Settings/DateTime/GetDateTimeSetting
Gets the current system time of the sequence controller.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstGetDateTimeSetting : BOOL;
outputAstGetDateTimeSetting : ST_AstGetDateTimeSettingOutputData;
hrAstGetDateTimeSetting : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstGetDateTimeSetting := fbAst.GetDateTimeSetting(
bExecute := bAstGetDateTimeSetting,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
OutputData => outputAstGetDateTimeSetting);
IF hrAstGetDateTimeSetting <> S_FALSE THEN
bAstGetDateTimeSetting := FALSE;
END_IF
Für Beispiele und Erklärungen bezüglich der Aufrufe von Knoten via Siemens TIA Portal sei an dieser Stelle auf den Unterpunkt "Siemens TIA Portal" in Abschnitt "Erste Schritte" verwiesen.