Programming the FM 351
6-12
FM 351 Positioning Module
C79000-G7076-C351-02
Return Values
The function provides the following return values:
RET_VAL BR Description
1 1 job active
0 1 No job active, no error
–1 0 Error
Jobs
You can read the diagnostic buffer whether or not there is a new entry by setting
the DIAGRD_EN trigger bit in the diagnostic DB. After reading the diagnostic
buffer, the trigger bit is set to 0.
Execute this job following a CPU startup and a module startup. This ensures that
the content of the diagnostic DB matches the content of the diagnostic buffer of the
module even if the module has made no new entry in the diagnostic buffer.
Startup
There is no startup processing associated with the function.
Response to Errors
If an error occurs in the execution of the job, the cause of the error can be found in
the diagnostic DB in the JOB_ERR parameter (see Chapter 11 and Appendix C.3,
page C-11).