ns=2;s=DEPRAG Smart/Devices/General/OpenProtocol/OpenProtocolDevices/0/SetVehicleIdNumber
Used to transmit an annotation (equivalent to VIN or VehicleId) to the device.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bOpenProtocolSetVehicleIdNumber : BOOL;
OutputDataOpenProtocolSetVehicleIdNumber : ST_VoidOutputData;
hrOpenProtocolSetVehicleIdNumber : HRESULT;
fbOpenProtocol : FB_OpenProtocol;
END_VAR
hrOpenProtocolSetVehicleIdNumber := fbOpenProtocol.SetVehicleIdNumber(
bExecute := bOpenProtocolSetVehicleIdNumber,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
sIdentifier := 'Test',
OutputData => OutputDataOpenProtocolSetVehicleIdNumber);
IF hrOpenProtocolSetVehicleIdNumber <> S_FALSE THEN
bOpenProtocolSetVehicleIdNumber := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".