Settings
9-25
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
9.11
Counted Values of the Counter Cam Tracks
Definition
With the “counted values of the counter cam tracks” setting, you read out the
current counted values.
Sequence of the Setting
1. Specify the counter cam tracks and the upper counted values in the machine
data.
2. Write and activate the machine data.
3. Enable the counter function.
4. The counted value is set to the upper counted value.
5. At each rising edge of the track result, the counted value is decremented by 1.
6. Set the trigger bit in the channel DB to read the counted values.
7. The counted values for both tracks are written to the channel DB. If the track is
not set as a counter cam track, 0 is output.
8. If the counted value reaches the value 0, the track flag bit of the counter cam
track is set to 1.
9. With the next falling edge at the track result, the track flag bit is set back to 0
and the counter is set to the upper counted value.
Data Used in the Channel DB
Address
Name
Type
Initial Value
Comment
15.5
CNTC0_EN
BOOL
FALSE
1 = enable counter function of counter cam
track 0
15.6
CNTC1_EN
BOOL
FALSE
1 = enable counter function of counter cam
track 1
38.3
CNTTRC_EN
BOOL
FALSE
1 = read the counted values of the counter cam
tracks
124.0
CNT_TRC0
INT
0
Current counter value for counter cam track 0
126.0
CNT_TRC1
INT
0
Current counter value for counter cam track 1
Data Used in the Parameter DB
Address
Name
Type
Initial Value
Comment
99.0
SPEC_TRC0
BOOL
FALSE
1 = track 0 is counter cam track
99.1
SPEC_TRC1
BOOL
FALSE
1 = track 1 is counter cam track
100.0
CNT_LIM0
DINT
L#0
Upper counter value for counter cam track 0
104.0
CNT_LIM1
DINT
L#0
Upper counter value for counter cam track 1
Содержание SIMATIC FM 452
Страница 8: ...Contents viii FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 14: ...Product Overview 1 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 28: ...Installing and Removing the FM 452 3 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 36: ...Wiring the FM 452 Electronic Cam Controller 4 8 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 38: ...Installing the Software 5 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 62: ...Programming the FM 452 6 24 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 68: ...Putting the FM 452 into Operation 7 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 130: ...Settings 9 32 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 140: ...Encoders 10 10 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 146: ...Diagnostics 11 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 162: ...Samples 12 16 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 168: ...Technical Specifications A 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 174: ...Connection Diagrams B 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 200: ...Data Blocks Error Lists C 26 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...