MC_CamExchange
This function block exchanges cam table couplings on a slave. The cam table coupling that should be removed has to be active when this function block is executed and the activation condition is met, otherwise an error is triggered. Activation might depend either on the new entered cam table coupling (ActivationOptions.ReferenceObject = ECamActivationRef.NewlyEnteredCamTable) or on the one to be removed (ActivationOptions.ReferenceObject = ECamActivationRef.CamTableAlreadyInUse)
Syntax
Definition:
FUNCTION_BLOCK MC_CamExchange
VAR_INPUT
Master : Type_Master1D;
Slave : Type_Camming1D;
CamObjectToRemove : Type_CouplingFunction1D;
CamObjectToAdd : Type_CouplingFunction1D;
Execute : BOOL;
Scaling : CamScalingData;
ActivationOptions : CamActivationOptions;
ReactionToMasterError : EReactionToMasterError;
ReactionToSlaveError : EReactionToSlaveError;
END_VAR
VAR_OUTPUT
InSync : BOOL;
Busy : BOOL;
Active : BOOL;
CommandAborted : BOOL;
Error : BOOL;
ErrorId : UDINT;
MasterHasError : BOOL;
END_VAR
Inputs
Name | Type | Default | Description |
|---|---|---|---|
Master | Type_Master1D |
| Reference to the master axis |
Slave | Type_Camming1D |
| Reference to the slave axis |
CamObjectToRemove |
| Cam object to be removed | |
CamObjectToAdd |
| Cam object to be added | |
Execute | BOOL |
| Start cam exchange at rising edge. |
Scaling |
| Scaling of the new coupling | |
ActivationOptions |
| Options controlling how the cam coupling is activated (mode, position, reference object). | |
ReactionToMasterError | EReactionToMasterError | TriggerSlaveError | Reaction if an error occurs in the master while this command is active. |
ReactionToSlaveError | EReactionToSlaveError | TriggerMasterError | Reaction if an error occurs in the slave while this command is active. |
Outputs
Name | Type | Description |
|---|---|---|
InSync | BOOL | Synchronization succeeded |
Busy | BOOL | Function block is not finished and new output values are to be expected. |
Active | BOOL | Function block has active control on the axis. |
CommandAborted | BOOL | Command is aborted by another command. |
Error | BOOL | Error occurred within function block. |
ErrorId | UDINT | Error identifier |
MasterHasError | BOOL | Master is in error state. |
Versionsinformation
- TwinCAT Standard >= v3.1.4026.23.1
- TF5550 MC3 Camming >= v4.0.6 (inkludiert TF5500 MC3 Base >= v4.0.6)
Required License
TC3 MC3 Camming