MC_PathCamSwitch
The data type MC_PathCamSwitch contains all parameters of a digital cam for a digital cam controller MC_PathDigitalCamSwitch_MultiEdge.
TYPE MC_PathCamSwitch :
STRUCT
FirstOnPosition : LREAL;
LastOnPosition : LREAL;
FirstPathId : UDINT;
LastPathId : UDINT;
CamSwitchMode : E_CamSwitchMode;
Duration : LREAL;
END_STRUCT
END_TYPE
The data structure for parameterization of a digital cam controller is usually an ARRAY OF MC_PathCamSwitch. A further structure PATH_CAMSWITCH_REF refers to this structure.
Name | Type | Description |
---|---|---|
FirstOnPosition | LREAL | First position from which the cam is switched on. |
LastOnPosition | LREAL | Last position up to which the cam is switched on. The cam function is inverted, if LastOnPosition < FirstOnPosition. LastOnPositionis is not used for time cams. |
FirstPathId | UDINT | Unique ID that continually increases over the path and belongs to the relative path until the cam switches on. |
LastPathId | UDINT | Unique ID that continually increases over the path and belongs to the relative path until the cam switches off. |
CamSwitchMode | Digital cam type (position cam, time cam or brake cam). | |
Duration | LREAL | Duration defines the switch-on time of the cam in [s] and is only used for time cams. |
TYPE E_CamSwitchMode :
(
CAMSWITCHMODE_POSITION, (* position cam *)
CAMSWITCHMODE_TIME, (* time cam *)
CAMSWITCHMODE_BREAK (* break cam *)
);
END_TYPE