|
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847051 is a reply to message #1847042] |
Wed, 13 October 2021 07:17 |
|
Hi,
definitely using the latest 4diac FORTE version with OPC UA is a good idea. I know that Jose and Kirill fixed many things in our OPC UA implementation. However we changed the CMake configuration method for modules. It now has an option if it should be per default on. This reduces some effort. Furthermore Ernst created a special module method which will use the folder name as module name and add all cpp and h files in the directory automatically. The type exporter can automatically generate such a Cmake file. I hope this helps you.
Please also note that we are in the final phase of the 4diac 2.0.0 release bringing again some very interesting fixes for 4diac FORTE and full set of new features to 4diac IDE.
Cheers,
Alois
|
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847542 is a reply to message #1847522] |
Sun, 31 October 2021 21:08 |
Ricardo Rech Messages: 21 Registered: September 2021 |
Junior Member |
|
|
Hi Alois,
Thanks once again for the fast feedbacks. Looking forward for v 20.0.1. But while it is not released I'm testing some other versions of FORTE and with the 1.14.0 the OPC-UA ran and was also possible to compile some of my FBs. However, the FBs that use internal var at the ECC do not compile. See error message below (also available at the attached image).
Is there some way to correct it? I think that with this solved I'll have the needed environment to carry on with my research.
**********************************************************************
[ 50%] Building CXX object src/CMakeFiles/FORTE_LITE.dir/modules/myFBs/test.cpp.obj
In file included from C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.cpp:12:
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h: In constructor 'FORTE_test::FORTE_test(CStringDictionary::TStringId, CResource*)':
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h:73:75: error: 'scm_stInternalVars' was not declared in this scope
CBasicFB(pa_poSrcRes, &scm_stFBInterfaceSpec, pa_nInstanceNameId, &scm_stInternalVars, m_anFBConnData, m_anFBVarsData) {
^~~~~~~~~~~~~~~~~~
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h:73:75: note: suggested alternative:
getInternalVar'
CBasicFB(pa_poSrcRes, &scm_stFBInterfaceSpec, pa_nInstanceNameId, &scm_stInternalVars, m_anFBConnData, m_anFBVarsData) {
^~~~~~~~~~~~~~~~~~
getInternalVar
mingw32-make[2]: *** [src\CMakeFiles\FORTE_LITE.dir\build.make:6475: src/CMakeFiles/FORTE_LITE.dir/modules/myFBs/test.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2024: src/CMakeFiles/FORTE_LITE.dir/all] Error 2
mingw32-make: *** [Makefile:129: all] Error 2
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847551 is a reply to message #1847542] |
Mon, 01 November 2021 10:33 |
|
Hi Ricardo,
please don't use 4diac FORTE 1.14.0 any more. There are some important fixes in 4diac FORTE 2.0.0. I did miss in your messages above any issues you had with 4diac FORTE 2.0.0 and OPC UA. We didn't change anything on the OPC UA code and our test builds run against OPC UA so 4diac FORTE should work just fine with with 4diac FORTE 2.0.0.
Cheers,
Alois
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847588 is a reply to message #1847551] |
Tue, 02 November 2021 02:20 |
Ricardo Rech Messages: 21 Registered: September 2021 |
Junior Member |
|
|
Hi Alois,
I did not test OPC-UA with FORTE 2.0 yet, but I'm pretty sure it will work, as it seems to have the same files as the v 1.14.0 which I already tested and is running fine.
However, I don't manage to generate my own FBs on v2.0.0. See message from CMake below, and log attached. Because of that I switched to older versions of FORTE. Actually, version 1.9.1 is the only one that was possible to compile the FBs I need, as the 1.12.0 and 1.14.0 have an issue with FBs that use internal var at ECC. I also tried to compile open62541 into FORTE 1.9.1, but it does not work, I guess because this version is missing some implementations on OPC-UA.
In short, FORTE 1.12.0 and above seems to run OPC-UA but don't compile user FBs. Version 1.9.1 compile my FBs, but don't run OPC-UA.
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/modules/
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/com/
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/modules/myFBs/
CMake Error at src/modules/myFBs/CMakeLists.txt:2 (forte_add_module):
forte_add_module Macro invoked with incorrect arguments for macro named:
forte_add_module
Building executable
Configuring incomplete, errors occurred!
See also "C:/4diac/forte_2.0.0/bin/win32/CMakeFiles/CMakeOutput.log".
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847595 is a reply to message #1847588] |
Tue, 02 November 2021 07:24 |
|
Hi Ricardo,
we introduced an additional parameter into our cmake function forte_add_module that allows to enable it per default. In order to fix this problem you need to add an additional ON or OFF to your forte_add_module. I think I posted this in another forum post already. May need to update our documentation on that.
See for example the I2C-dev module: forte_add_module(I2C-Dev OFF "Interacting with GPIOs of Linux-based devices via I2C using i2c-dev")
Regarding your internal vars problem: can you share one of our FBs with us? you can also send it to me privately if you don't want to put it here on the forum. But having one of your FBs that make problems would really help us.
Cheers,
Alois
|
|
|
|
|
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847764 is a reply to message #1847758] |
Sat, 06 November 2021 20:38 |
|
Hi,
just to clarify: Deploy is not automatically starting a 4diac FORTE. This would be not the typical use case. The typical use case is that 4diac FORTE is running on the devices, and 4diac IDE would connect to these and deploy on them.
Regarding your monitoring issue. Can you give more info what is not working. Also for clarification when you enable monitoring 4diac IDE is not automatically showing any values. The reason for that is that you could have a highly distributed system with many devices and monitoring everything could put quite some load on the network. Therefore in 4diac IDE you have to select the FBs and pins you would like to watch and select add watch from the context or debug menu.
I'm happy to help. Sorry the 4diac is giving you such a hard time.
Cheers,
Alois
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847842 is a reply to message #1847837] |
Wed, 10 November 2021 07:32 |
|
Hi,
thx for letting us know. I'm not very happy with the current state of the simulated device manager. I'm not perfectly sure what the exact problem is here. However the Simulated device manager tries to stop all runtimes when you close it. I think for your experiments it makes more sense that you run your 4diac FORTEs without it directly from the console. If you just run forte.exe it will be bound to port 61499 if you want to specify a port you can do this with a parameter '-c: localhost:61500' without the single quotes.
I have some ideas to improve the simulated device manager. But they are currently not my top priority.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10608 seconds