MC_CAMSWITCH_REF_BkPlcMc (from V3.0)
A variable of this type is transferred to an MC_DigitalCamSwitch_BkPlcMc function block.
Syntax
TYPE CAMSWITCH_REF_BkPlcMc:
STRUCT
Switch: ARRAY [ciBkPlcMc_CamSwitchRef_MinIdx..ciBkPlcMc_CamSwitchRef_MaxIdx] OF MC_CAMSWITCH_REFTYPE_BkPlcMc;
END_STRUCT
END_TYPE
TYPE MC_CAMSWITCH_REFTYPE_BkPlcMc:
STRUCT
TrackNumber: INT;
FirstOnPosition: LREAL;
LastOnPosition: LREAL;
AxisDirection: INT;
CamSwitchMode: INT;
Duration: LREAL;
(* private members, do not touch *)
nCurrentState: SINT:=0;
bTriggered: BOOL:=FALSE;
fTimer: LREAL;
(**)
END_STRUCT
END_TYPE
Parameter
Name | Type | Description |
---|---|---|
TrackNumber | INT | This is an index in an ARRAY [ciBkPlcMc_TrackRef_MinIdx..ciBkPlcMc_TrackRef_MaxIdx] OF MC_TRACK_REF_BkPlcMc, which is transferred to a function block of type MC_DigitalCamSwitch_BkPlcMc. |
FirstOnPosition | LREAL | [mm] The start of the cam track. For time-controlled cams, this is the trigger position. |
LastOnPosition | LREAL | [mm] The end of the cam track. Has no effect for time-controlled cams. |
AxisDirection | INT | Specifies in which direction of movement the cam becomes active: 0 = both directions, 1 = positive direction, 2 = negative direction. |
CamSwitchMode | INT | The operating mode of the cam: For displacement-controlled cams enter 0, for time-controlled cams enter 1. |
Duration | LREAL | [s] For time-controlled cams enter the switch-on time in seconds. |
nCurrentState | SINT | These elements are runtime variables and must not be influenced or used by the application. |
bTriggered | BOOL | |
fTimer | LREAL |