Hello @Renk
A reinit of the AxisInterface will be done automatically during a motion state changing to running. No need to do it manual.
Details:
After add the MotIF template the TE_AxisInterfaceMainProg(...) of the (open) library CXA_MOTION_IF_USER will be called by the AxisIfPLCProg. A sucessful initialisation will be signals with TE_AxisInterfaceMainProg.InitDone.
The TE_AxisInterfaceMainProg(...) always check the motion state via the IMC interface.
If the motion is coming in state "RUNNING" a reinit of the motion interface will be initiated.... User signal: "InitDone = TRUE"
If the motion is leaving the state "RUNNING" the "InitDone = FALSE".
For more details please open the TE_AxisInterfaceMainProg at the library manager. If necessary (currently I don't know why) you can modify it.
Regards
Jochen
... View more