Case 1: Setpoint curve is fed in from outside

In this case, an instance of the MC_SEW_UserMasterStandard function block is created. The characteristic parameters of the setpoint curve can be initialized during the declaration.

In the following example, a sine wave of the amplitude _lrAmplitude with the period _lrPeriod is calculated as the setpoint curve. The calculation of the setpoints and the call of the instance of the MC_SEW_UserMasterStandard function block with transfer of the calculated setpoints must take place in the setpoint generation task:

The instance of the MC_SEW_UserMasterStandard function block is transferred to the MC_GearIn function block as the master:

The following trace recording illustrates the setpoint curve of the slave axis:

Blue

  Setpoint position

Green

  Setpoint speed

Red

  Setpoint acceleration