Breadcrumbs

Global Function for single-acting tool

Create Global Function

Global Function commonly used in various WCI & Skill can be created.

  • Function & Variable Writer → Select Global Function

image2021-8-19_13-28-36.png


Edit Global Function

Global Function can be newly created, or existing Global Function can be modified.

  • Create new Global Function: Add New

  • Modify existing Global Function: Check one of existing Global Functions → Edit

image2021-8-19_13-29-36.png



Create and modify Global Function

  1. Write the name and description of Global Function in Function Name and Description.

  2. In Parameter Name, enter Input parameters to be used in function.

  3. Set Return Type: Select Dynamic if there is a Return value, and select None if there is none.

  4. Set Visibility Type.

  5. In Text editor, enter the details of Global Function using DRL Codes (Python).
    → This must be entered in the form of Python function. Check to make sure that Function Name and Parameter entered in the UI window are the same.

  6. Save Global Function → Confirm

image2021-8-19_13-33-32.png


  • Text editor can be expanded, and Python grammar check is possible.

  • (information) Click the button to write while checking DRL Command Guide.

  • Sample Code: CaloffsetPos()

image2021-8-19_13-34-12.png


Global Function List

Save Global Function to check the list as follows.

image2021-8-19_18-13-2.png