# PCSDK - Writing a configuration value using RobotStudio jobs to pass in IP Address

**URL:** <https://tech-community.robotics.abb.com/t/pcsdk-writing-a-configuration-value-using-robotstudio-jobs-to-pass-in-ip-address/8687>\
**Category:** Developer Tools\
**Tags:** pc-sdk, robotstudio, abb\
**Created:** [February 5, 2019, 3:48pm UTC](https://tech-community.robotics.abb.com/t/pcsdk-writing-a-configuration-value-using-robotstudio-jobs-to-pass-in-ip-address/8687 "2019-02-05T15:48:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpencerXZ](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@SpencerXZ](https://tech-community.robotics.abb.com/u/SpencerXZ)\
**Post date:** [February 5, 2019, 3:48pm UTC](https://tech-community.robotics.abb.com/t/pcsdk-writing-a-configuration-value-using-robotstudio-jobs-to-pass-in-ip-address/8687/1 "2019-02-05T15:48:06Z")

</div>

Hello,

I’m trying to use the “Run external tool” option in RobotStudio jobs to run a application created by the SDK to write a cfg parameter to each controller. The code I have is not working and I don’t know why. I am new to this and I am trying to follow the examples given in the documentation but have been unsuccessful so far. Here’s what I have so far. Could someone help me out please?

```auto
using System;
using ABB.Robotics;
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.ConfigurationDomain;

namespace SimulateMenuDisabler
{
    class Disable
    {
        static string sysID = "A0DFFC2B-F6CE-48C4-AC91-D3A6F1F54799";
        static void Main(string[] args)
        {
            //sysID = "";
            try
            {
                Controller controller = new Controller(ControllerFactory.FormatControllerId(new Guid(sysID)));
                Mastership master;
                ConfigurationDatabase cfg = controller.Configuration;

                using (master = Mastership.Request(controller.Configuration))
                {
                    string[] path = { "SYS", "SYS_MISC", "SimulateMenu", "Value" };
                    cfg.Write("0", path);
                }
            }
            catch (System.InvalidOperationException ex)
            {
              
                //
            }

        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![Micky](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Micky](https://tech-community.robotics.abb.com/u/Micky)\
**Post date:** [February 7, 2019, 5:04pm UTC](https://tech-community.robotics.abb.com/t/pcsdk-writing-a-configuration-value-using-robotstudio-jobs-to-pass-in-ip-address/8687/2 "2019-02-07T17:04:18Z")

</div>

Hello,  
I think you have forgotten to login to the controller.

```auto
controller.Logon(UserInfo.DefaultUser);

```

BR  
Micky
