MC_DigitalCamSwitch
This function block implements a digital cam switch. Depending on the data source (e.g. from a physical encoder), the cam switch can be used to control actuators (e.g. glue nozzles) in a dynamic motion sequence within adjustable limits or a value range (electronic cam). Any number of cam tracks can be used. Each track can consist of several cams. The switching signal is defined by a binary signal and a switching time.

VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Axis | AXIS_REF | Reference to a logical device See also AXIS_REF. |
Switches | ARRAY[*] OF MC_CAMSWITCH_REF | Array of type MC_CAMSWITCH_REF, which contains the configuration of the cams. |
TrackOptions | ARRAY[*] OF MC_TRACK_REF | Array of type MC_TRACK_REF, which contains the configuration of the cam tracks. |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Enable | BOOL | Activate the cam switch. |
EnableMask | DWORD | Activate different tracks. EnableMask.0 activates the lowest TrackNumber. EnableMask.x TRUE activates the corresponding TrackNumber. |
ValueSource | Source for axis values (e.g. positions):
|
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
InOperation | BOOL | Cam switch is active |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
