The following is a function designed for importing into the Codesys software when developing Compax3 (T30 or T40) IEC programs.
To bring this function into the Codesys environment, first download the file, then open your project in Codesys, and then under the Project menu, select the 'Import' utility and point to where you have the particular .exp file saved on your computer.
You can then add the particular function to your overall program as you would any other function or function block. The imported function will be listed under either 'User Defined Functions' or 'User Defined Function Blocks'.
Reset - Enable - Home Function Block
Note - This function resets any existing errors, enables the drive, and
initiates a homing move (which assumes your Compax3 drive/controller has been configured for a specific homing function). It provides a latched error output that is cleared via the enable input.
Inputs: Axis (INT)
Outputs: Error (BOOL)