MC_DigitalCamSwitch_MultiEdge
The function block MC_DigitalCamSwitch_MultiEdge is a digital cam controller with one or several cams on a digital output track. The function block supplements the function block MC_DigitalCamSwitch by the capability of being able to perform multiple switching operations during a PLC cycle. The switching operations are defined by position cams. Further output tracks can be realized with independent instances of the function block.
In addition to the switching state of the digital output the output data structure contains precise time information for the next switching operations. With this information, the actual output can take place on an XFC multi-timestamp output terminal with a downstream function block (XFC_EL1259_MultiEdge, XFC_EL2212_MultiEdge, XFC_EL2258_MultiEdge or XFC_EL2262_MultiEdge).
Time cams and brake cams cannot be used with the function block MC_DigitalCamSwitch_MultiEdge. Terminals without multi-timestamp functionality are not suitable for use with this function block. |
Inputs
VAR_INPUT
Enable : BOOL;
Options : ST_CamSwitchOptions;
END_VAR
Name | Type | Description |
---|---|---|
Enable | BOOL | The cam controller is activated via the Enable input. The initial state remains unchanged, as long as Enable=FALSE. |
Options | Optional parameters |
/ Inputs/Outputs
VAR_IN_OUT
Axis : AXIS_REF;
Switches : CAMSWITCH_REF;
Output : OUTPUT_REF_MULTIEDGE;
TrackOptions : TRACK_REF;
END_VAR
Name | Type | Description |
---|---|---|
Axis | The axis data structure of type AXIS_REF addresses an axis unambiguously within the system. Among other parameters, it contains the current axis status, including position, velocity or error state. | |
Switches | The data structure Switches contains a reference to the parameterization of all cams on the cam track. | |
Output | The data structure Output contains the calculated state of the digital output and the associated timestamp for the output at a digital XFC output terminal. | |
TrackOptions | The data structure TrackOptions contains the parameterization for the cam track. |
Outputs
VAR_OUTPUT
InOperation : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
InOperation | BOOL | InOperation is TRUE, as long as the cam controller is active and the cam track is calculated according to the cam parameterization. |
Busy | BOOL | Busy is TRUE as long as the block function is not completed. |
Error | BOOL | Becomes TRUE if an error occurs. |
ErrorID | UDINT | If the error output is set, this parameter supplies the error number. |