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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings