Sample Program 3 "One Module - Siemens S7-300 Operating Instructions Manual

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

Advertisement

13.9

Sample program 3 "One Module"

Objective
In this example, you control a cam controller in a user program. The user program
commissions the module after a CPU restart. Next, it executes a step sequence that is
triggered by certain events.
Using the variable tables, you define events, monitor the reactions of the module, and
evaluate the diagnostic buffer.
In this slightly more complex example, you can get to know the following block possibilities:
● Issuing several jobs simultaneously
● Mixing write and read jobs
● Reading with a continuous job, without waiting for the end of the job
● Evaluation of the checkback signals of the block
● Evaluation of the checkback signals for an individual job
● Resetting of done bits and error bits for individual jobs or all jobs
● Central CAM_CTRL call at the end of the user program
● Central error evaluation by CAM_DIAG at the end of the user program
● Evaluation of the diagnostic buffer in conjunction with DATA_ERR
Requirements
● You have assigned the cam controller parameters as described in the "Getting Started"
● The module address is entered in the MOD_ADDR block parameter in the channel and
● The included channel DB already contains the DB number (3) of the parameter DB in the
● PARADB included in this example contains default machine and cam data.
Startup
In the startup OB (OB 100), set the startup identifier (step 0) for the user program in the
corresponding instance DB.
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
Manual.
diagnostic DBs.
PARADBNO parameter.
13.9 Sample program 3 "One Module"
Examples
157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents