Programming the FM 352
7.4 FB CAM_DIAG (FB 2)
FM 352 electronic cam controller
48 Operating Instructions, 05/2011, A5E01071724-03
Return values
The block returns the following return values in the RETVAL parameter of the diagnostic DB
in word 302:
RETVAL BR Description
1 1 Job active
0 1 No job active, no error
-1 0 Error
Reaction to errors
The cause of a job error can be found in the JOB_ERR parameter of the diagnostic DB (see
chapter "Diagnostics (Page 145)" and "Data and Structure of the Diagnostic DB
(Page 187)"
).
Application in the user program
The FB CAM_DIAG is indeed a multiple instance block, however cannot be used as a
multiple instance in a user block.