CAL CFG_CP_V_Instance (S:=CFG_CAM_variable, R:=Reset, CP_ID:=CP3, PT_CNT:=4, INTERP:=MMF_LINEAR_INTERP, MST_UNIT:=MMF_REV, MST_STRT:=MASTER_Position, FOL_UNIT:=MMF_REV, FOL_STRT:=SLAVE_Position, MFB:=MFB, CFG_BLK:=CP_V_CFG_BLK, ERROR=>CAM_CFG_ERROR)
CFG_CP_V_Instance (S:=CFG_CAM_variable, R:=Reset, CP_ID:=CP3, PT_CNT:=4, INTERP:=MMF_LINEAR_INTERP, MST_UNIT:=MMF_REV, MST_STRT:=MASTER_Position, FOL_UNIT:=MMF_REV, FOL_STRT:=SLAVE_Position, MFB:=MFB, CFG_BLK:=CP_V_CFG_BLK, ERROR=>CAM_CFG_ERROR) ;
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 CamProfile 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
|
Array of the master position data (n must be ≥ PT_CNT).
|
|
FOL_UNIT
|
UDINT
|
Position units of the slave.
|
FOL_STRT
|
ARRAY [1 .. n] OF REAL
|
Array of the slave position data (n must be ≥ PT_CNT).
|
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.
|
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.
|
Point Number
|
Master 409500
|
Follower 409600
|
---|---|---|
1
|
0.0
|
0.0
|
2
|
0.2
|
0.5
|
3
|
0.6
|
0.5
|
4
|
0.8
|
0.0
|