Introduction

Add to My manuals
704 Pages

advertisement

Introduction | Manualzz

Chapter 11 Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)

SFC Pause (SFP)

The SFP instruction pauses an SFC routine.

Operands:

Relay Ladder

Operand

SFCRoutine

Name

Type:

ROUTINE

TargetState DINT

Format:

name

Description:

SFC routine to pause immediate tag select one: executing (or enter 0) paused (or enter 1)

Structured Text

SFP(SFCRoutineName,

TargetState);

The operands are the same as those for the relay ladder SFP instruction.

Description:

The SFP instruction lets you pause an executing SFC routine. If an SFC routine is in the paused state, use the SFP instruction again to change the state and resume execution of the routine.

Also, use the SFP instruction to resume SFC execution after using an SFR instruction (see page 462 ) to reset an SFC routine.

Arithmetic Status Flags:

not affected

Fault Conditions:

A Major Fault Will Occur If:

the routine type is not an SFC routine

Fault Type

4

Fault Code

85

460

Publication 1756-RM003K-EN-P - July 2008

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT) Chapter 11

Execution:

Condition:

prescan rung-condition-in is false rung-condition-in is true

EnableIn is set instruction execution postscan

Relay Ladder Action

The rung-condition-out is set to false.

The rung-condition-out is set to false.

The instruction executes.

The rung-condition-out is set to true.

na

Structured Text Action

No action taken.

na na

EnableIn is always set.

The instruction executes.

The instruction pauses or resumes execution of the specified SFC routine.

The rung-condition-out is set to false.

No action taken.

Example:

If sfc_en_p is set, pause the SFC routine named normal. Restart the SFC when

sfc_en_e is set.

Relay Ladder

Pause the SFC routine.

Resume executing the SFC routine.

Structured Text

Pause the SFC routine:

IF (sfp_en_p) THEN

SFP(normal,paused); sfp_en_p := 0;

END_IF;

Publication 1756-RM003K-EN-P - July 2008

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

461

advertisement

Related manuals

advertisement

Table of contents