MC_SetCamOnlineChangeMode
The function block MC_SetCamOnlineChangeMode specifies the mode for write access to cam plate data.
Cam plate can be modified at run time via the PLC (see MC_WriteMotionFunction,MC_WriteMotionFunctionPoint). The function block MC_SetCamOnlineChangeMode is used to specify when and how these changes take effect. The set mode affects all subsequent write operations. It is therefore not necessary to call the block before each write access.
This function specifies the activation mode for modifications but does not affect a change or change-over of cam plates.
Inputs
VAR_INPUT
Execute : BOOL;
ActivationMode : MC_CamActivationMode;
ActivationPosition : LREAL;
MasterScalingMode : MC_CamScalingMode;
SlaveScalingMode : MC_CamScalingMode;
CamTableID : MC_CAM_ID;
END_VAR
Execute |
The command is executed with rising edge. |
ActivationMode |
Defines when and how scaling takes place . (MC_CamActivationMode) |
ActivationPosition |
Optional master position at which scaling is carried out (depending on ActivationMode). |
MasterScalingMode : |
Type of master scaling. (MC_CamScalingMode) |
SlaveScalingMode |
Type of slave scaling. (MC_CamScalingMode) |
CamTableID |
Outputs
VAR_OUTPUT
Done: BOOL;
Busy: BOOL;
Error: BOOL;
ErrorID: UDINT;
END_VAR
Done | Becomes TRUE when the function has been successfully executed. |
Busy | The Busy output becomes TRUE when the command is started with Execute and remains TRUE as long as the command is processed. When Busy becomes FALSE again, the function block is ready for a new command. At the same time one of the outputs, Done or Error, is set. |
Error | Becomes TRUE, as soon as an error occurs. |
ErrorID | If the error output is set, this parameter supplies the error number. |