![Siemens SIMATIC S7-300 FM 350-1 Скачать руководство пользователя страница 41](http://html.mh-extra.com/html/siemens/simatic-s7-300-fm-350-1/simatic-s7-300-fm-350-1_manual_1265384041.webp)
Programming the FM 350-1
5.2 The function FC CNT_CTL1 (FC 2)
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01
41
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
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.
●
The DB required for the CNT_CTL1 function must have the following valid data assigned:
–
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.
Содержание 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 ...