Programming the FM 352
7.3 FB CAM_CTRL (FB 1)
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
43
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:
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.
● Write control signals:
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.
● Execute job:
The next job is executed based on the trigger bits for jobs entered in the channel DB.
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:
The module address must be entered in the channel DB.
● Parameter 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.
Parameters
Parameter Declaration Data type Description
DB_NO INPUT INT Number of the channel DB
RETVAL OUTPUT INT Return value