Third-party axes

Third-party axes are not supported automatically. Users must use the operating manual of the external axis to find out for themselves how to retrieve the active power of the axis.

It can then be transferred to the PowerMonitor as total power using the property rAddAxesPower. To do this, the property must be retrieved as follows via the so-called "Function" interface or must be released from the internal code:

  1. Create a local instance of the IPowerMonitor interface.
    • _itfPowerMonitor:SEW_MK_PES_PowerMode.SEW_PwrMon.SEW_IPwrMon.IPowerMonitor;
  2. Call the IPowerMonitor interface via the IPowerMonitorFct interface. To do so, assign the property itfIPowerMonitor to the _itfPowerMonitor on MOVIKIT® (MDP92A in the example). You can program this in User_PRG.Init, for example.
    • _itfPowerMonitor:=MDP92A.itfPowerMonitor;
  3. Describe the property at this interface with the active power of its third-party axis.
  4. INFORMATION

    Before assigning values via this interface, ensure that the initialization has run successfully (SEW_PRG.xInitDone = "TRUE"). It is therefore recommended to check the xInit variable before assigning values to _itfPowerMonitor.rAddAxesPower.
    • In the following example, a total power of 500 W from external axes was assumed and transferred. The axis power must be updated at the cycle of the bus (ideally in User_PRG.CallHighPrio()). The power is then automatically added to the total power of the axes. Before accessing the interface, check that it does not receive a zero pointer (see the following example).
    • IF _itfPowerMonitor <> 0 THEN                           
        _itfPowerMonitor.rAddAxesPower:=500;                  
      END_IF