Uinumentry on omnicore
Tompanhuhu
✭✭
Sending an answer to a uinumentry event with PC SDK dosen't work if the answer has a decimal in it.
Sending 10 works, sending 10.5 dosen't work.
Program execution continues without changing the result.
I'm running RW 7.2 with PCSDK 2020.4 (Latest I could find)
Sending 10 works, sending 10.5 dosen't work.
Program execution continues without changing the result.
I'm running RW 7.2 with PCSDK 2020.4 (Latest I could find)
Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group
Tagged:
0
Comments
-
UINumEntry only works with integers0
-
Hello.
The UINumEntry should work with integers as well as floating numbers, depending on weather or not you use the /AsInteger property.
There is most likely a bug that creates your issues, but let me get back to you on that once I can confirm it with R&D—Nils OlofssonPC Software Support Engineer1 -
I stand corrected, thank you for clearing this up Nils0
-
NilsOlofsson said:Hello.
The UINumEntry should work with integers as well as floating numbers, depending on weather or not you use the /AsInteger property.
There is most likely a bug that creates your issues, but let me get back to you on that once I can confirm it with R&DSystemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0 -
Hello.
Did you create the floating number with a comma? It has to be a dot.
—Nils OlofssonPC Software Support Engineer0 -
NilsOlofsson said:Hello.
Did you create the floating number with a comma? It has to be a dot.
How am i suppose to write a floating number with a dot?
Also if we go back to the C# program i'm sending a double value to the sendAnswer method.
I don't specify if it's a comma or a dot. This should be done in the PCSDK library when communicating with the robotcontroller?Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0 -
Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0 -
Hello @Tompanhuhu.
After some more investigations we have confirmed that it is indeed the "," vs "." problems that creates this issue.
To avoid this you can set the culture settings for the current thread in c# like his:
System.Globalization.CultureInfo.CurrentCulture = new System.Globalization.CultureInfo("en-UK");
You could also set the regional settings in windows to English if you want to.
Please note that you will have to make sure that the input value uses the "." and not ",".
We have also reported the problems with the Operator Window but i as of now I have no updates regarding that.—Nils OlofssonPC Software Support Engineer0 -
It solved the issue thank you Nils.Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings