Messages
The
MESSAGES
execute obtains a message list associated with a particular phase.The format and return for this execute includes:
Execute Format | A FactoryTalk Batch Server supports an execute string with the MESSAGE keyword. The execute string format:[MESSAGES( Item,UserID,PhaseID )] | ||
where: | Item | Item name as specified by the client. | |
UserID | User identification entered into the event journal associated with this event. | ||
PhaseID | Phase’s Equipment ID as configured in FactoryTalk Batch Equipment Editor . | ||
Action | A successful MESSAGES execute places the message string into the item. | ||
Return Format | The MESSAGES execute returns in this format: <MessageList> | ||
where: | |||
<MessageList> | is | <Messages> | FAIL: <message> | FAILED | NullString | |
<Messages> | is | <ID> , <MessageString> \crlf <MessageList> | |
where: | |||
Field Name | Format | Description | |
<ID> | ASCII - String | Unique ID of the message string. | |
<MessageString> | ASCII - String | Message string associated with the ID. |
The following table shows an example of the return on this execute.
Example: | An execute string consisting of: MESSAGES(PC2Messg,UserID,36) Could place this data in the item PC2Messg for the client: 1,FV101_OPEN \crlf 2,FV101_CLOSED \crlf |
Provide Feedback