EasyManua.ls Logo

Siemens S7-300 - Read Count Values of Counter Cam Tracks

Siemens S7-300
226 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Settings
10.11 Read "count values of counter cam tracks"
FM 352 electronic cam controller
128 Operating Instructions, 05/2011, A5E01071724-03
10.11 Read "count values of counter cam tracks"
Definition
The "count values of counter cam tracks" is used to read the actual count values.
Programming steps
1. Specify the counter cam tracks and the high count values in the machine data.
2. Write and enable machine data.
3. Enable the count function.
4. The module sets the count value to its high limit.
5. The count value decrements by the count of 1 at each positive edge of the track result
signal.
6. Set the trigger bit at the channel DB to read the count values.
7. The module writes both count values to the channel DB. The module outputs a 0 value
for tracks not assigned as a counter cam track.
8. The module sets track identifier bit = 1 at the counter cam track when the count value = 0.
9. It resets the track identifier bit = 0 at the next negative edge of the track result signal, and
resets the counter to its high limit.
Data used in the channel DB
Address Name Type Start
value
Comment
15.5 CNTC0_EN BOOL FALSE 1 = enable count function of counter cam
track 0
15.6 CNTC1_EN BOOL FALSE 1 = enable count function of counter cam
track 1
38.3 CNTTRC_EN BOOL FALSE 1 = read count values of counter cam tracks
124.0 CNT_TRC0 INT 0 Current count value of counter cam track 0
126.0 CNT_TRC1 INT 0 Current count value of counter cam track 1

Table of Contents

Other manuals for Siemens S7-300

Related product manuals