RobotStudio event

expected behaviour when loading modules

hi,

I'm not following the behaviour of loading modules.
If on my screen in RBS -> offline tab, I have my module "generated" loaded I can call my procedure. However, when I load this module with the Load command and then I call the procedure, RBS cannot find the reference proc. 
That leads me to think the Load command is not doing anything, while not raising errors either.
The fact that UnLoad does raise errors, while Load does not hints that Load is not doing much if anything at all.

I'm loading a module from a pretty much arbitrary place on my hd. Is this perhaps the mistake I'm making, or is it required that the module is yet visible in the offline panel?
This behaviour is pretty confusing to me.

My goal is the following; I'm working on a RAPID generator, such that shapes are converted to MoveL | MoveC instructions. So its very useful to unload / load a module, such to be certain the most recent version is loaded. 

Thanks, 

jf

image

Comments

  • The following code works on my virtual controller.
    The srting data will need to have the correct path.

    Hope this helps

     

    CONST string Laptop_USB:="F:";<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    Load Laptop_USBFile:="Module1.mod";

    %"Routine1"%;

    UnLoad Laptop_USBFile:="Module1.mod"