====== Licensed Feature Check ====== ===== Function Name ===== CheckProductFeatureLicense ===== Call in ST ===== program test var feature : string := "feature-oem-1"; licenseResult : int; end_var (* 0 = licensed with a value, 31 = licensed without a value, 500 = not licensed *) (* the value associated with the key/flag cannot currently be retrieved *) licenseResult := CheckProductFeatureLicense(feature); end_program ===== Description ===== The ''CheckProductFeatureLicense'' function can be used at runtime to determine whether the active license contains a specific key/flag. The result can then be used, for example, to control subsequent program execution. The key is actually represented by a key-value pair. Support for working with the "value" component is planned for the future. ===== Inputs ===== |Input |Type |Description | |feature |string_ref |Text identifier of the key to be checked | ===== Outputs ===== |Output |Type |Description | |=> |INT |0 - the key is present in the license and has an associated value, \\ 31 - the key is present in the license but has no associated value, \\ 500 - the key is not present in the license |