Siemens Simatic S7 Series System Manual page 63

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

You access both of these variables by using the timer address (T + timer number). Access to
either the timer bit or the current value is dependent on the instruction used: instructions with
bit operands access the timer bit, while instructions with word operands access the current
value. As shown in the following figure, the Normally Open Contact instruction accesses the
timer bit, while the Move Word instruction accesses the current value of the timer.
Table 4- 8
Timer:
Figure 4-2
C (counter memory)
The CPU provides three types of counters that count each low-to-high transition event on the
counter input(s): one type counts up only, one type counts down only, and one type counts
both up and down. Two variables are associated with a counter:
● Current value: this 16-bit signed integer stores the accumulated count.
● Counter bit: this bit is set or cleared as a result of comparing the current and the preset
value. The preset value is entered as part of the counter instruction.
You access both of these variables by using the counter address (C + counter number).
Access to either the counter bit or the current value is dependent on the instruction used:
instructions with bit operands access the counter bit, while instructions with word operands
access the current value. As shown in the following figure, the Normally Open Contact
instruction accesses the counter bit, while the Move Word instruction accesses the current
value of the counter.
Table 4- 9
Counter
Figure 4-3
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
Absolute addressing for T memory
Accessing the timer bit or the current value of a timer
Absolute addressing of C memory
Accessing the counter bit or the current value of a counter
[timer number]
T
[counter number]
C
PLC concepts
4.2 Accessing data
T24
C24
63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents