PCSDK - Writing a configuration value using RobotStudio jobs to pass in IP Address
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?
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?
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) { // } } } }
Tagged:
0
Comments
-
Hello,I think you have forgotten to login to the controller.
controller.Logon(UserInfo.DefaultUser);<br>
BRMicky0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings