Programming the FM 350-1
5.2 The function FC CNT_CTL1 (FC 2)
FM 350-1 Counter module
44
Manual, 05/2011, A5E03648639-01
Processing Jobs
You make a job request for the FM 350-1 via the relevant FC parameters L_DIRECT,
L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA, RES_SYNC, RES_ZERO, and
OT_ERR_A.
You must enter the appropriate values for the job (load value, comparison values, low limit,
high limit, update time) before you call the FC in the DB.
A set in/out parameter (L_DIRECT, L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA,
RES_SYNC and RES_ZERO) is deleted again by the CNT_CTL1 function after completion of
the job. This enables you to recognize that the job has been executed by the FM 350-1. If
necessary, you can incorporate this information in your user program.
Transferring Values
Depending on the operating mode, you can transfer values by setting the function
parameter.
Table 5- 4
Function Parameters for Transferring Values
Operating mode
Function parameter
Counting
L_DIRECT, L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA
Measuring
L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA
You can transfer several values at the same time.
Table 5- 5
Simultaneous transfer of several values
In the operating mode ...
... You can transfer at the same time
Counting
Load value
Comparison value 1
Comparison value 2
(DB parameter LOAD_VAL)
(DB parameter CMP_V1)
(DB parameter CMP_V2)
Measuring
Low limit
High limit
Update time
(DB parameter LOAD_VAL)
(DB parameter CMP_V1)
(DB parameter CMP_V2)
If a value is incorrect, you must first acknowledge this operator error with OT_ERR_A before
the FM 350-1 can accept any further values. You should then correct the value rejected with
the operator error and transfer it again.
Note
If you use the function parameter L_DIRECT, L_PREPAR, T_CMP_V1 or T_CMP_V2 to load
the value LOAD_VAL, CMP_V1 or CMP_V2, you cannot change the parameter assignments
at the same time using function parameter C_DOPARA.
This would lead to an OT_ERR operator error that you would have to acknowledge with
OT_ERR_A.
Summary of Contents for SIMATIC S7-300 FM 350-1
Page 8: ...Table of contents FM 350 1 Counter module 8 Manual 05 2011 A5E03648639 01 ...
Page 186: ...Technical data 11 2 Technical data FM 350 1 Counter module 186 Manual 05 2011 A5E03648639 01 ...
Page 188: ...Replacement parts FM 350 1 Counter module 188 Manual 05 2011 A5E03648639 01 ...
Page 190: ...References FM 350 1 Counter module 190 Manual 05 2011 A5E03648639 01 ...
Page 194: ...Glossary FM 350 1 Counter module 194 Manual 05 2011 A5E03648639 01 ...