-

LICENSE_STATUS

TypeFunction block
DescriptionThe function block checks the status of a specific software license on the controller. The STATUS output indicates the status of the license (valid or invalid) after successful execution of the function block. The license entry to be checked is specified at the FIRM_CODE, PRODUCT_CODE, and FEATURE_CODE inputs.

The license entry consists of a unique firm code, a product code, and a feature code. All of them are 32-bit values. The firm code is a unique number which is assigned to the licensor (usually the vendor that provided the license, for example, 60000217 for Phoenix Contact). The product code associated with the license represents the protected and licensed products. Each bit in the feature code represents a product feature.

The license check is started with a rising edge at the REQ input. The FIRM_CODE, PRODUCT_CODE, and FEATURE_CODE input parameters are evaluated in the task cycle following the rising edge at the REQ input. The BUSY output is set to TRUE while the service for checking the license is executed. After completion of the license check, the DONE output is set to TRUE and the result of the license check is indicated at the STATUS output.
NotesFunction blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInputs

REQ

FIRM_CODE

PRODUCT_CODE

FEATURE_CODE

Outputs

DONE

BUSY

ERROR

STATUS
Error codes STATUS values