# Using WriteCfgData to set Automatic Loading of Modules

**URL:** <https://tech-community.robotics.abb.com/t/using-writecfgdata-to-set-automatic-loading-of-modules/9730>\
**Category:** RobotStudio\
**Tags:** robotstudio, rapid, rapid-code, abb\
**Created:** [October 2, 2020, 9:49am UTC](https://tech-community.robotics.abb.com/t/using-writecfgdata-to-set-automatic-loading-of-modules/9730 "2020-10-02T09:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveMX3D](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@daveMX3D](https://tech-community.robotics.abb.com/u/daveMX3D)\
**Post date:** [October 2, 2020, 9:49am UTC](https://tech-community.robotics.abb.com/t/using-writecfgdata-to-set-automatic-loading-of-modules/9730/1 "2020-10-02T09:49:36Z")

</div>

Hello All,

Does anyone know if it is possible to use WriteCfgData to set the filepath for automatic loading of modules? This is with IRC5, Robotware 6.10.

I have many robots that use a different version of a “config.sys” file (config1.sys, config2.sys, configCustom.sys, etc) .

It’s easier to have all the config.sys files in a home folder, then load the file that is actually needed using the “Load” RAPID command. I’d simply also like to set the automatic loading of modules to match.

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 2, 2020, 12:03pm UTC](https://tech-community.robotics.abb.com/t/using-writecfgdata-to-set-automatic-loading-of-modules/9730/2 "2020-10-02T12:03:41Z")

</div>

Hi,

I think that if you read my blog article here:  
[https://www.robot-forum.com/blog/entry/3-a-program-that-can-write-a-program/](https://www.robot-forum.com/blog/entry/3-a-program-that-can-write-a-program/)

You will find examples of what you are asking. Not the same parameters, but very similar task.

---

<div class="post-metadata">

**Author:** ![daveMX3D](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@daveMX3D](https://tech-community.robotics.abb.com/u/daveMX3D)\
**Post date:** [October 7, 2020, 10:00am UTC](https://tech-community.robotics.abb.com/t/using-writecfgdata-to-set-automatic-loading-of-modules/9730/3 "2020-10-07T10:00:51Z")

</div>

Thank you lemster!
