RobotStudio event

How to access RobotStudio virtual controller in local PC

Hi

I have tried below curl commad, but don't get any feasible response.

Robotstudio is running simple simulating program in same PC.


curl –digest -u "Default User":robotics -d "lvalue=1" -X POST "http://locahost/rw/iosystem/signals/Virtual/DUNIT/sig1?action=set"

My PC:s IP address is 195.148.50.126

U:\>curl -digest -u "Default User":robotics -d "lvalue=1" -X POST "http://195.148.50.126/rw/iosystem/signals/Virtual/DUNIT/sig1?action=set"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>
</BODY></HTML>

How I can check that virtual controller is really running ?
Where I can see virtual controller IP number and PORT etc. ?

I'm trying to test REST-API interface in virtual controller in my PC before trying to read real robot, shoud that work in that way ?

Br Kari Naakka
kari.naakka@tuni.fi



Comments

  • How are you trying to access the robot? If you're using the ABB API in Visual Studio, you should be able to use the methods in it to confirm connection directly via IP without the need for the RESTful API. It's been a year or so since I worked with .NET and the ABB API, and I no longer have access to my source code, or else I'd post an example. Sorry.
  • What is the RobotWare version of the VC?
    Johannes Weiman
    Software Engineer
    RobotStudio Team, ABB Robotics
  • Hi Johannes Dolenchuk

    Thanks for helping.

    I'm trying use curl inquire to get some response from controller, our goal is to collect data from robot to own IoT system, so no need to use Visual Studio.
    My undestanding is that REST-API is easiest way to collect data from robot to some extra system, I'm first trying with virtual environment and later use real robot environment, shoud that be possible ?

    Robot studio version is 6.08, is that same as robot ware version ?

    Br Kari
  • Johannes Weiman
    edited November 2019
    Try removing network and device (Virtual/DUNIT) from the URL. I think the documentation is wrong.
    I.e. 
    /rw/iosystem/signals/sig1?action=set


    Johannes Weiman
    Software Engineer
    RobotStudio Team, ABB Robotics