代入

説明

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.