Hello, I found in a other Post a Solution to set up the MP_Link Input of the mpAxisBasic but how does it work for the Parameters Input?
Thanks for your help.
Hello,
looks quite fine, i think you only have the declaration in the Calling-Task wrong.
Here my screenshots for your situation, reduced to MpLink and Paramters Structure.
Library
FUNCTION_BLOCK FB_MotionAxis
IF IN_Parameter = 0 THEN
// Wait until Paramter input to prevent access to invalid address 0
ELSE
pPara ACCESS IN_Parameter;
MpAxis(MpLink := MP_Link,
Parameters := IN_Parameter);
END_IF
END_FUNCTION_BLOCK
Task
PROGRAM _CYCLIC
FBAxis(MP_Link := ADR(gAxisQX) ,
IN_Parameter := ADR(FBAxisPar));
END_PROGRAM
Watch Window
Greetings
Michael