How to write a rapid data by web services when robot controller in manual mode.
Tyler
✭
Hello,
I am trying to write a rapid data by using web services.
It works when the robot controller in auto mode.
but it can not work then the robot controller in manual mode. It needs to be granted. But I can not get the granted by web services.
What should I do?
I am trying to write a rapid data by using web services.
It works when the robot controller in auto mode.
but it can not work then the robot controller in manual mode. It needs to be granted. But I can not get the granted by web services.
What should I do?
Tagged:
0
Best Answer
-
Alright, a collegue found something.
Before requesting mastership, you have to invoke RMMP. Read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/users_rmmp_resource_operation_page.html
RMMP stands for Request Manual Mode Privileges.
So,
Step 1: Request RMMP while the controller is in Manual mode, read more in the link above:
Example call: curl (-d "privilege=modify" -X POST "http://localhost/users/rmmp"
Step 2: Grant RMMP via the FlexPendant (hurry, the popup disappears really fast).
Step 3: Request Mastership (all domains, or specific doman, for example RAPID), read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
Example call: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
This should be enough.Post edited by Maxim Riabichev on—Maxim RiabichevPC Software Support Engineer1
Answers
-
Hello there,
You need to request for mastership: http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
This is a safety feature.
—Maxim RiabichevPC Software Support Engineer0 -
Maxim Riabichev said:Hello there,
You need to request for mastership: http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
This is a safety feature.
But when the robot is on manual mode, I will receive the message like this:
"<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>rw</title><base href="http://localhost:80/" /></head><body><div class="status"><span class="code">-1073445862</span><span class="msg">rws_resource_mastership.cpp[165] ERROR: rws_component_mastership.cpp[54]: org_code: -2 new_code: 0xc004841a; code:-1073445862 icode:-1</span></div></body></html>
"
after I send the httppost of "http://localhost/rw/mastership?action=request".
Can you show me the example of how to get the mastership?
Thank you very much.0 -
Hello,
I'm looking into this and will get back as soon as I have new information / solution for you.—Maxim RiabichevPC Software Support Engineer0 -
Maxim Riabichev said:Alright, a collegue found something.
Before requesting mastership, you have to invoke RMMP. Read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/users_rmmp_resource_operation_page.html
Don't ask me what RMMP stands for.
So,
Step 1: Request RMMP while the controller is in Manual mode, read more in the link above:
Example call: curl (-d "privilege=modify" -X POST "http://localhost/users/rmmp"
Step 2: Grant RMMP via the FlexPendant (hurry, the popup disappears really fast).
Step 3: Request Mastership (all domains, or specific doman, for example RAPID), read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
Example call: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
This should be enough.
It works!
Thank you very much.1
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 783 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings