EasyManua.ls Logo

Siemens S7-300 - Basics of Programming an FM 352

Siemens S7-300
226 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming without SFB 52 and SFB 53
D.2 Basics of Programming an FM 352
FM 352 electronic cam controller
200 Operating Instructions, 05/2011, A5E01071724-03
D.2 Basics of Programming an FM 352
Task
You can assign parameters, control, and commission the FM 352 module via a user
program. To exchange data between the user program and module, you use the functions
(FCs) and data blocks (DBs) described below.
Preparatory steps
Open the FMx52LIB block library in SIMATIC Manager, then copy the required functions
(FCs) and block templates (UDTs) to the block folder of your project. If the block numbers
are already being used, assign new numbers. The block names are entered unchanged
in the symbol table of your S7 program.
CAM_INIT (FC 0): This is required to initialize the channel DB following a module
startup.
CAM_CTRL (FC 1): This is required for data exchange with the module.
CAM_DIAG (FC 2): This is required when you process detailed diagnostic information
in the program or want to make this information available to an operator control and
monitoring system.
CAM_MSRM (FC 3): This can only be used with FM 452
CAM_CHANTYPE (UDT1): This is required to generate a channel DB; used by the
FCs CAM_INIT, CAM_CTRL and CAM_MSRM.
CAM_DIAGTYPE (UDT2): This is required to generate a diagnostic DB; used by
FC CAM_DIAG.
CAM_P016TYPE (UDT3): This is required to generate a parameter DB with machine
data and data for 16 cams; used by FC CAM_CTRL to write or read machine or cam
data.
CAM_P032TYPE (UDT4): Same as CAM_P016TYPE, however for 32 cams
CAM_P064TYPE (UDT5): Same as CAM_P016TYPE, however for 64 cams
CAM_P128TYPE (UDT6): Same as CAM_P016TYPE, however for 128 cams
Create data blocks using the UDTs in the block folder of your S7 program. If you are
using multiple modules, you require a separate set of data blocks for each module used.
Enter the module address in the channel DB and, if applicable, in the diagnostic DB in
MOD_ADDR.
If your PG/PC is connected to a CPU, you can now download the FCs and DBs to the
CPU.

Table of Contents

Other manuals for Siemens S7-300

Related product manuals