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.

Timer Instructions<br />

12.11 SF Off-Delay Timer<br />

Format<br />

SF <br />

Address Data type Memory area Description<br />

TIMER T Timer number, range depends on<br />

CPU<br />

Description of instruction<br />

Status word<br />

Example<br />

SF starts the addressed timer when the RLO transitions from "1" to "0". The<br />

programmed time elapses as long as RLO = 0. The time is stopped if RLO transitions<br />

to "1" before the programmed time interval has expired. This timer start command<br />

expects the time value and the time base to be stored as a BCD number in ACCU<br />

1-L.<br />

See also Location of a Timer in Memory and Components of a Timer.<br />

BIE A1 A0 OV OS OR STA VKE /ER<br />

writes: - - - - - 0 - - 0<br />

<strong>STL</strong> Explanation<br />

A I 2.0<br />

FR T1 //Enable timer T1.<br />

A I 2.1<br />

L S5T#10s //Preset 10 seconds into ACCU 1.<br />

SF T1 //Start timer T1 as an off-delay timer.<br />

A I 2.2<br />

R T1 //Reset timer T1.<br />

A T1 //Check signal state of timer T1.<br />

= Q 4.0<br />

L T1 //Load current timer value of timer T1 as binary.<br />

T MW10<br />

LC T1 //Load current timer value of timer T1 as BCD.<br />

T MW12<br />

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

12-20 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!