How to get the RobotStudio Error Code from EventLogDomain in PC SDK?
I would like to get the Error code "50050" from Robotstudio and perform some operations in RAPID via PC SDK.
From the EventLogMessage class, I can access only limited information about the message.
The number and sequence number properties are not unique to process.
How can I get the error code ?
Thanks in advance.
Tagged:
0
Best Answer
-
Yes.In your case you will have:(eventLogMessage.Msg.Domain == 5) && (eventLogMessage.Msg.Number == 26)You have problem to compile it or to run it from RobApps?5
Answers
-
Hi, im nearly on the same problem. What informationen you get out with the EventLogMessage class?
0 -
Hello,I've used RobotStudio.API.Internal.EventLogMessageWith that, you can get .Msg.Domain and .Msg.Number.You can found an example here:
0 -
Hello @DenisFR,I have problem using the assembly that you shared. From the message number, I could see the last two digits map to the Error Code from Robotstudio.Please correct me if I am wrong,Hello peterj,Here is the information from the EventLogMessage for an error in SingularityI would like to have your inputs as well if this is correct.Thanks in advance.
0 -
Hello @DenisFRI did not have any problem in compiling my application.I just wanted to extract the error code and do some operations in my application based on the error code.I got the answer from you.Thanks a lot.0
-
Msg.Number is not the same as error code, Can anyone tell me how to get the error code such as "50050"
0 -
I got, the error code is error type * 10000 + number0
Categories
- All Categories
- 5.5K RobotStudio
- 392 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 307 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 779 RAPID Programming
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings