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.

Absolute and symbolic Programming<br />

Programming Examples<br />

You can write a program to activate a direction display for the conveyor belt system<br />

using absolute values or symbols that represent the various components of the<br />

conveyor system.<br />

You need to make a symbol table to correlate the symbols you choose with absolute<br />

values (see the STEP 7 Online Help).<br />

System Component Absolute Address Symbol Symbol Table<br />

Photoelectric barrier 1 I 0.0 PEB1 I 0.0 PEB1<br />

Photoelectric barrier 2 I 0.1 PEB2 I 0.1 PEB2<br />

Display for movement to<br />

right<br />

Q 4.0 RIGHT Q 4.0 RIGHT<br />

Display for movement to left Q 4.1 LEFT Q 4.1 LEFT<br />

Pulse memory bit 1 M 0.0 PMB1 M 0.0 PMB1<br />

Pulse memory bit 2 M 0.1 PMB2 M 0.1 PMB2<br />

Absolute Program Symbolic Program<br />

A I 0.0<br />

FP M 0.0<br />

AN I 0.1<br />

S Q 4.1<br />

A I 0.1<br />

FP M 0.1<br />

AN I 0.0<br />

S Q 4.0<br />

AN I 0.0<br />

AN I 0.1<br />

R Q 4.0<br />

R Q 4.1<br />

A PEB1<br />

FP PMB1<br />

AN PEB 2<br />

S LEFT<br />

A PEB 2<br />

FP PMB 2<br />

AN PEB 1<br />

S RIGHT<br />

AN PEB 1<br />

AN PEB 2<br />

R RIGHT<br />

R LEFT<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

A5E00706960-01 B-5

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

Saved successfully!

Ooh no, something went wrong!