D-22Instruction Set Quick Reference

Instruction

 

 

 

Description

 

 

 

 

 

 

Sequencer Output

When the rung goes from false-to-true, the SQO instruction

 

 

SQO

 

 

 

 

SEQUENCER OUTPUT

 

SQO

increments to the next step in the sequencer File (#N7:1). The

 

 

 

data in the sequencer file is transferred through a Mask (0F0F)

 

 

File

#N7:1

# Status Bits:

 

 

to the Destination (O:014) for every scan that the rung

 

 

Mask

0F0F

 

EN - Enable

remains true.

 

 

Dest

O:014

 

DN - Done Bit

 

 

 

Control

R6:20

 

ER - Error Bit

See page F-8 for a description of prescan operation for

 

 

Length

4

 

 

 

 

 

this instruction.

 

 

Position

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program Control Instructions

 

Instruction

 

 

 

Description

 

 

 

 

 

 

 

 

( MCR )

 

 

Master Control Reset

If the input conditions are true, the program scans the rungs

 

 

 

 

 

 

 

 

 

 

MCR

between MCR instruction rungs and processes the outputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

normally. If the input condition is false, rungs between the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MCR-instruction rungs are executed as false.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

 

 

 

 

Jump

If the input conditions are true, the controller skips rungs by

 

 

 

 

 

( JMP )

 

 

JMP

jumping to the rung identified by the label (10).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

 

 

 

 

Label

When the controller reads a JMP instruction that corresponds

 

 

 

 

LBL

to label 10, the controller jumps to the rung containing the label

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LBL

 

 

 

 

 

and starts executing.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Important: Must be the first instruction on a rung.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FOR Loop

The controller executes the rungs between the FOR and the

 

 

 

 

FOR

 

 

 

 

 

 

 

 

 

FOR

 

 

FOR

NXT instruction repeatedly in one program scan, until it reaches

 

 

 

 

 

 

 

the terminal value (10) or until a BRK instruction aborts the

 

 

 

 

Label Number

0

 

 

 

 

 

 

operation. Step size is how the loop index is incremented.

 

 

 

 

Index

N7:0

 

 

 

 

 

 

Initial Value

0

 

See page F-8 for a description of prescan operation for

 

 

 

 

Terminal Value

10

 

this instruction.

 

 

 

 

Step Size

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NXT

 

NEXT

 

Label Number

0

Next

NXT

The NXT instruction returns the controller to the corresponding FOR instruction, identified by the label number specified in the FOR instruction. NXT must be programmed on an unconditional rung that is the last rung to be repeated in a For-Next loop.

BRK

Break

When the input conditions go true, the BRK instruction aborts a

BRK

For-Next loop.

Publication 1785-UM012D-EN-P - July 2005

Page 322
Image 322
Bradley Smoker PLC-5 user manual Program Control Instructions