Third-party axes
Third-party axes are not supported automatically. Users must consult the operating manual of the third-party axis to find out for themselves how to retrieve the active power of the axis.
Using the property rAddAxesPower it can then be transferred to the PowerMonitor as total power. To do this, the property must be retrieved as follows via the so-called "Function" interface or it 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;- On this interface, write the active power of your third-party axis to the property rAddAxesPower .
- In the following example, a total power of 500 W from third-party 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
