beckhoff TS511x — 5.1.5 FB_UnlockTrafoParam

Plc Library VAR fbFB_CalcTrafo : FB_CalcTrafo; stAxesPosIn : ARRAY[1..8] OF LREAL; stAxesPosOut : ARRAY[1..8] OF LREAL; bUserExecute : BOOL; bUserCalcFwdTrafo : BOOL; END_VAR fbFB_CalcTrafo( bExecute := bUserExecute, bForward := bUserCalcFwdTrafo, oidTrafo := 16#01010072, stAxesPosIn := stAxesPosIn, stAxesPosOut := stAxesPosOut, bBusy=> , bDone=> , bError=> , nErrorId=> ); 5.1.5 FB_UnlockTrafoParam The Function Block FB_UnlockTrafoParam unlocks the transformation parameters so that they can be written. After the Unlock the Kinematic Parameters can be written from the PLC with ADSWRITE. The required Index Group is the Object Id and the Index Offset is the Parameter Id.

The written parameters are not persistent. VAR_INPUT VAR_INPUT bExecute : BOOL; oidTrafo : UDINT; END_VAR bExecute: The command is triggered by a rising edge at this input. oidTrafo: Object-ID of the kinematic transformation object. See example [ } 32] below. TS511x 31 Version: 1.0 CAUTION Changing parameters may lead to discontinuities Beware this is to be used with extreme caution. Redefining kinematic parameters can intro- duce discontinuities in the Kinematic chain.