Sample Program 5 "Multimodules - Siemens S7-300 Operating Instructions Manual

Fm 352 electronic cam controller
Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

Examples

13.11 Sample program 5 "MultiModules"

13.11
Sample program 5 "MultiModules"
Objective
This sample contains the same user program as sample program 3 "One Module", but this
time it is used to operate two modules with different cam parameters. The user program
uses an own instance of CAM_CTRL and CAM_DIAG for each module, a multiple instance is
not possible. The user program expects a module address as input parameter. The DB
numbers for channel and diagnostic DBs associated with this address are stored as
constants in the program and can be modified by you.
Requirements
You have inserted two FM 352 modules and configured these in HW Config.
You have assigned parameters for both cam controllers as described in the "Getting Started"
Manual.
The address of the relevant module has been entered in the block parameter MOD_ADDR in
the channel and diagnostic DBs.
The included channel DBs already contain the DB number (3 or 13) of the corresponding
parameter DB in the PARADBNO parameter.
The PARADB and PARADB2 parameter DBs of the sample project contain default machine
and cam data for both modules.
A set of variable tables is also prepared for each module.
Startup
In the startup OB (OB 100), set the startup identifier (step 0) for the user program at both
instance DBs.
Operation
The CPU is in STOP.
● Open VAT1 and VAT11, and transfer their control values.
● Start the CPU (STOP > RUN).
You can see how monitor the change of the actual positions, of cam data, and of the track
signals of both modules.
Error evaluation
As in sample program 4 "Interrupts", but separately for each of the two modules.
162
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents