Phase2

The
PHASE2
execute commands a phase associated with a control strategy to a specified state.
The operator must own the phase to change it.
The following table shows an example of the return on this execute.
Execute Format
A
FactoryTalk Batch
Server supports an execute with this format:
[PHASE2(
Item,UserID,PhaseID,Cmd,BatchID,Unit,
ControlStrategyID
)]
where:
Item
Item name as specified by the client.
UserID
User identification entered into the event journal associated with this event.
PhaseID
Unique Equipment ID for the desired phase.
Cmd
Command for the phase. Valid commands are:
START, STOP, RESET, RESUME, HOLD, RESTART, PAUSE, ABORT, DOWNLOAD, DISCONNECT, AUTO-MODE,
SEMIAUTO-MODE, CLEAR_ FAILURES, TIMER-Complete and TIMER-Reset
BatchID
BatchID required for journals associated with this phase.
Unit
Name of the unit to use with the phase or equipment operation sequence.
Control
StrategyID
Value of the control strategy to use with the phase. If the phase is not Control Strategy enabled, this field must contain negative one (
-1
).
Action
A successful PHASE2 execute results in the specified command either being queued pending a signature confirmation, or being issued to the specified phase.
If the command is valid and a batch does not already exist for manual control of the phase, then a batch is created using the specified
BatchID
,
Unit
, and
Control Strategy
.
A failure message is generated when the following occurs:
  • The command was not legal based on the current state or properties of a phase.
  • The phase is under external control.
  • The equipment ID that is passed does not match the ID of a phase.
Return Format
The item populates with this data:
SUCCESS: | SUCCESS:
<ActionID>
| FAIL:
<message>
| FAILED
where:
Field
Format
Description
<ActionID>
ASCII – Integer
ActionID associated with the signature(s) generated in response to the execute.
<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:
PHASE2(Item,Station2/View,29,START,MAKESTUFF,BIGMIXER,2)
Could return:
SUCCESS:997
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal