Configuring General SRO Attributes
- Last UpdatedMay 04, 2023
- 2 minute read
In Object Editor, the General tab includes attributes that are common to the SRO.
Response Type
Specifies whether the calls to the middleware are to be executed synchronously or asynchronously. The values are as follows:
With Response (Synchronous)
When you select this value, the object waits for a response from the middleware after submitting a request to the middleware to write the data in the MES database.
Without Response (Asynchronous)
When you select this value, a call from the middleware is sent to the message queue, and the object does not wait for a response.
The calls are submitted to the message queue when it communicates with the object. An exception is logged each time the object is unable to submit the message to the message queue.
Note: In the current version of MES, the Response Type list on the General tab is disabled, and it defaults to With Response mode.
Default Delay Timer
Specifies the duration between two consecutive measurement data for a characteristic within a sample when collecting data automatically from the I/O. The Default Delay Timer value is used only when there is no value available from the MES database.
Auto Reset
Specifies the behavior of the Status attribute.
-
If you select this flag, the status attribute is reset to Ready after it completes its call to the middleware. This occurs if the result of the last call is successful. Otherwise, the status is reset to Error.
-
If you do not select this flag, the Status attribute is reset to Done after it completes its call to the middleware. This occurs if the result of the last call is successful. Otherwise, the status displays Error. If the object has to execute another command, you must set the status to Ready in the code manually by using the Reset command.
The status attribute can have one of the following values:
Ready
Indicates that the command group is ready to process the next command when its attribute is set to True. A trigger attribute can initiate an MES transaction only when the status of the command group is Ready.
Busy
Indicates that the command group is currently processing a command in the middleware. Any command attribute that is set to True from the group, except the one that initiates the call to the middleware, is rejected and is reset to False.
Error
Indicates that the last call to the middleware resulted in an error. The caller must acknowledge the error by resetting the status to Ready before the next command from this group is processed.
Done
Indicates that the result of the last call to the middleware is successful. The status is reset to Ready. This status is available when the instance of an object is set to manual mode.