Input Description

MCX_CamSwitchComfort_dc provides the possibility to switch a cam on/off at projected positions. The position is given by an encoder, which must be available, if the cam switch functionality is to be used.

The switch-on-position and the switch-off-position are individually changeable online. Further more a compensation time in both directions can be added to the switch position.

../_images/d1675e7be38a4ee10a33139000eba54e

The compensation time makes the switch a “dynamic” switch. The position where to switch on and off is calculated according to the actual velocity, in a way that the output occurs a certain time before (negative compensation) or after (positive compensation) the position has been reached. The time is given at the input compensation, the distance is calculated. The accuracy of time to be reached depends on the stability of velocity, which means just on a constant velocity, the time will be correct.

OnDistance = velocity * OnCompensation;
OffDistance = velocity * OffCompensation;

The switch will be switched on at “FirstOnPosition + distance” and switched off at “FirstOffPosition + distance”. While switched on, no new calculation of distance will be done.

On different times for OnCompensation and OffCompensation, the time to be switched on will be increased or decreased. For example, with a positive OnCompensation and a negative OffCompensation, the time to be switched on will be smaller. The minimum time will be a single device cycle (200 µs), the maximum will be a full revolution with a single cycle off.

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

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.

FirstOnPosition

Data_Type Default_Value Range Unit
WORD - - -

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

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

FirstOffPosition

Data_Type Default_Value Range Unit
WORD - - -

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

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

Note

  • If FirstOnPosition is smaller than FirstOffPosition, the cam is switched on between the values of FirstOnPosition and FirstOffPosition of the same turn. 2c831466e38a56400a33139000473a6a_6815a9d6e38a53630a33139000eba54e
  • If FirstOnPosition is greater than FirstOffPosition, the cam is switched on between the values of FirstOnPosition of the actual turn and FirstOffPosition of the next turn. 2c831466e38a56400a33139000473a6a_04d2c890e38a53b10a33139000eba54e
  • If FirstOnPosition is equal to FirstOffPosition, the cam is switched on for one device cycle.

OnCompensation

Data_Type Default_Value Range Unit
DINT - - µs

The switch action is rescheduled with Compensation:

  • If Compensation is positive, the switch action will be delayed by the value of Compensation.
  • If Compensation is negative, the switch action will be brought forward by the value of Compensation.

OffCompensation

Data_Type Default_Value Range Unit
DINT - - µs

The switch action is rescheduled with OffCompensation:

  • If OffCompensation is positive, the switch action will be delayed by the value of OffCompensation.
  • If OffCompensation is negative, the switch action will be brought forward by the value of OffCompensation.

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.

ErrorID

Data_Type Default_Value Range Unit
WORD - - -

ErrorID is 1 if communication an error occurred.

ErrorID is 2 if a wrong parameter value is applied to the Function Block.

ErrorID is 3 if a wrong cam type is configured in the device CI51x-ETHCAT.

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.