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 Counter Instructions<br />

4.1 Overview of Counter Instructions<br />

Description<br />

A counter is a function element of the STEP 7 programming language that acounts.<br />

Counters have an area reserved for them in the memory of your CPU. This memory<br />

area reserves one 16-bit word for each counter. The statement list instruction set<br />

supports 256 counters. To find out how many counters are available in your CPU,<br />

please refer to the CPU technical data.<br />

Counter instructions are the only functions with access to the memory area.<br />

You can vary the count value within this range by using the following Counter<br />

instructions:<br />

• FR Enable Counter (Free)<br />

• L Load Current Counter Value into ACCU 1<br />

• LC Load Current Counter Value into ACCU 1 as BCD<br />

• R Reset Counter<br />

• S Set Counter Preset Value<br />

• CU Counter Up<br />

• CD Counter Down<br />

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

A5E00706960-01 4-1

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

Saved successfully!

Ooh no, something went wrong!