ARSim via loader.exe and FileIO

Hi,

currently I am facing a problem with the ARSim started with the loader.exe.

After Startup I read out information from a file with the B&R Lib FileIO

and publish it over an OPCUA server.

When starting the ARSim with AS6 this works just fine.

For trainings I want to create an “offline version” where i start the loader.exe with a small program,

but in this case, the information of the file, a simple string is not published.

All other signals are published so i guess the OPCUA server works.

I can not debug the ARSim started from the loader.exe so I do not know how to proceed.

Please help me :slight_smile:

Hi,

no concrete idea about the cause right now, but I want to mention that even if you start ArSim externally, you can connect via Automation Studio online and use the variable watch.

So I would propose to check first the FileIO function blocks status to see, if and which function block throws what error.

I could imagine that there’s some context with the USER_PATH, if you’re using it (it’s the default setting together with the USER file device).

When starting a Windows process out of a external program (I’m not sure how you do it in detail), the process also receives some kind of execution path information. If this is not as expected, maybe USER_PATH cannot be resolved/ does not point to the location needed.

Unfortunately I can’t check it right now, but an easy way to test if it goes into that direction could be using a own file device pointing to a existing path, for example c:\temp, put your textfile into that location, and try both variants of starting ArSim.

Best regards!

Hi,

i did not think of that. I thought it is not possible but it works just fine to connect ober the Online settings. Thanks!

I will report the cause of the different behaviors as soon as i find it.

Thank you for your help.

Philip

1 Like