Validity: Rule, Task
This variable displays via a mask the enabled features in accordance with the license file in the /key/ folder of the Compact flash.
Syntax |
I32 lic_flags |
---|---|
Attributes |
Read only. Bit-accessible |
The meaning of the bits is as follows:
Bit |
Hexadecimal value |
Description |
---|---|---|
BIT 0 |
0x00000001 |
Ladder enabled |
BIT 1 |
0x00000002 |
RPE enabled |
BIT 2 |
0x00000004 |
HW qualified for use |
BIT 3 |
0x00000008 |
Enabled management of axes with analog reference |
BIT 4 |
0x00000010 |
Enabled management of axes in FieldBUS |
BIT 5 |
0x00000020 |
Rpe enabled for 1 major Axes Group |
BIT 6 |
0x00000040 |
Rpe enabled for 2 major Axes Group |
BIT 7 |
0x00000080 |
Rpe enabled for 3 major Axes Group |
BIT 8 |
0x00000100 |
Rpe enabled for 4 major Axes Group |
NOTE: AXES_GROUPs with 1 or 2 axes are not calculated in the number of AGs that can be used under the license.
Example
from Shell RDE : DV lic_flags ; the mask with the enabled features is displayed |
Example
; from program R3: ; based on the flags enabled in the license file ; I store in the string registers sr(1)-sr(5) ; the appropriate strings IF (lic_flags r_and 0x1) sr(1) = "Ladder enabled" ELSE sr(1) = "Ladder not enabled" ENDIF IF (lic_flags r_and 0x2) sr(2) = "RPE enabled" ELSE sr(2) = "RPE not enabled" ENDIF IF (lic_flags r_and 0x4) sr(3) = "HW qualified for use" ELSE sr(3) = "HW NOT qualified for use" ENDIF IF (lic_flags r_and 0x8) sr(4) = "Analog reference enabled" ELSE sr(4) = "Analog reference not enabled" ENDIF IF (lic_flags r_and 0x10) sr(5) = "CanOpen axis management enabled" ELSE sr(5) = "CanOpen axis management not enabled" ENDIF |