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. NOTICE Changing parameters may lead to discontinuities Beware this is to be used with extreme caution. Redefining kinematic parameters can introduce discontinuities in the Kinematic chain. 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 [ } 33] below. TS511x 32 Version: 1.1