Skip to content

Fanuc R-30iB Controller Setup


The software options R648 "User Socket Msg" and R632 "KAREL" must be installed on the robot controller.


The drag&bot driver is also compatible with the R-30iB Mate and R-30iB Plus variants.
Further it is only compatible with the following Fanuc controller software versions: V9.10, V9.00, V8.36, V8.33, V8.30, V8.23, V8.20, V8.13, V8.10


The required controller files can be downloaded from here: Downloads

Fanuc Teach Pendant Introduction

The Fanuc teach pendant consists of several areas, where the most relevant are described in the following:

  • The display main area (1) is the most important area. Here all menus and lists are displayed.
  • At the bottom of the display is the software button bar (2). There are always up to five buttons with dynamic meaning.
  • Below the software button bar is the hardware button bar (3) with labels 'F1', 'F2', 'F3', 'F4' and 'F5'. These buttons are directly connected to the software button bar, so F1 always "presses" the first software button and so on. The buttons '<' and '>' can change the button choice, if there are more buttons than can be displayed.
  • The main input device are the soft buttons (4). In the figure shown below the most important soft buttons are marked red:

    • switches to the main menu, which is shown in the figure below.
    • switches to the list of available programs.
    • resets any error or message shown in the top area of the display main area.

Fanuc controllers use multipages for their menu navigation. If a described entry does not appear at the first page, please search also the following pages with the NEXT or next page menu entry.

All descriptions assume that the HMI Full Menu view is selected on the Fanuc teach pendant. You can change to the HMI Full Menu view by pressing the soft button and toggle the QUICK/FULL MENU option.

Find the controller IP

  1. Press the soft button , enter the SETUP menu and there the Host Comm section.
  2. Select the protocol TCP/IP and press the button DETAIL at the bottom bar.

Configure the controller for drag&bot

Configuration of the Fanuc R-30iB controller is divided into two steps. At first the drag&bot controller files have to be transferred to the controller. Secondly a specific configuration has to be performed in the controller system parameters.


Pleace note that the setup process is only confirmed to be successful with a fresh controller with no other additional software options or hardware than described above. Controllers, which do already have an existing setup or extended hardware, might need further or different adjustments than described here.
Also it's strongly recommended to backup your controller state before performing any changes.

Enable the required user tasks and register ranges

The drag&bot controller program uses

  • four User Tasks and one Motion Task,
  • the Fanuc Registers 200 to 300,
  • the Fanuc Position Registers 100 to 105,
  • the Fanuc IO Flags 100 to 115 and
  • the Fanuc communication servers 3 and 4.

for the internal processing. The registers and flags should not be used for other purposes or the values might be overwritten by the drag&bot controller program. Before installing the drag&bot controller program ensure to enable the registers in the Fanuc controller settings.

  • First check if there is a need to extend the available values. After startup of the controller press the soft button and press the TYPE button at the bottom bar and select 1 Registers. Note the numbers of the selected and available registers at the top right (e.g. "1/200"). If the second number is below 300 the registers need to be extended. Repeat the process for the pose registers. Press the TYPE button at the bottom bar and select 2 Position Reg. Note the numbers of the selected and available position registers at the top right (e.g. "1/100"). If the second number is below 105 the position registers need to be extended.

  • In order to extend the registers and position registers restart the controller with a controlled start. Shut down the controller and restart it while pressing the F1 and F5 buttons. After restart the teach pendant will open a special configuration menu:

  • Press the soft button to enter the menu entries.

  • Select the entry 0 -- NEXT -- at the bottom with the soft buttons and change to the next page with the soft button.

  • Select the entry 1 PROGRAM SETUP at the top with the soft buttons and enter it with the soft button.

  • Select the entry 1 User Tasks and press the soft button to configure the entry. Configure a value of at least 4 user tasks. Apply the change by pressing the soft button.

  • Select the entry 2 Numeric Registers and press the soft button to configure the entry. Configure a value of at least 300 registers. Apply the change by pressing the soft button.

  • Select the entry 3 Position Registers and press the soft button to configure the entry. Configure a value of at least 105 registers. Apply the change by pressing the soft button.

  • After adjusting all parameters, apply the changes by restarting the controller.

Load the program files

  • Download and unzip the correct drag&bot Fanuc controller program files from here.
  • In the unziped download file you will find several directories, which indicate the Fanuc controller software version. You need the files in the directory corresponding to your controller software version.
  • To determine your controller version at the teach pendant press the soft button, enter the STATUS menu and there the Version ID section. The entry Software Edition No. describes the Fanuc controller software version, e.g. V8.20P/31.
  • Copy all files ending with .pc and .tp of the matching directory to a USB pendrive. Just the first part of the software version is relevant, e.g. V8-20.
  • Insert the USB pendrive at the teach pendants USB port.
  • Press the soft button and select the FILE menu and there the File section.
  • Set the source device to USB by pressing the UTIL button at the bottom bar and select Set Device. Select the option USB on TP (UT1:).
  • Select the 'all files' entry and confirm with the soft button.
  • Transfer all files copied on the USB pendrive to the controller by selecting the file with the cursor arrows and press the LOAD button at the bottom bar. Confirm each transfer with YES.
  • Check, whether all files were copied. Press the soft button. All program files should be listed. Note that there might be additional files than copied from the USB-Stick.

Setup the controller configuration

  • Starting the drag&bot setup program can be done in automatic mode or manual mode.
  • Start the R-30iB controller.
  • To start the drag&bot controller setup program press the soft button and select the DNB SETUP program. Press to choose the program.
  • In automatic mode: press the Green Start Button at the controller to start the controller program.
  • In manual mode: enable the teach pendant with the enable switch on the top left corner. Switch to continuous mode by pressing the soft button that the respective status indicator "Step" is green. Press the soft button with the soft button to start the configuration.
  • At the teach pendant you can watch outprints of the setup program when switching to the user view. To change there press the soft button and select the USER menu.
  • Restart the controller.

Setup for drag&bot Studio

  1. Please select Fanuc R30iB Robot from the dropdown menu in the drag&bot Component Manger.
  2. Configure the parameter IP for your setup. It has to match with the IP found in the section Find controller IP.
  3. Configure your Robot Model for visualization. If your model is not listed, you can use the "-" entry to work without visualized robot model.
  4. Eventually adjust the digital inputs and outputs. For this see the section Setup Digital I/Os.

Setup Digital I/Os

To use Digital I/Os with drag&bot they need to be available in the robot controller and also need to be configured in the drag&bot Component Manager.

Check which Digital I/Os are available in the controller

  1. Press the soft button , enter the I/O menu and there the Digital section.
  2. A list of Digital Inputs or Outputs will appear. You can switch between Input and Output list with the button IN/OUT at the bottom bar.
  3. To see which Digital Inputs or Outputs are available change to the configuration with the button CONFIG at the bottom bar.
  4. Here you can see a list of ranges of inputs or outputs. Each entry defines a range from where to where the range is defined (Column RANGE). Further it is configured where the hardware is placed in controller providing this I/Os (Columns RACK, SLOT, START). At last it is defined, whether the range is activated (ACTIV) or deactivated (UNASG) indicated in the column STAT. The additional hardware and software options defines, which ranges are activated or not.
  5. Change nothing in the configuration, just note the ranges for Inputs and Output, which are activated. Just activated I/Os can be used in drag&bot.

Example: In the figure below the Digital Outputs 1 to 20 and 25 to 144 are activated.

Configure the Digital I/Os in the Component Manager

  1. Based on the activated Digital I/Os in the Controller you can choose the Digital I/Os to be usable in drag&bot.
  2. For Digital Inputs and Outputs you can configure up to 128 I/Os in 20 ranges each. A range is defined by a start pin and an end pin. Also just one pin can be defined, if there is just one element in the range. E.g. the configuration "1-8,12,17-24" has three ranges with 17 pins.
  3. Setup your choosen configuration in the Component Manager. If the configuration was not accepted, the status changes to Stopped.

Example: In the figure below the Digital Outputs 1 to 20 and 25 to 64 are activated, based on the example from above. This are 60 pins in total in two ranges.

Additional Hints

Encoder Batteries

Always ensure that the robot encoder batteries do not completely discharge. Otherwise a re-mastering of the robot might be necessary. For more information see the R-30iB Controller Maintenance Manual and the R-30iB Controller Software Error Code Manual.