
Functions not working in installed module

in RobotStudio
I moved a function to an installed module so it can be accessed by all tasks, and it appears to work correctly, but it always returns a value of FALSE even when it should be TRUE.
Are there any known issues of an installed function behaving this way?
0
Comments
-
This should not be the case...
What Robotware version are you working on? RW5 or 4 (or older)
I use "Shared" setting in controller/automatic loading of Modules to achieve the access from all tasks...
regards
Christian0 -
I'm using the current release, 5.15.02.It is a module set to "shared" so that it is installed as a shared module, and any task CAN access it, but the function never returns true.0
-
Ok, what does the function do - may you upload the code?regards
Christian0 -
It's not an issue with the code itself. The function works if it's not installed.FUNC bool Function(bool inOK)VAR bool bOK;bOK := FALSE;IF inOK = TRUE THENbOK := TRUE;ELSEbOK := FALSE;ENDIFRETURN bOK;ENDFUNC0
-
I tried your code and it worked as expected... see attached pack&go including background task and T_Rob1 executing the function call and logging it to the operator output...
result:
Please check again, and maybe you need to do a P-Start to reload the correct module into the controller, in case you started with a different one...
And another topic: I only set "Shared" to YES, it's not allowed to set Installed to "YES" too - just in case....
regards
regards
Christian0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings