07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Workshop PG5<br />

Instructionlist<br />

7.4 Basic Instructions:<br />

Binary Instructions:<br />

Binary instructions work with inputs, outputs, flags, the state of timers/counters,<br />

and the ACCU.<br />

The ACCU is nothing more then an internal System flag, which memorizes the<br />

result of the last instruction. It can be either high or low.<br />

We have three different types of binary instructions:<br />

1. Type 2. Type 3. Type<br />

The first group of instructions<br />

alters the ACCU<br />

state<br />

In the second group of<br />

instructions, the execution<br />

of the instruction<br />

depends on the ACCU<br />

state.<br />

The third group of instructions<br />

depend on the<br />

ACCU state and alters the<br />

ACCU state.<br />

Input<br />

Output<br />

Or Flag<br />

Instructions:<br />

ACC<br />

STH<br />

STL<br />

Input<br />

Output<br />

Or Flag<br />

Instructions:<br />

DYN<br />

OUT<br />

SET<br />

RES<br />

COM<br />

Input<br />

Output<br />

Or Flag<br />

Instructions:<br />

ANH<br />

ANL<br />

ORH<br />

ORL<br />

XOR<br />

LU<br />

ACCU<br />

ACCU<br />

LU Input<br />

Output<br />

Or Flag<br />

LU<br />

ACCU<br />

LU= Logic Unit<br />

Example:<br />

STH I 14<br />

Sets the ACCU to high if<br />

Input 14 is high.<br />

Example:<br />

RES F 10<br />

Sets the flag 10 to 0 if the<br />

ACCU is high.<br />

Example:<br />

ANH I 23<br />

The ACCU is AND linked<br />

with the logical state of<br />

input 23, the ACCU is set<br />

to the result.<br />

PG5-07-E © Saia-Burgess Controls Ltd. Page 7-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!