How to get the RobotStudio Error Code from EventLogDomain in PC SDK?
edited December 2018 in Developer Tools
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.
Hi, im nearly on the same problem. What informationen you get out with the EventLogMessage class?
Hello,I've used RobotStudio.API.Internal.EventLogMessageWith that, you can get .Msg.Domain and .Msg.Number.You can found an example here:
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.
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"
I got, the error code is error type * 10000 + number0
- 10.4K All Categories
- 5.3K RobotStudio
- 346 UpFeed
- 15 Tutorials
- 8 RobotApps
- 281 PowerPacs
- 404 RobotStudio S4
- 1.7K Developer Tools
- 238 ScreenMaker
- 2.6K Robot Controller
- 246 IRC5
- 36 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 690 RAPID Programming
- 14 Wizard Easy Programming
- 101 Collaborative Robots
- 3 Job listings