Changing .bpg File into .tsk File                                 Last updated 2010.1.21 (v1.01 Eng)

This is the explanation regarding how to change .bpg files written in Behavior Control Program into the codes (.tsk) of RoboPlus Task.

 

Opening .bpg File Using RoboPlus Task

  1. Open .bpg file using Open
    Press Menu ≫ File(F) ≫ Open(O), Shortcut(Ctrl + O), or  Open(open_btn.png) to select a file.
     
  2. Open .bpg file using Drag & Drop
    Drag .bpg file to RoboPlus Task.

 

[ Pop-up window in case of opening .bpg file ]

convert_bpg_tsk_1.png

 

Writing the Commands of RoboPlus Task in the Grammar of Behavior Control Program 1.0

Please check the following after learning the how-to-use of RoboPlus Task commands and Behavior Control Program 1.0.

 

  1. Start Program (Click here to see more information on the "Start Program." )
    - It is the same as existing "Start.".
    -  } (Section End) of Start Program is the same as existing "End.".

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_01-1.png

    cmd_01-2.png

     
  2. End Program ( Click here to see more information on the "End Program." )
    - It is the same as existing Jump to the Label of "End" Command.

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_02-1.png

    cmd_02-2.png

     
  3. { (Start Block) / } (End Block) ( Click here to see more information on the "Start/End of Block." )
    - Lately added concept-  it is not included in existing Behavior Control Program 1.0.
     
  4. // (Comment or Memo) ( Click here to see more information. )
     - It is the same as existing "Comment."  It does not have any influences on motions.

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_04-1.png

    cmd_04-2.png

     
  5. Calculate (Basic Calculation and Bit Calculation) ( Click here to see more information on the "Calculate." )
    - It is the same as existing "Compute."

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_05-1.png

    cmd_05-2.png

     
  6. Load (Input Values) ( Click here to see more information on the "Load." )
    - It is the same as existing  "LOAD".

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_06-1.png

    cmd_06-2.png

     
  7. Label (The Site for Jump) ( Click here to see more information on the "Label." )
    - It is the same as existing "Label". However, it is not possible to be called as in Behavior Control Program 1.0; only Jump is possible.

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_07-1.png

    cmd_07-2.png

     
  8. Jump (goto) ( Click here to see more information on the "Jump." )
    - It is the same as existing "JUMP."

    RoboPlus Task

    Behavior Control Program 1.0

    cmd_08-1.png

    cmd_08-2.png

     
  9. (if) / (else if) / (else) ( Click here to see more information on the "if / else if / else." )
     - It is the same as existing "(IF) / (ELSE IF) / (ELSE)".

    RoboPlus Task

    cmd_09-3.png

    Behavior Control Program 1.0

    cmd_09-4.png

     
    - In case that (CONT IF) comes after existing (AND), it is changed to &&.
    - In case that (CONT IF) comes after existing (OR),  it is changed to ||.

    RoboPlus Task

    cmd_09-1.png

    Behavior Control Program 1.0

    cmd_09-2.png

     
  10. Endless Loop (while(1)) ( Click here to see more information on the "Endless Loop." )
    - It is the same as the code repeating the execution of certain blocks unconditionally using Label and JUMP.

    RoboPlus Task

    cmd_10-1.png

    Behavior Control Program 1.0

    cmd_10-2.png

     
  11. Loop While (while(Condition)) ( Click here to see more information on the "Loop While." )
    - It is the same as the code repeating the execution of certain blocks using Label and JUMP, depending on conditions.

    RoboPlus Task

    cmd_11-1.png

    Behavior Control Program 1.0

    cmd_11-2.png

     
  12. Loop For (for) ( Click here to see more information on the "Loop For." )
    - It is the same as the code repeating the execution of certain blocks only designated times using variables.

    RoboPlus Task

    cmd_12-1.png

    Behavior Control Program 1.0

    cmd_12-2.png

     
  13. Break Loop (break) ( Click here to see more information on the "Break Loop." )
    - It is used equally as the code jumping to the next label of repeated sentences.

    RoboPlus Task

    cmd_13-1.png

    Behavior Control Program 1.0

    cmd_13-2.png

     
  14. Wait While (Conditional Repeat without Execution Paragraph) ( Click here to see more information on "Wait While." )
    - In case the condition is "True", it is used equally as the code jumping to its own label.

    RoboPlus Task

    cmd_14-1.png

    Behavior Control Program 1.0

    cmd_14-2.png

     
  15. Callback Function (callback) ( Click here to see more information on "Callback" function. )
    - Lately added concept - it is not included in existing Behavior Control Program 1.0.
     
  16. Make/Call Function ( Click here to see more information on "Make/Call Function. )
    - The function is the same as the sub-routine composed of existing Label and RETURN.
    - In RoboPlus Task, the function must be located outside of the block where is owned by Start Program (the block tied with { AND }).

    RoboPlus Task

    cmd_16-1.png

    Behavior Control Program 1.0

    cmd_16-2.png

     
  17. Exit Function (return) ( Click here to see more information on "Exit Function." )
    - It is the same as the code performing JUMP to the label of existing RETURN.

    RoboPlus Task

    cmd_17-1.png

    Behavior Control Program 1.0

    cmd_17-2.png