The issue is when we are using the “ MC_WriteParameter” Function,
When we press on “Number” under “ParameterNumber” to know which number to use ,
we are confusing by the below list, if we need to write “SWLimitPos” under parameternumber what is the write number should we use in the Function block ?
What is the formula used to calculate the number?
Answer:
You can just use the name of the parameter from the list and connect it to the ParameterNumber input of the function block:
MC_WriteParameter(
Execute:= ,
ParameterNumber:= SWLimitPos,
Value:= MyLimitPosValue,
Axis:= );
Sometimes it is not so clear which parameter name has to be used. For that reason there is a comment behind the name to make sure which index offset will be read or written:
SWLimitPos, (* lreal *) (* IndexOffset= 16#0001_000E *)
The comment corresponds to the NC parameter documentation: