EasyManua.ls Logo

Siemens S7-300 - 5.4 Sensor and Actuator Requirements for F-SMs in Safety Mode

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 the FM 352
7.4 FB CAM_DIAG (FB 2)
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
47
7.4 FB CAM_DIAG (FB 2)
Tasks
Use FB CAM_DIAG to read the diagnostic buffer of the module and make it available for
display on an operator control and monitoring system or for a programmed evaluation.
Call
The function block must be called cyclically. It is not permitted to initiate a second call in an
interrupt OB. At least two calls (cycles) are required to completely execute this function.
The function block reads the diagnostic buffer when a new entry in the diagnostic buffer is
indicated by checkback signal DIAG = 1. After the diagnostic buffer is read, DIAG is set to 0
by the module.
Data used
Diagnostic DB:
The module address must be entered in the diagnostic DB. The newest entry in the
diagnostics buffer is written in the DIAG[1] structure and the oldest entry is written in the
DIAG[4] structure.
Jobs
You can read the diagnostic buffer whether or not there is a new entry by setting the
DIAGRD_EN trigger bit. After reading the diagnostic buffer, the trigger bit is set to 0.
Parameters
Parameter Declaration Data type Description
DB_NO INPUT INT Number of the diagnostic DB
RETVAL OUTPUT INT Return value
Startup
There is no startup processing associated with the function block.

Table of Contents

Other manuals for Siemens S7-300

Related product manuals