할당

설명

The Assignment command enables you to assign values to created variables.


To access Assignment command

  1. Go to the main program screen. Command Nodes를 참조하십시오.

  2. Tap the Assignment icon in the Commands toolbox.

    A node with three editable fields is inserted into the program tree:

    • 변수

    • 값 유형

    • 표현식

  1. Tap the Variable field to choose your variable:

    • 그리드

    • grid_iterator

    • var

    The Variable field contains the name of the variable. By default, the variable is called var.

 
  1. Tap the Value Type field to and select your choice:

    • 배열

    • 부울

    • 부동 소수점

    • 그리드

    • 정수

    • 행렬

    • 포즈

    • 문자열

    • 타이머

    • 웨이포인트

    The Value Type contains the type of variable you are creating.

    유형 Allowed Values/Examples Examples
    배열 A list of values  
    부울 True/False
    부동 소수점 A decimal point value 1.23
    그리드 A grid defined in the application  
    정수 정수 5
    행렬    
    포즈 A pose for the robot to move p[0,0,0,0,0,0,]
    문자열 텍스트 “Hello World”
    웨이포인트 A waypoint is defined in the program

     

     

 
  1. Tap the Expression field, select your variables and expression, and Confirm. The Expression is the value to assign the variable. See 표현식 편집기.

    Note: Tap the icon arrow left and arrow right in the right sidebar of the main screen if you want the assignment to be reverted.