Rockwell Automation 1794-Lxxxx PhaseManager User Manual
Page 88

88
Publication LOGIX-UM001B-EN-P - April 2010
Appendix A
Equipment Phase Instructions (PSC, PCMD, POVR, PFL, PCLF, PXRQ, PRNP, PPD, PATT, PDET)
Example:
Relay Ladder
Structured Text
If ThisPhase.StepIndex.1 = 1 (The routine is at step 1.), then
Send the Acquire Resources request to FactoryTalk Batch software. The DataValues tag is a DINT array that contains the
equipment IDs of the resources.
When RQ_Control[0].PC = 1 or RQ_Control[0].ER = 1 (The request is complete or it failed.), then
Done = 1. (This signals the sequence to go to the next step.)
This action executes one time to initialize the data values of the
PXRQ instruction to the equipment IDs of the resources it will
acquire.
If Step_000.FS = 1 (first scan of the step)
Or RQ_Control[0]. PC = 0 (The PXRQ instruction is in process.), then
Send the Acquire Resources request to FactoryTalk Batch software. The
DataValues tag is a DINT array that contains the equipment IDs of the
resources.
If RQ_Control[0]. PC = 1 (The request is complete.), then
Go to the next step.