The Function Fc Cnt_Ctl1 (Fc 2) - Siemens SIMATIC S7-300 FM 350-1 Manual

Counter
Table of Contents

Advertisement

5.2

The function FC CNT_CTL1 (FC 2)

Functionality
The data required for the CNT_CTL1 function is stored in a DB on the CPU. The CNT_CTL1
function transfers data cyclically between this DB and the FM.
Requirements
● You have created a DB under STEP 7 as a data block with assigned user-specific data
● The DB required for the CNT_CTL1 function must have the following valid data assigned:
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01
type.
To do so, select UDT 2 as the source file. UDT 2 was copied to the function block library
called FMx50LIB when the FCs were installed. Do not modify the UDT 2. Copy the UDT 2
together with the functions into your project.
– Module address
You set the module address (start address of the FM 350-1) during the configuration
of your hardware.
You can enter the address automatically in the DB by selecting the module in
HW Config, and then selecting a data block from the "Properties" dialog box by
clicking on the "Mod Addr" button.
– Channel address
The channel address is the same as the module address in pointer format.
– User data length
The user data length amounts to 16.
You can save these data by means of a parameter assignment screen (refer to
"Getting Started with Commissioning") or by means of the user program in the DB.
CAUTION
Actual values in the DB are overwritten
You can check the block consistency in the SIMATIC Manager. After selecting the block
folder of your project, start the consistency check using the menu command "Edit >
Check block consistency". The "Check block consistency" dialog box is opened. If you
select the menu command "Program > Compile all" in this dialog box, the current values
in the DB are overwritten.
Therefore, explicitly initialize the module start address of the FM 350-1 in OB 100.
This address must be the same as the address configured in HW Config.
Programming the FM 350-1
5.2 The function FC CNT_CTL1 (FC 2)
41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents