twincat

Is there a way to read out the drive parameters found in the parameter tab in TwinCAT?


In my code, I want to check if the fast axis stop is enabled. This option can be set if you select MOTION > Axes > {Your Axis} and open the Parameter tab. I've tried to find these options in the process parameters that can be read out using CoE, but these options are not there.

enter image description here

When you hover over a parameter, an index and an offset are shown, but I'm not sure how or where this can be read.


Solution

  • This is achieved using the MC_ReadParameter function block.

    The relevant parameters are these:

    AxisFastStopSignalType,             (* dword *) (* IndexOffset= 16#0000_001E *)
    AxisFastAcc,                        (* lreal *) (* IndexOffset= 16#0000_010A *)
    AxisFastDec,                        (* lreal *) (* IndexOffset= 16#0000_010B *)
    AxisFastJerk,                       (* lreal *) (* IndexOffset= 16#0000_010C *)