Last In and First Out Control

Last-In and First-Out Control: OUT Sxx.xx

 

The Last-In and First-Out control (OUT instruction) outputs the value entered last with first priority.

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

OUT

S

-

-

-

-

-

-

-

-

o

-

-

-

-

1

-

-

-

 

 

 

S

This device is specifically to be used for step control relay such as step control (SET instruction) or last-in and first-out control (OUT instruction).

 

Functions

 

-Even if multiple input contacts are ON, only one step number will be ON.

-Among the multiple turned-on input contacts, the last-entered input contact gets to output first.

-If the current step number is ON, it will maintain the value and keep the ON status even after the input contact is OFF.

-The OUT instruction gets cleared by turning ON the input contact for Sxx.00.

 

 

Example)