Input Description

MCX_PulseSwitch_dc provides the possibility to generate a pulse train according to the master position; the frequency is proportional to the velocity of the master. The master position is given by an encoder, which must be available, if the cam switch functionality is to be used.

The values for CyclePeriod, Hysteresis and Offset are angle-values. They are individually changeable online.

../_images/2cf1f1bee38a517f0a33139000eba54e

CyclePeriod is a fraction of 1 revolution (at maximum 1 revolution).The PulseSwitch will be switched on when the position is between CyclePeriod/2 and CyclePeriod “ Hysteresis (shown green). The PulseSwitch will be switched off when the position is between 0 and CyclePeriod/2 “ Hysteresis (shown red). It will not be changed otherwise, this prevents a toggling of the output in case the encoder stopped close to the switching position.

For example, when 1 revolution is 360° and CyclePeriod is 10°, it will be switched on for 5° and switched off for 5°, in total 36 pulses will  be generated per revolution.

Several MCX_PulseSwitche_dc may be used to generate coordinated outputs, delayed by offset to each other.

../_images/b7ef8fc8e38a51be0a33139000eba54e

The actual state of the cam can also be monitored with the output “state”.

../_images/5a1b8358e38a51310a33139000eba54e

Enable

Data_Type Default_Value Range Unit
BOOL - - -

The Function Block is activated with Enable TRUE. With Enable=FALSE, the respective cam will be switched off immediately.

CyclePeriod

Data_Type Default_Value Range Unit
WORD - - -

Number of encoder pulses for one pulsewith-period. The value of CyclePeriod is automatically truncated to the resolution of the circle without notice. For example, all CyclePeriod greater than 36000 will be limited to 36000 (given if the default resolution of CI51x-ETHCAT cam is used).

CyclePeriod can be changed at any time. It will be immediately valid after sending to the CI51x-ETHCAT via the POU.

Hysteresis

Data_Type Default_Value Range Unit
WORD - - -

The value of Hysteresis is automatically truncated to the resolution of the circle without notice. For example, all Hysteresis greater than 36000 will be limited to 36000 (given if the default resolution of CI51x-ETHCAT cam is used).

Hysteresis can be changed at any time. It will be immediately valid after sending to the CI51x-ETHCAT via the POU.

Offset

Data_Type Default_Value Range Unit
WORD - - -

The value of Offset is automatically truncated to the resolution of the circle without notice. For example, all Offset greater than 36000 will be limited to 36000 (given if the default resolution of CI51x-ETHCAT cam is used).

Offset can be changed at any time. It will be immediately valid after sending to the CI51x-ETHCAT via the POU.

CamNumber

Data_Type Default_Value Range Unit
WORD - 1…32 -

Number of the cam: this number runs from 1..32. The parameter cam_To_Track[0..31] must be used to map the cam to the available digital outputs. A configuration tool must be used for setting the cam_To_Track.

csdc

Data type: CSDCX_REF_TYPE

The 2 elements in_csdc and out_csdc of csdc must be initialized with the beginning address of the input data area and the output data area to facilitate proper function of the cam.