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.

4.7 CU Counter Up<br />

Format<br />

CU <br />

Counter Instructions<br />

Address Data type Memory area Description<br />

COUNTER C Counter, range<br />

depends on CPU.<br />

Description<br />

CU increments the count of the addressed counter by 1 when RLO<br />

transitions from "0" to "1" and the count is less than "999". When the count reaches<br />

its upper limit of "999", incrementing stops. Additional transitions of RLO have no<br />

effect and overflow OV bit is not set.<br />

Status word<br />

Example<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.1 //If there is a positive edge change at input I 2.1.<br />

CU C3 //Counter C3 is incremented by 1 when RL0 transitions from 0 to 1.<br />

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

A5E00706960-01 4-7

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

Saved successfully!

Ooh no, something went wrong!