SMC_GetCamSlaveSetPosition (FB)ΒΆ
FUNCTION_BLOCK SMC_GetCamSlaveSetPosition
This function block calculates the current target position of an axis (slave) in the case the axis is coupled via a cam to the motion of another axis (Master). The slave is not moved or otherwise affected.
The module can be used to determine the start position, velocity, and acceleration of a slave that is coupled to a master axis via a cam table.
Due to the fact that the corresponding value is calculated within
one cycle, the output Done is not necessary.
Note
This FB can only be called once to determine the start conditions that the slave must have in order to avoid ramping in. It cannot be used cyclically to read the current slave values.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
MasterReference to master axis
SlaveReference to slave axis
Input
EnableBOOLTRUE: Starts the execution of the function block.MasterOffsetLREALOffset of master table
SlaveOffsetLREALOffset of slave table
MasterScalingLREAL1
Scaling factor for master profile
SlaveScalingLREAL1
Scaling factor for slave profile
CamTableIDIdentifier of cam table, output of MC_CamTableSelect
Output
fStartPositionLREALSlave position according to cam and current master position.
fStartVelocityLREALSlave velocity according to cam and current master position.
fStartAccelerationLREALSlave acceleration according to cam and current master position.
BusyBOOLTRUE: Execution of function block has not been finished yet.ErrorBOOLTRUE: Error has occurred within the function block.ErrorIDSMC_ERRORError identification