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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Timer Instructions<br />

12.10 SS Retentive On-Delay Timer<br />

Format<br />

SS <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 />

SS (start timer as a retentive ON timer) starts the addressed timer when the<br />

RLO transitions from "0" to "1". The full programmed time interval elapses, even if<br />

the RLO transitions to "0" in the meantime. The programmed time interval is<br />

re-triggered (started again) if RLO transitions from "0" to "1" before the programmed<br />

time has expired. This timer start command expects the time value and the time base<br />

to be stored as a BCD number in ACCU 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 />

SS T1 //Start timer T1 as a retentive on-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 time value of timer T1 as binary.<br />

T MW10<br />

LC T1 //Load current time 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-18 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!