Function block “MC_DigitalCamSwitch_EL5131”
If the axis is controlled from the TwinCAT Motion function environment, the NC, the axis parameters are stored in the NC, including the adjustment of the scaling factor for the encoder. In addition to the actual encoder position, the specification of the individual cams is decisive for the implementation of a digital cam controller. In order to have a consistent calculation basis, it is helpful to use the position data scaled by the NC directly to determine the cam positions.
The library TF5065 “Motion Control XFC/ XFC NC I” provides a function block “MC_DigitalCamSwitch_EL5131” for the commissioning of a cam controller based on the EL5131.
The use of the function block “MC_DigitalCamSwitch_EL5131” offers the following advantages:
- Processing of the position data scaled by the NC,
the additional conversion of the “Counter Value” in the PLC is no longer necessary. - Organization of all parameters of the cam tracks and the individual cams in prepared data structures (data type: CAMSWITCH_REF, data type: MC_CamSwitch) allow structured parameterization as position or time cams
- Individual configuration of the two digital 24 V outputs as independent cam tracks
- Simplified declaration of variables through defined data structure for EL5131; these no longer need to be declared individually
- Fast error analysis via defined status bits
Requirements
Development environment | PLC libraries to include |
---|---|
TwinCAT 3.1 Build 4024.55 | Tc2_MC2 3.3.59 |
Notes on using the function block “MC_DigitalCamSwitch_EL5131”
The EL5131 provides two digital outputs that represent two independent cam tracks.
For each cam track
- a separate function block must be used.
- the number of cams used can be specified. Up to four position cams or up to eight time cams are available.
- the switch-on time of the individual cam can be defined for time cams.
- the direction in which the cams are active (positive, negative or both) can be defined.
No mixed operation of different directions within one cam track Mixed operation in different directions is not permitted within the cam track.
|
Further information can be found in the TwinCAT 3 documentation TF5065 “Motion Control XFC/XFC NC I” in the chapter “Cam controller” – “MC_DigitalCamSwitch_EL5131”.