Handling Command attributes
- Last UpdatedNov 04, 2024
- 2 minute read
The SRO performs the following actions when a command attribute is set to True:
-
Enters an error in the error attribute if the entity does not exist in the database or a client session is not started.
-
Rejects the command attribute to be set to True when its state is already True.
-
Rejects the command attribute to be set to True when there is another command from the group to execute its call to middleware. The command attribute and the associated I/O attribute are reset to False.
-
Rejects the command attribute to be set to True when the status of the command group is not Ready. The command attribute and the associated I/O attribute are reset to False.
-
Updates the data from the I/O reference for all the data attributes such as work order, operation, lot, sublot are read, whose configuration is set to read data from I/O.
-
Updates the data and quality for all the data attributes associated with the command.
-
Sets the status of the command group to Busy, and initiates an MES call when all the data attributes are of good quality. Otherwise, an error is logged in the Logger.
-
Updates the command attribute, I/O reference attribute associated to the command attribute, and the status of the command group after a response is received from the middleware for the last call.
The following actions are performed when a command attribute is changed from True to False:
-
Clears the error message and resets the error number to 0.
-
Sets the status of the command group to Ready.
-
The I/O reference attribute is set to False, if the command attribute is associated to an I/O reference.