PHASE_EXEC Configuration File Description
- Last UpdatedJun 06, 2017
- 2 minute read
Default configurations for Phase Block Status values should correspond in both the Physical Model (Properties) and PHASE_EXEC files as shown in the following table.
|
Physical Model |
PHASE_EXEC |
Value |
Bit Position |
Comment |
|---|---|---|---|---|
|
READY |
PREADY |
1 |
1 |
S88 IDLE |
|
RUN |
PRUN |
4 |
3 |
S88 RUNNING |
|
DONE |
PDONE |
8 |
4 |
S88 COMPLETE |
|
ABORTED |
PABORTED |
16 |
5 |
|
|
HELD |
PHELD |
2 |
2 |
|
|
INTERLOCKED |
PINTERLOCKED |
32 |
6 |
EXTENSION TO S88 |
Default configurations for Unit and Phase Block Batch Control values should correspond in both the TagMap and PHASE_EXEC files as shown in the following table.
|
Physical Model |
PHASE_EXEC |
Value |
Bit Position |
|---|---|---|---|
|
HOLD |
UHOLD/PHOLD |
1 |
1 |
|
RESTART |
URESTART/PSTART |
2 |
2 |
|
ABORT |
UABORT/PABORT |
3 |
4 |
|
START |
PSTART |
7 |
64 |
|
RESET |
PRESET |
8 |
128 |
INDEPENDENT_SEQUENCE
CONSTANTS
#define NUM_ID 0 /* Adjust for additional equipment compounds */
#define IDNAM1 " /* Enter Names of equipment compounds */
#define BATCHID SN0010 /* Assign Unit Block Batch ID for LOOPID use */
#define NUM_OP 2 /* Adjust for Phase Blocks */
#define OPNAM1 "SFC_PHASE" /* Enter Names of Sequence Blocks */
#define OPNAM2 "HLBL_PHASE"
/* Assign Batch Control Word */
#define UNITCONTROL II0007 /* ICC connect to :UNIT.II0007 */
#define UHOLD 1 /* Assign Batch Control Bits */
#define URESTART 2
#define UABORT 4
#define ABORT_STEP II0006 /* Assign Phase Block Abort Step Word */
#define PCONTROL II0007 /* Assign Phase Block Control Word */
#define PHOLD 1 /* Assign Batch Control Bits */
#define PRESTART 2
#define PABORT 4
#define PSTART 64
#define PRESET 128
#define PSTATUS II0008 /* Assign Phase Block Status Word */
#define PREADY 1 /* Phase Block Status Word values */
#define PHELD 2
#define PRUN 4
#define PDONE 8
#define PABORTED 16
#define PINTERLOCKED 32
#define UNITAVAIL II0008 /* ICC connect to :UNIT.II0008 */
/* Not available <> 0 */
Default configurations for phase block status values and for unit block batch control values should correspond to both the TagMap and PHASE_EXEC files as shown in the following table.
|
Status/Control Value |
TagMap |
Phase_Exec |
|---|---|---|
|
Phase Block Status Values |
||
|
READY (PREADY) |
1 |
1 |
|
HELD (PHELD) |
2 |
2 |
|
RUN (PRUN) |
3 |
4 |
|
DONE (PDONE) |
4 |
8 |
|
ABORTED (PABORTED) |
5 |
16 |
|
INTERLOCKED (PINTERLOCKED) |
6 |
32 |
|
Unit Block Batch Control Values |
||
|
UNIT_HOLD (UHOLD) |
1 |
1 |
|
UNIT_RESTART (URESTART) |
2 |
2 |
|
ABORT (UABORT) |
3 |
4 |