Manufacturer

Read TwinCAT TIA

ns=2;s=DEPRAG Smart/SoftwareItemIdentification/Manufacturer

A string indicating the publisher of the software.

Examples:

In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:

Beckhoff parameter:

    bReadManufacturer
    A boolean variable that can be used to trigger the execution of the ReadManufacturer command.
    OutputReadManufacturer
    A variable of type "STRING(80)" into which the return value of the ReadManufacturer property is written.
    hrReadManufacturer
    This can be used to monitor the execution of the command. Error codes have the type "HRESULT".
    fbSoftwareItemIdentification
    An instance of the "FB_SoftwareItemId" function block supplied with the DEPRAG Smart library.
    ConnectionHandle
    "ConnectionHandle" received when establishing a connection between DEPRAG Smart Server and your OPC UA client.


VAR
   bReadManufacturer    : BOOL;
   OutputReadManufacturer : STRING(80);
   hrReadManufacturer  : HRESULT;

   fbSoftwareItemIdentification : FB_SoftwareItemId;
END_VAR

hrReadLastTimeForUpdateCheck := fbSoftwareItemIdentification.ReadManufacturer(
      bExecute := bReadManufacturer
      ConnectionHandle  := depragSmartConnection.ConnectionHandle,
      OutputData   => OutputReadManufacturer);

IF hrReadManufacturer <> S_FALSE THEN 
   bReadManufacturer := 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".