Status Control
Customising Status Control using PML
:
Using the StatusData PML Object
: Example to Set and Get Status Data
Example to Set and Get Status Data
The example is for the case where there is one available status definition for the current element. The set of commands assigns that status to the current element, promotes it, prints out the data, and gets the current status value description into a string variable.
!myStatus = object statusData()
!myStatus.assign()
!myStatus.promote()
!myStatus.print()
!currentStatus = !myStatus.description
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.