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.

Counter Instructions<br />

4.6 S Set Counter Preset Value<br />

Format<br />

Description<br />

Status word<br />

Example<br />

S <br />

Address Data type Memory area Description<br />

COUNTER C Counter to be preset,<br />

range depends on<br />

CPU.<br />

S loads the count from ACCU 1-L into the addressed counter when the<br />

RLO transitions from "0" to "1". The count in ACCU 1 must be a BCD number<br />

between "0" and "999".<br />

BR CC 1 CC 0 OV OS OR STA RLO /FC<br />

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

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

A I 2.3 //Check signal state at input I 2.3.<br />

L C#3 //Load count value 3 into ACCU 1-L.<br />

S C1 //Set counter C1 to count value if RLO transitions from 0 to 1.<br />

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

4-6 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!