![Siemens SIMATIC S7-300 FM 350-1 Скачать руководство пользователя страница 120](http://html.mh-extra.com/html/siemens/simatic-s7-300-fm-350-1/simatic-s7-300-fm-350-1_manual_1265384120.webp)
Operating Modes, parameters and commands
7.3 Count modes
FM 350-1 Counter module
120
Manual, 05/2011, A5E03648639-01
7.3.10
Command: Setting the counter
Overview
If you want to start the count from a specific value (the load value), you must parameterize
the signal that is to be used to set this counter to the load value. You can set the counter as
follows:
●
With the L_DIRECT or L_PREPAR input parameter of the FC_CNT_CTL1
●
With an external signal, either by means of the DI Set input or by means of DI Set in
connection with the zero crossing of the encoder
This section describes the different methods and the time sequence when setting a counter.
Load value
Any number within the limits of the count range can be set for the count range.
The load value is interpreted according to the selected count range. If, for example, you
specify FFFF FFFF H as the load value, this is interpreted as 4 294 967 295 within the count
range from 0 to +32 bit and as -1 within the count range from -31 to +31 bit.
Enter the load value in the DB of the CNT_CTL1 function and transfer it with the CNT_CTL1
function to the module. The counter is then set to the load value:
●
Directly and in preparation if input parameter L_DIRECT is set,
●
In preparation only if input parameter L_PREPAR is set,
The following ranges of values are permitted for the load value:
Table 7- 25 Permissible Range of Values for Load Values
Main count direction
Range of values for
load values
None
Up
Down
Low limit
Maximum low count limit -2
31
+ 1
2
High limit
Maximum high count limit Parameterized high
count limit - 2
2
31
- 1
Setting the Counter via the User Program
You can set a counter with the FC CNT_CTL1 using the L_DIRECT input parameter
regardless of external events. This can also be done while a count is in progress.
The input parameter L_DIRECT is reset by FC CNT_CTRL once the job is successfully
completed.
If you set the counter via the FC_CNT_CTL1 call, this can initiate a hardware interrupt.
Содержание SIMATIC S7-300 FM 350-1
Страница 8: ...Table of contents FM 350 1 Counter module 8 Manual 05 2011 A5E03648639 01 ...
Страница 168: ...Encoder signals and their evaluation 8 4 Signal evaluation FM 350 1 Counter module 168 Manual 05 2011 A5E03648639 01 ...
Страница 186: ...Technical data 11 2 Technical data FM 350 1 Counter module 186 Manual 05 2011 A5E03648639 01 ...
Страница 188: ...Replacement parts FM 350 1 Counter module 188 Manual 05 2011 A5E03648639 01 ...
Страница 190: ...References FM 350 1 Counter module 190 Manual 05 2011 A5E03648639 01 ...
Страница 194: ...Glossary FM 350 1 Counter module 194 Manual 05 2011 A5E03648639 01 ...