Multi-Tasking - Loading modules to foreground
jay_c
✭
Hello,
I have a pretty basic question related to multi-tasking and loading modules during execution. Specifically, is it possible to load new program modules into the foreground task by using Load command, which has been called from the background task?
Currently the new program module is loaded during program execution, but the module is loaded into the background task instead of the foreground (motion) task. The foreground task triggers a TRAP in the background, which handles loading/unloading of large toolpath files from HOME. I am hoping that it is somehow possible to specify which Task a module will be loaded into. It appears that by default the modules will be loaded into the same Task which contains the "Load" command.
The TRAP routine in the background looks like this:
TRAP drip_feed_on
! normal unload + load
Unload Prev_Mod;
Load\Dynamic, diskhome\File:= Next_Mod \CheckRef;
ENDTRAP
And the TASK Configuration:
I also looked into the "Automatic Loading of modules" Configuration, but the background task is still receiving the loaded module.
We are running RobotWare 6.07 on an IRC5. Thanks in advance for any advice someone may have!
-Jay
0
Answers
-
The foreground task triggers a TRAP in the background, which handles loading/unloading of large toolpath files from HOME.Any harm in putting the background trap in the foreground task?
0 -
Hi Soup, thanks for your reply.
The trap in the foreground is how we have previously loaded modules until this point. The idea with a background task for loading toolpath-modules is that we can continue seamlessly executing the motion task without any pausing to load new toolpaths and unload the old (it is for 3D printing, so the continuous motion is really ideal to achieve). I know that StartLoad can be used to load modules while the task is executing, without stopping the robot motion, but the problem is remains that when UnLoading modules the robot needs to stop moving for at least a few seconds.0 -
Interesting -- so Load could be worked around with StartLoad, but Unload and EraseModule both cause a delay which screws the printing... I've got nothing... Sorry...
0 -
Hello,Do you really need to load module?Is an other task can fill a target (or else) array from a text file, while motion task execute?☑️2024 - RobotStudio® User Group0
-
Hi Jay_c,
Did you ever resolve this issue?
0
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)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings