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:
- Create a local instance of the IPowerMonitor interface.
_itfPowerMonitor:SEW_MK_PES_PowerMode.SEW_PwrMon.SEW_IPwrMon.IPowerMonitor;- 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;- Describe the property at this interface with the active power of its third-party axis.
- 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
INFORMATION
