|
|
Re: Subscribe_1 [message #1836530 is a reply to message #1836427] |
Wed, 06 January 2021 23:51 |
Asterios Badios Messages: 15 Registered: January 2021 |
Junior Member |
|
|
Hi Alois
I apprechiate the support, have gotten alot further, thank you
It is my first time playing with 4diac and IEC61499, I can see the benifits, I have 25 year experence in PLCs so hopfully once I get started I should not need to much of your time.
1/ How do I know its working ? Having probem decoding RD_1, from previous message how do I attached a word array ?
Like IEC1131 can I have global word arrays and attached it to the RD_1 pin ?
Screen shot 1, RTE and IDE running on my laptop, RTE working properly ? what is that error message ?
2/ On my Desktop PC, could not connect th server FB RD pin to the INT2INT ? both running ubuntu 20 10.
screen shot 2 also shows python program sending out a TCP/IP message and a example of a Fuji PLC recving a TCP/IP message in a word array,
Also the IDE that can't connect Pins.
Again, apprechiate the suport
Regards
Asterios
|
|
|
Re: Subscribe_1 [message #1836554 is a reply to message #1836530] |
Thu, 07 January 2021 11:54 |
|
Hi Asterios,
happy to hear that.
However I'm concerned that you are not able to do data connections? Are you running on 4diac IDE 1.13.0? Are your FBs mapped? If yes please unmap them first and remap them. We have a minor issue that slipped trough. Will be fixed in 1.13.1 coming out hopefully next week.
The messages in your 4diac FORTE console are perfectly fine. They are mostly debugg messages for 4diac FORTE developers.
In order to configure your Server FB to expect WORD arrays. You need an FB with a WORD array input. The data format for sending word arrays is explained in the link [1] from my last post.
I hope this helps.
Alois
|
|
|
|
|
|
|
Re: Subscribe_1 [message #1836646 is a reply to message #1836643] |
Mon, 11 January 2021 08:05 |
|
Hi,
no the recommended praxis is to have your build directories and your fbs outside of the org.eclipse.fordiac.forte directory:
your working dir
|- build
| |- first build
| |- second build
| - org.eclipse.fordiac.forte
| - ext modules
| |- first ext module
| | |- MyFB.h
| | |- MyFB.cpp
| | |- CMakeLists.txt
| |- second ext module
With that you better separate your code from our code. For that I recommend the described cmake process using cmake gui. Especially when latter you want to do cross compiling this setup and cmake gui has quite some advantages.
BR,
Alois
|
|
|
|
Re: Subscribe_1 [message #1836685 is a reply to message #1836678] |
Tue, 12 January 2021 07:41 |
|
Hi Asterios,
Thanks for the screenshot this really helped me to find the issue. The problem is that the external modules directory can not directly hold one module. The intention is to have there one or more module subdirectories. So you should create at your ext_mod a further directory with your fblib and put there your cpp, h, and cmakelist.txt. With that in CMake gui after running Configure again a new FORTE_MODULE_yyyy will apear (should be marked red and on the top. By activating this module your FB will be added to your 4diac FORTE.
I hope this helps,
Alois
PS: In 4diac IDE there is a Deployment console view (window->show view->others...->4diac IDE->Deployment Console) this will show you the deployment process and any errors during deployment. There you should have gotten the error message unsupported type. This would hint that your type is still not in your self built 4diac FORTE
|
|
|
|
Re: Subscribe_1 [message #1836706 is a reply to message #1836699] |
Tue, 12 January 2021 15:24 |
|
Hi Asterios,
great to hear that it works.
The language IEC 61499, which 4diac implements, does not have any global variables. So also 4diac does not have such.
I would handle RETENTIVE memory with dedicated SIFB function blocks.
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.04666 seconds