RobotStudio event

Call module routines regardless of loaded program file (.PRG)

Hello,

I have 50+ .PRG files which are loaded and run for different part configurations. I wanted to add a common program call to a separate module, lets call it "NewModule" -  is there a way to load a module into memory without having it reside in the PRG file? So that if I load a different PRG it can call routines from NewModule without needing to load it into that PRG?  This would save me from making large edits to all PRG files - thanks!

Comments

  • System modules are used to (pre)define system specific data objects (tools, weld data, move data ..), interfaces (printer, logfile ..) etc.
    Normally, system modules are automatically loaded to the task buffer during system start.

    System modules are not affected when loading/deleting programs.

    Example:

    NewModule.sys


    MODULE NewModule(SYSMODULE)
        PROC NewProc()

        ENDPROC
    ENDMODULE


  • ah! Wonderful, I am looking to make a logfile thank you
    I did not know about the loading - we have some sys modules here that contain reduntant / duplicate tool information etc. but they didn't seem to be loaded because when I do load them I get tooldata errors because of multiple tool0 etc.  unless they're loaded into the task buffer and if you try to load them manually you get duplicates... hrm, I'll have to check that out

    in any case, thanks!