OPC-UA
Re: OPC-UA
Hello Carla,
If your executable is working without errors,then you can start the server. For this again go the command line and use the following flags with the executable.
xxx.exe -embeddedServer=opc-ua -rt=1
This should work.
Thanks,
Maria
Re: OPC-UA
Hello Maria,
I finally could embed my Modelica model as an OPC-UA server from the OMShell using the simulate command with the simflags option -embeddedServer=opc-us -rt=1
But I couldn`t do it using the executable file generated by OMEdit.
Thanks a lot for your reply!!!
Carla.
Re: OPC-UA
Did you get an error? saying some .dll files couldn't be found?
I found that a few 15-20 .dll files also need to be present with the .exe and init xml files so run the executable and with or without the opc-ua server
How I got this setup working was like this:
1.Simulate the model from OMShell/OMEdit so as to generate the .exe and init xml file
2.Copy all the .dll files from <OM installation path>\bin folder into the %temp%\OpenModelica\OMEdit folder which contains all the model files (this is done so that if the model is changed and resimulated, the .exe is automatocally updated)
3.Now run the command in the command Prompt : %temp5\OpenModelica\OMEdit\xxx.exe -rt 1.- -embeddedServer opc-ua
4.Once it is running successfully you can delete all the .dll files form the folder and you get get a error saying some are in use and cannot be deleted. Skip all of them and you will only be left with the ones that are needed
Do tell me If you need more help and if you want to run the exe in the background without the CMD window. A batch file needs to be written in that case