CFG_CP_F: CamProfile
(Original Document)
Function Description
This function block configures a CamProfile with fixed master increments.
Additional parameters EN and ENO may be configured.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL CFG_CP_F_Instance (S:=CFG_CAM_fixed, R:=Reset,
    CP_ID:=CP4, PT_CNT:=9, INTERP:=MMF_LINEAR_INTERP,
    MST_UNIT:=MMF_REV, MST_STRT:=0.0, MST_INCR:=0.25,
    FOL_UNIT:=MMF_REV, FOL_STRT:=CAM_Profile, MFB:=MFB,
    CFG_BLK:=CP_F_CFG_BLK, ERROR=>CAM_CFG_ERROR)
Representation in ST
Representation
CFG_CP_F_Instance (S:=CFG_CAM_fixed, R:=Reset,
    CP_ID:=CP4, PT_CNT:=9, INTERP:=MMF_LINEAR_INTERP,
    MST_UNIT:=MMF_REV, MST_STRT:=0.0, MST_INCR:=0.25,
    FOL_UNIT:=MMF_REV, FOL_STRT:=CAM_Profile, MFB:=MFB,
    CFG_BLK:=CP_F_CFG_BLK, ERROR=>CAM_CFG_ERROR) ;
Parameter Description
Description of input parameters:
Parameter
Data Type
Meaning
S
Rising input starts configuration of the CamProfile.
R
BOOL
Resets block and prevents configuration. It halts configuration at the end of the current step.
CP_ID
Axis ID for the CamProfile ID to be configured.
PT_CNT
INT
The number of points in the CamProfile.
INTERP
Interpolation type: linear or cubic.
MST_UNIT
UDINT
Position units of the master.
MST_STRT
Master position data.
MST_INCR
Fixed master position increment.
FOL_UNIT
UDINT
Position units of the follower.
FOL_STRT
ARRAY [1 .. n] OF REAL
Array where the CamProfile configuration information will be stored.
Description of in-output parameters:
Parameter
Data Type
Meaning
MFB
Must be connected to the MMFStart block of 200 registers.
CFG_BLK
Data block where the CamProfile configuration data will be stored.
Description of output parameters:
Parameter
Data Type
Meaning
Q
BOOL
True when the configuration has completed (reset by R).
ERROR
INT
First error code that is generated during configuration.
Example
When input CFG_CAM_fixed turns on, a fixed increment CamProfile identified as CamProfile 4 (CP4) is created in the motion controller. The velocity units for both the master and follower are set to revolutions on input pins MST_UNIT and FOL_UNIT. The interpolation type for the profile is LINEAR, as identified on the INTERP input pin. The master moves at a fixed increment starting at 0.0 and incrementing by .25 revolutions. These units are defined on input pins MST_STRT and MST_INCR. The follower path points are located in the array CAM_Profile; the point count for the follower path was identified as eight points at input PT_CNT. The follower path position points are determined and entered into the array CAM_Profile defined on input pin FOL_START. The follower moves from 0 to 1 in a positive direction, then returns to 0.
Follower Path Points
The follower path points entered into the PLC registers are listed in the following table:
Path Point
Follower Position Point
CAM_Profile[0]
0.0
CAM_Profile[1]
0.25
CAM_Profile[2]
0.5
CAM_Profile[3]
0.75
CAM_Profile[4]
1.0
CAM_Profile[5]
0.75
CAM_Profile[6]
0.5
CAM_Profile[7]
0.25
CAM_Profile[8]
0.0
Runtime Errors
If an error occurs during the configuration of this CamProfile, the error number can be examined at CAM_CFG_ERROR. This CamProfile configuration information is located in the register block FS_CFG_BLK after successful completion of the configuration.
NOTE: For a list of all error codes and values of the block, refer to Tables of Error Codes for the Motion Library.