Rockwell Automation 1794-Lxxxx PhaseManager User Manual

Page 37

Advertising
background image

Publication LOGIX-UM001B-EN-P - April 2010

37

Guidelines

Chapter 3

Use the empty phase state routine to
complete phase execution

Unlike normal program routines, phase state routines are called by the batch manager (not
other program routines(, so they always have the potential of being called.

In the configuration for a phase state routine, if the Complete State Immediately if not
Implemented option is checked in RSLogix 5000 programming software, version 18 or later, an
implemented, but empty (no logic), phase state routine behaves the same as an implemented
phase state routine. The state immediately completes and execution of the phase continues.
The phase then enters the next state in the state machine.

In RSLogix 5000 programming software, version 16 and earlier, if a phase enters a state for
which a state routine exists, but contains no logic, execution of the phase stops. The routine
does complete, but there is no logic to execute.

Choose from the following if you import a new state routine and in the Online Options dialog
box.

• Import Logic Edits as Pending, an empty routine is created in the controller and the

pending edits exist in the offline project.

• Accepts Program Edits, an empty routine is created in the controller and the logic is placed

in a test edits container in the routine. If you are not actively testing edits, then the routine
appears as empty when running.

• Finalize All Edits in Program, the routine is created with the new logic and does not appear

empty.

In the first two cases, if the Complete State Immediately if not Implemented option is
checked, the empty routine will complete immediately and allow phase execution to continue.

Use the PFL instruction to signal a fault

The Equipment Phase Failure (PFL) instruction sets a failure code for an equipment phase. Use
the code to signal a specific failure such as the fault of a specific device.

• The PFL instruction writes a code to the failure member for the equipment phase.
• To see the failure code of an equipment phase, look at the phase_name.Failure tag.
• The failure code stays until any of the following happens:

• A PFL instruction sets the failure code to a larger number.

• The equipment phase transitions from the resetting state  idle state.

• A PCLF instruction clears the failure code.

• FactoryTalk Batch software clears the failure code.

See

page 72

for more information.

Use a PCLF instruction to clear a failure
code

The Equipment Phase Clear Failure (PCLF) instruction clears the failure code for an equipment
phase.

• A CLR instruction, MOV instruction, or assignment (:=) d doesn’t change the failure code of

an equipment phase.

• If you are testing a PCLF instruction, make sure RSLogix 5000 software doesn’t own the

equipment phase. The PCLF instruction doesn’t work if RSLogix 5000 software owns the
equipment phase.

See

page 76

for more information.

Guideline

Details

Advertising
This manual is related to the following products: