Plc Library VAR_IN_OUT VAR_IN_OUT stAxesPosIn : ARRAY[1..8] OF LREAL; stAxesPosOut : ARRAY[1..8] OF LREAL; END_VAR stAxesPosIn: Array which contains the input positions of the transformation. In order to calculate a forward transformation this would be the joint positions. In order to calculate a backward transformation this would be the Cartesian axes positions. stAxesPosOut: Array which contains the resulting positions of the transformation. If a forward transformation is calculated this would be the Cartesian axes positions. If a backward transformation is calculated this would be the joint positions. VAR_OUTPUT VAR_OUTPUT bBusy : BOOL; bDone : BOOL; bError : BOOL; nErrorId :
UDINT; END_VAR bBusy: The output becomes TRUE when the command is started with bExecute as long as the function block is executing the command. While bBusy is TRUE, no new instructions will be accepted at the inputs. When bBusy becomes FALSE again, the function block is ready for a new command. At the same time one of the outputs bDone or bError is set. bDone: The output becomes true if the command succeeded. bError: The output bError becomes true if an error occurs as the command is executed. nErrorId: Contains the command-specific error code of the most recently executed command.
The error code can be found in the ADS error documentation [ } 38] or in the NC error documentation (error codes above 0x4000). Example The Scara Transformation has 4 ACS (joint) axes and 4 MCS (Cartesian) axes Scara Transformation Example Configuration Scara Transformation Example Object Id TS511x 30 Version: 1.0