MC_CamIn (FB)¶
FUNCTION_BLOCK MC_CamIn
The function block implements a selected cam plate.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
MasterReference to master axis. Master need not be stationary.
SlaveReference to slave axis
Input
ExecuteBOOLRising edge: Starts the execution of the function block.
MasterOffsetLREALOffset on master table
SlaveOffsetLREALOffset on slave table
Mechanical analogy to the slave offset is a cam plate, which is welded with additional constant layer thickness. Therefore slave positions have a constant offset. The offset can be interpreted as an axis offset of the master axis on the assumption that the slave cam is linearly guided.
MasterScalingLREAL1
Scaling factor for master profile
SlaveScalingLREAL1
Scaling factor for slave profile
StartModeabsolute
Start mode
Possible values:
absolute: Cam plate is positioned absolutely with respect to the current master and slave position.
relative: Cam plate is positioned relative to the current master and slave position.
It is advisable to observe the “General notes on cam plates”.
CamTableIDIdentification of the cam plate. The input is connected with the output of the instance of MC_CamTableSelect.
Hint: While the function block is in operation, this input can be used to change Cams on the fly.
VelocityDiffLREALMaximum velocity difference for
ramp_inmode in [u/s]AccelerationLREALAcceleration for
ramp_inmode in [u/s²]DecelerationLREALDeceleration for
ramp_inmode in [u/s²]JerkLREALJerk for
ramp_inmode in [u/s³]TappetHysteresisLREALSize of the hysteresis for tappets in [u]. A positive value means that the tappet cannot fire immediately after it has fired. The master position first needs to move away from the tappet by more than the value given for
TappetHysteresis.For example, if the master is an encoder, the master position may oscillate by a few increments around the tappet position. Without a hysteresis, the tappet may fire all the time.
Output
InSyncBOOLCam has been engaged for the first time.
BusyBOOLCommandAbortedBOOLCommand has been aborted by another command
ErrorBOOLTRUE: Error has occured within the function block.ErrorIDSMC_ERRORError identification
EndOfProfileBOOLPulsed output: Cyclic end of the cam profile.
TappetsSMC_TappetDataTappets: Has to be evaluated by SMC_GetTappetValue function blocks.