RobotStudio event

Is it possible to read RAPID data declared in installed module with RWS

I am trying to read a rapid data with RWS but I get a response 400 Bad Request.
It seems to work on data declared in loaded modules, but as soon as I try to read from an installed module I fail.

I have not found specific information in the Application manual about data symbols in an installed module.

Any help is greatly appreciated.

PS, For now, I am not interested in a subscription, just reading the data with a GET is all I need.
//Markus Näslund

Best Answers

  • Tompanhuhu
    Tompanhuhu ✭✭
    Answer ✓
    Is the module installed as shared?
    In that case it should be specified as #SYS, don’t forget to encode the # to avoid errors. 
    I think I wrote %23 instead of #. 
    Systemintegrator - Web / C# / Rapid / Robotstudio

    If I helped, please press Vote Up  :smile:
  • Tompanhuhu
    Tompanhuhu ✭✭
    Answer ✓
    Just to be clear.
    rwRAPIDResource.open("GET","/rw/rapid/symbol/data/RAPID/T_ROB1/#SYS/C_UIHeader",true);
    rwRAPIDResource.open("GET","/rw/rapid/symbol/data/RAPID/T_ROB1/%23SYS/C_UIHeader",true);
    Depending if you html encode the string before or after this point.
    Systemintegrator - Web / C# / Rapid / Robotstudio

    If I helped, please press Vote Up  :smile:

Answers

  • Yes it's possible I do so myself.
    Can you post what your request looks like?
    Systemintegrator - Web / C# / Rapid / Robotstudio

    If I helped, please press Vote Up  :smile:
  • Markus Näslund
    edited March 2022
    rwRAPIDResource.open("GET","/rw/rapid/symbol/data/RAPID/T_ROB1/UI_GlobalData/C_UIHeader",true);

    UI_GlobalData is an installed module in all tasks, I dont know if the symbol url is different for installed modules. It works when I replace the symbol url to something that is declared in a loaded module.

    If you have it working, can you post your request?

    Best regards
    Post edited by Markus Näslund on
    //Markus Näslund