Siemens SIMATIC S7-300 FM 350-1 Manual page 44

Counter
Table of Contents

Advertisement

Programming the FM 350-1
5.2 The function FC CNT_CTL1 (FC 2)
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
Operating mode
Counting
Measuring
You can transfer several values at the same time.
Table 5- 5
In the operating mode ...
Counting
Measuring
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.
44
Function Parameters for Transferring Values
Function parameter
L_DIRECT, L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA
L_PREPAR, T_CMP_V1, T_CMP_V2, C_DOPARA
Simultaneous transfer of several values
... You can transfer at the same time
Load value
Comparison value 1
Comparison value 2
Low limit
High limit
Update time
(DB parameter LOAD_VAL)
(DB parameter CMP_V1)
(DB parameter CMP_V2)
(DB parameter LOAD_VAL)
(DB parameter CMP_V1)
(DB parameter CMP_V2)
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents