|
ED
|
not used
|
RT
|
avaliable
|
Returns the limit administration of the variable. In the limit administration you can access the single limits with their most important information.
Sub Limit() Dim zVariables As Variables 'Object from type Variables Dim zVariable As Variable 'Child object from type Variables Dim zLimit As Limit 'Object from type Limit 'Fill the objects Set zVariables = thisProject.Variables 'Read the "TestVariable" variable Set zVariable = zVariables.Item("TestVariable") 'Read the first limit of the variable Set zLimit = zVariable.Limits.Item(0) 'Show the alarm class Debug.Print "AlarmClass = " & zLimit.AlarmClass 'Show the limit text Debug.Print "Limit text = " & zLimit.Text 'Show the limit value Debug.Print "Limit value = " & zLimit.Value 'Show if the value is the maximum Debug.Print "Acts on maximum = " & zLimit.IsMax End Sub