7.3
FB CAM_CTRL (FB 1)
Tasks
You can use FB CAM_CTRL to read operating data from the module, initialize the module,
and control it during operation. For these tasks, you use the control signals, checkback
signals, and write and read jobs.
Each time it is called, the function block performs the following actions:
● Read checkback signals:
● Write control signals:
● Execute job:
Call
The function block must be called cyclically.
Before you call the block, enter all the data in the channel DB that are required to execute
the intended functions.
Data used
● Channel DB:
● Parameter DB:
Parameters
Parameter
DB_NO
RETVAL
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
The FB CAM_CTRL reads all checkback signals from the module and enters these in the
channel DB. The control signals and jobs are not executed until this task is completed,
and thus the checkback signals reflect the module status prior to the block call.
The control signals written to the channel DB are transferred to the module. Enabling of
cam processing, however, is delayed as long as the trigger for a "Set reference point" job
or "Write cam data" job is set. The activation (or reactivation) of cam processing is
delayed by this time.
The next job is executed based on the trigger bits for jobs entered in the channel DB.
The module address must be entered in the channel DB.
If you want to write or read machine or cam data using jobs, you require a parameter DB
whose number must be entered in the channel DB. The size of the parameter DB must
be adequate for the number of cams.
Declaration
INPUT
OUTPUT
Data type
Description
INT
Number of the channel DB
INT
Return value
Programming the FM 352
7.3 FB CAM_CTRL (FB 1)
43