This function is used to generate the access token from the specified connection string. The access token is required for the connection to the EcoStruxure Machine Advisor application interface.
The return value of type ET_Result indicates the result of the execution. If Ok is indicated, the access token is successfully created.
Inputs | Data Type | Description |
---|---|---|
iqc_sConnectionString |
STRING(255) |
Using this input, the connection string is passed, from which the access token is to generate. |
i_anyAccessToken |
ANY_STRING |
Assign here the variable to which the generated access token is to write. |
i_dtValidityPeriod |
TIME := T#10M |
Using this input, the validity period for the generated access token is specified. The expiration date of the access token is determined by the actual Real-Time Clock (RTC) of the controller plus the given validity period. |
Outputs | Data Type | Description |
---|---|---|
q_dtExpiryDate |
DATE_AND_TIME |
This output provides the expiration date of the generated access token. |
q_sResultMsg |
STRING(80) |
This output provides information about the result of the execution of the function. |