26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

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.

B Programming Examples<br />

B.1 Overview of Programming Examples<br />

Practical Applications<br />

Instructions Used<br />

Each statement list instruction triggers a specific operation. When you combine<br />

these instructions into a program, you can accomplish a wide variety of automation<br />

tasks. This chapter provides the following examples of practical applications of the<br />

statement list instructions:<br />

• Controlling a conveyor belt using bit logic instructions<br />

• Detecting direction of movement on a conveyor belt using bit logic instructions<br />

• Generating a clock pulse using timer instructions<br />

• Keeping track of storage space using counter and comparison instructions<br />

• Solving a problem using integer math instructions<br />

• Setting the length of time for heating an oven<br />

Mnemonic Program Elements Catalog Description<br />

AW Word logic instruction And Word<br />

OW Word logic instruction Or Word<br />

CD, CU Counters Counter Down, Counter Up<br />

S, R Bit logic instruction Set, Reset<br />

NOT Bit logic instruction Negate RLO<br />

FP Bit logic instruction Edge Positive<br />

+I Floating-Point instruction Add Accumulators 1 and 2 as Integer<br />

/I Floating-Point instruction Divide Accumulator 2 by Accumulator 1 as<br />

Integer<br />

*I Floating-Point instruction Multiply Accumulators 1 and 2 as Integers<br />

>=I,

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

Saved successfully!

Ooh no, something went wrong!