Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
4-1
4 Counter Instructions
4.1 Overview of Counter Instructions
Description
A counter is a function element of the STEP 7 programming language that acounts.
Counters have an area reserved for them in the memory of your CPU. This memory
area reserves one 16-bit word for each counter. The statement list instruction set
supports 256 counters. To find out how many counters are available in your CPU,
please refer to the CPU technical data.
Counter instructions are the only functions with access to the memory area.
You can vary the count value within this range by using the following Counter
instructions:
•
FR Enable Counter (Free)
•
L Load Current Counter Value into ACCU 1
•
LC Load Current Counter Value into ACCU 1 as BCD
•
R Reset Counter
•
S Set Counter Preset Value
•
CU Counter Up
•
CD Counter Down
Comments to this Manuals