Programming the FM 352
7.3 FB CAM_CTRL (FB 1)
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
45
Startup
Call FC CAM_INIT at the startup of the module or CPU (see chapter "FC CAM_INIT (FC 0)
(Page 42)"). Among other things, this resets the function switches.
FB CAM_CTR
L acknowledges the module startup. During this time, RETVAL and
JOBBUSY = 1.
Return values
The block returns the following return values in the RETVAL parameter of the channel DB in
word 372:
RETVAL BR Description
1 1 At least 1 job active
0 1 No job active, no error
-1 0 Error:
Data error (DAT_ERR) or
Communication error (JOB_ERR) occurred
Job status
You can read the status of the job execution using the RETVAL return value and the
JOBBUSY activity bit in the channel DB. You can determine the status of a single job by
evaluating its trigger, done, and error bits.
RETVAL JOBBUSY Trigger bit _EN Done bit _D Error bit _ERR
Job active 1 1 1 0 0
Job completed
without errors
0 0 0 1 0
Job completed
with errors
-1 0 0 1 1
Write job aborted -1 0 0 0 1