AddEvent_Phase
The
ADDEVENT_PHASE
execute allows an external application to append an event in a FactoryTalk Batch
electronic batch record file using a phase name that is currently executing. Unlike other AddEvent
executes, the complete recipe path is automatically entered into the electronic batch record.The format and return for this execute includes:
Execute Format | A FactoryTalk Batch Server supports an execute with this format:[ADDEVENT_PHASE ( Item, UserID, Phase, Type, Desc, Value, EU )] | |
where: | Item | Item name as specified by the client. |
UserID | User ID entered into the event journal with this event. | |
Phase | Phase associated with this event. | |
Type | Type of event being added. | |
Desc | Description of the event being added. | |
Value | Value of the event being added. | |
EU | (optional) Engineering units associated with the event. | |
Action | A successful ADDEVENT_PHASE execute places the event into the specified electronic batch record associated with the batch using the specified phase (equipment phase). The FactoryTalk Batch Server automatically completes these fields: TIME, AREA, RECIPE, PHASE_DESC, PHASE, PROCCELL, UNIT, and UNIQUE_ID. If the batch product is configured for signature confirmation of comments, then adding the event record to the event journal is queued pending a successful signature request signoff. | |
Return Format | SUCCESS: | SUCCESS: <ActionID> | FAIL: <message> | |
where: | ||
Field | Format | Description |
<ActionID> | ASCII – Integer | Action ID associated with signature(s) generates as a result of the potential prompt response. The prompt response is not processed unless all signature requests are successfully signed off. |
<message> | ASCII - String | Error message appropriately formatted for operator display. |
The following table shows an example of the return on this execute.
Example: | An execute string consisting of: [ADDEVENT_PHASE(Item,Station5\Operator,NP_ADDDAIRY_M1,Comment,OperatorComment,This is a comment)] Could return: SUCCESS:997 |
Provide Feedback