Instruction Set Quick Reference

D-21

 

 

Instruction

Description

 

 

 

LFL

 

 

 

 

 

 

LIFO LOAD

 

 

Source

N70:1

 

LIFO

#N70:3

 

Control

R6:61

 

Length

64

 

Position

0

 

 

 

 

LIFO Load

When the input conditions go from false-to-true, the controller

LFL

loads N70:1 into the next available element in the LIFO file

 

#N70:3, as pointed to by R6:61. Each time the rung goes from

Status Bits:

false-to-true, the controller loads another element. When the

EN - Enable

LIFO file (stack) is full (64 words have been loaded), the DN bit

Load

is set.

DN - Done Bit

 

EM - Empty Bit

See page F-8 for a description of prescan activities for this

 

instruction.

 

LFU

 

 

 

 

 

 

LIFO UNLOAD

 

 

LIFO

#N70:3

 

Dest

N70:2

 

Control

R6:61

 

Length

64

 

Position

0

 

 

 

 

LIFO Unload

When the input conditions go from false-to-true, the controller

LFU

unloads the last element from #N70:3 and puts it into N70:2.

 

Each time the rung goes from false-to-true, the controller

Status Bits:

unloads another element. When the LIFO file is empty, the EM

EU - Enable

bit is set.

Unload

 

DN - Done Bit

See page F-8 for a description of prescan activities for this

EM - Empty Bit

instruction.

Sequencer Instructions

Instruction

Description

 

 

SQI

SEQUENCER INPUT

File #N7:11

MaskFFF0

Source I:031

Control R6:21

Length4

Position0

Sequencer Input

The SQI instruction filters the Source (I:031) input image data

SQI

through a Mask (FFF0) and compare the result to Reference data

 

(#N7:11) to see if the two values are equal. The operation is

 

controlled by the information in the control file R6:21. When the

 

status of all unmasked bits of the word pointed to by control

 

element R6:21 matches the corresponding reference bits, the

 

rung condition remains true if preceded by a true rung

 

condition.

SQL

SEQUENCER LOAD

File#N7:20

Source I:002

Control R6:22

Length5

Position0

Sequencer Load

The SQL instruction loads data into the sequencer File (#N7:20)

SQL

from the source word (I:002) by stepping through the number of

 

elements specified by Length (5) of the Source (I:002), starting

Status Bits:

at the Position (0). The operation is controlled by the

EN - Enable

information in the control file R6:22. When the rung goes from

DN - Done Bit

false-to-true, the SQL instruction increments the next step in

ER - Error Bit

the sequencer file and loads the data into it for every scan that

 

the rung remains true.

 

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

 

this instruction.

Publication 1785-UM012D-EN-P - July 2005

Page 321
Image 321
Bradley Smoker PLC-5 user manual Sequencer Instructions, Lfl, Lfu, Sqi, Sql