EasyManua.ls Logo

Siemens S7-300 - Sample Program 3 One Module

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...
Examples
13.9 Sample program 3 "One Module"
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
157
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"
Manual.
The module address is entered in the MOD_ADDR block parameter in the channel and
diagnostic DBs.
The included channel DB already contains the DB number (3) of the parameter DB in the
PARADBNO parameter.
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.

Table of Contents

Other manuals for Siemens S7-300

Related product manuals