Breadcrumbs

Create and edit Global Function

It is a screen to add a new global function item or edit.

It can be saved only after the function name, description, and code are entered.

Full screen
image2021-6-4_11-26-46.png

It displays the list of the Global Function created by the user. It displays the name and description of the Global Function.

When entered by editing, it loads the name and description of the global function entered previously.

image2021-6-4_11-29-54.png

Parameter Information Area

When entered by editing, it loads the parameter information entered previously.

image2021-6-4_11-31-19.png

Item

Description

Add New Parameter

When need to add a parameter, click the button to add a new parameter.

Parameter name

It provides a view to enter the name of the Parameter.

Variable Type

It provides a button to enter the data type of the Parameter.
Variable Type

  • Pose : Coordinate type

  • Array : Array type

  • Variable : integer, real number, string type

Return Type Setting
image2021-6-4_13-2-32.png

Item

Description

Dynamic

Select if there is a return value.

None

Select if there is no return value

Visibility Setting
image2021-6-4_13-4-42.png

Item

Description

Public

Make the global function public to all users.

Internal

Make the global function accessible by the affiliated company only.

Code Editor

  1. When changing data to System Variable within DRL Code, The behavior of WCI or SKILL using the same System Variable may not work properly. Please indicate the precautions and the details of the System Variable being used in DRL Code.

  2. When writing Workcell Item Writer or Skill Writer items, please use UI Component > Text Edit Component for notices.

  3. In case of using System Variable in DRL Code, it is necessary to register System Variable first in Teach pendant.

  4. Currently, App Builder limits the maximum capacity of Code Editor to 65,000 bytes for comfortable loading and execution. For a successful build, the capacity of each code using Code Editor, such as a function, must be written separately so that it does not exceed 65,000 bytes.

image2021-6-4_13-11-3.png

Item

Description

image2021-6-4_13-12-13.png

It displays DRL Command Guide page as a reference when writing codes.

image2021-6-4_13-11-52.png

An enlarged pop-up is displayed so that Code Edit can be written in a more spacious space.

Input Window

It is the area to write DRL codes.
Refer to DRL Command Guide on how to write it.

Compile
image2021-6-4_13-16-56.png

Item

Description

Compile
Result confirmation window

An error message is displayed when there is a grammatical error.

Syntax Check

It is a function to check for a grammatical error in the DRL code written.
The results are displayed on the Compile result confirmation window on the left.