Programming the FM 350-1
5.5 Application example
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01
51
STL
Explanation
CONT
...
// Continue with normal execution
AN
L_DIRECT;
// Load direct function is ready
S
SW_GATE;
// Open software gate;
END:
Description of the Symbols
The table lists the symbols used in the example. You define your own symbol assignments in
the S7 Symbol Table.
Table 5- 10 Symbols in Example
Symbols
Absolute
(Example)
Comments
CNT_CHAN1
DB 1
Data block for CNT_CTL1 function
CNT_CHAN1.LOAD_VAL
DB1.DBD14
Counter value specification in DB 1 (double word)
TRIGGER
M 10.0
Trigger memory marker formed as a result of the technological
requirement
SW_GATE
M 20.0
Start counter
GATE_STP
M 20.1
Close counter gate
OT_ERR_A
M 20.2
Acknowledge operator error
SET_DO0
M 20.3
Set output DO1
SET_DO1
M 20.4
Set output DO2
OT_ERR
M 20.5
Operator error occurred
L_DIRECT
M 20.6
Direct and preparatory loading of counter value
L_PREPAR
M 20.7
Load value of counter in preparation
T_CMP_V1
M 21.0
Load comparison value 1
T_CMP_V2
M 21.1
Load comparison value 2
C_DOPARA
M 21.2
Initiate parameter change
RES_SYNC
M 21.3
Reset synchronization status bit
RES_ZERO
M 21.4
Reset zero pass, overflow, underflow and comparator or end of
measurement status bit
CNT_CHAN1.OT_ERR_B
DB1.DBB40.0
Operator error information in DB 1
Содержание 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 ...