Skip to main content
Skip table of contents

단동식 툴 Global Function

Global function 생성

다양한 WCI & Skill에서 공용으로 활용 가능한 Global function을 생성할 수 있습니다.

  • Function & Variable Writer → Global Function 선택


Global function 편집

Global Function을 새로 생성하거나, 기존 Global Function을 수정할 수 있습니다.

  • 새로운 Global function 생성: Add New
  • 기존 Global Function 수정: 기존 Global Function 중 하나 체크 → Edit



Global Function 작성 및 수정

  1. Global Function의 이름과 설명을 Function Name 및 Description에 작성합니다.
  2. Parameter Name에 함수 에서 사용할 Input parameter들을 입력합니다.
  3. Return Type을 설정합니다: Return 값이 있는 경우 Dynamic, 없는 경우 None을 선택합니다.
  4. Visibility Type을 설정합니다.
  5. Text editor에 DRL Codes (Python) 를 이용한 Global Function의 내용을 입력합니다.
    → Python의 함수 형태로 입력해야 하며, UI창에 입력한 Function Name과 Parameter Name이 같은 지 확인합니다.
  6. Global Function 저장 → Confirm


  • Text editor는 확장될 수 있으며, Python의 문법 체크가 가능합니다.
  • (정보) 버튼을 눌러 DRL Command Guide를 확인하시며 작성 할 수 있습니다.
  • Sample Code: CaloffsetPos()


Global Function List

Global Function을 저장하면 다음과 같이 list를 확인할 수 있습니다.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.