Skip to content

Import Function Blocks

After the initial setup of the drag&bot Robot System and components, you are ready to begin to build our first program. In order to build the program it is necessary to import function blocks from the Robot System into the drag&bot database.

The following describes how to import function blocks:

  1. Click on the program overview in the left menu.
  2. Click on the right tab: Function Blocks
  3. Three options will be available on how to get function blocks into drag&bot. Function block overview empty
    • Import from robot system: This will show all available function blocks on the drag&bot RUNTIME ready to be imported. This is the recommended way to import all function blocks.
    • Create function block: Write your own function block in Python and JSON.
    • Import from file: Import an function block from a file you have on your hard disk. Use this button when you want to import previously exported programs from JSON files.
  4. A dialog will open and show you all categories of function blocks.
  5. Select the Basic tab
  6. Select all basic function blocks Function block overview basic
  7. Click on the Import button Function block overview basic selected
  8. Now all selected function blocks are imported into the drag&bot database Function block overview basic imported
  9. The basic function blocks can now be used to build drag&bot programs Function block overview basic

To start off building simple programs we recommend to import the following function block categories:

  • Basic
  • Control & Logic
  • Math
  • Robot
  • Component Specific e.g. Robot Simulator, Camera, etc.

A list with a description of all available function blocks can be found in the Function Block Library or the respective hardware component section.