Current Status Code Groups
Previous Topic  Next Topic 


Use Equipment Status Code Groups in Expressions


This example will show how to use Equipment Status Groups along with the PCSDB current status code variables to determine if a status is active.


The first step is to ensure that the appropriate equipment statuses have been defined.  Second, the equipment status groups need to be defined, and the equipment statuses have been added to the groups.


In this scenario we'll create a planned downtime group called Lock that will contain all the planned downtimes that should not automatically end when a cycle starts.  This group will contain downtimes such as In Setup, First Article, Preventative Maintenance, etc.


The DX Current Planned Downtime Status Code variable will be used which can be selected for the list of PCSDB variables.  After selecting the variable the group identifier parameter needs to be added using the format {identifier.group{groupName}}.  For our scenario we want to add this variable to our cycle start expression to exclude a cycle start from taking place when the machine is in a downtime within the specified groups.


The following would be added to the existing cycle start expressions.

AND ([PCSDB.current_pdt_status_code] {identifier.group{Lock}} = False)