Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » ID fields of the SUBSCRIBE/PUBLISH function blocks
ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851966] Sat, 23 April 2022 22:55 Go to next message
Eclipse UserFriend
I generated the forte in windows step by step according to OPC UA with IEC 61499 Tutorial.
When I build the Flip-Flop Application, and want to set the ID of the SUBSCRIBE/PUBLISH function blocks to opc_ua[/Objects/1:FlipFlop], it says "Invalid WSTRING literal. A WSTRING literal is surrounded by double quotes"。
So I followed the prompt and added quotes to the ID. Then successfully Deploy the Application to FORTE, but UaExpert discovery findservers on opc.tcp://localhost:4840 failed. All the steps differ from the guide only in one thing, that is, the ID is quoted, could this be the reason?
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851977 is a reply to message #1851966] Sun, 24 April 2022 16:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

older 4diac IDE versions excepted any string as STRING or WSTRING. Unfortunately this is per IEC 61131-3 wrong and has some issues. Therefore we are now more stricter on literals and check them. However the problem you describe seems strange. Could you be so kind and let us know when you watch the FB if it could be initialized (value of output QO and STATUS) and what the watched value of the ID param is?

thx,
Alois
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851978 is a reply to message #1851977] Sun, 24 April 2022 22:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,Alois

the FB could be initialized,and the ID is right,but the value of STATUS is "TERMINATED".

the forte.exe has a erro message :
ERROR: T#18446743677760009633: [OPC UA ACTION]: Parameters /Objects/1:FlipFlop should have at least 2 parts, separated by a semicolon

From the 4diac deployment console, i see that the first &quot and ID are separated by a ";", while the second &quot and ID are not separated by a ";".
Quote:

<Connection Destination="SUBSCRIBE_1.ID" Source="&quot;opc_ua[/Objects/1:FlipFlop]&quot;"/>



Thanks & best regards
ZhangXiaochun
  • Attachment: deploy.png
    (Size: 29.26KB, Downloaded 162 times)
  • Attachment: watch2.png
    (Size: 18.55KB, Downloaded 177 times)

[Updated on: Sun, 24 April 2022 23:19] by Moderator

Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851979 is a reply to message #1851978] Mon, 25 April 2022 02:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

have you set QI to true?

Alois
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851980 is a reply to message #1851979] Mon, 25 April 2022 02:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,Alois

i have set QI to true.

ZhangXiaochun
  • Attachment: watch1.png
    (Size: 205.92KB, Downloaded 162 times)
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851981 is a reply to message #1851980] Mon, 25 April 2022 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Zhang,

thanks for the screenshot. The 4diac FORTE error messages pointed me in the right direction. It seems that you have a 4diac FORTE newer then 1.11. There we changed the opcua config strings. Please have a look at the new documentation :https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/opc_ua_version1.html on what is missing.

BR,
Alois
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851988 is a reply to message #1851981] Mon, 25 April 2022 04:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi,Alois

The example can now be run successfully according to the new guidelines.
Thank you very much!



BR,
ZhangXiaochun

Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851992 is a reply to message #1851988] Mon, 25 April 2022 06:01 Go to previous message
Eclipse UserFriend
Hi Zhang,

happy to hear that. I already started to remove the old documentation: https://bugs.eclipse.org/bugs/show_bug.cgi?id=579754

BR;
Alois
Previous Topic:questions about StructureText language
Next Topic:Question about event management in forte
Goto Forum:
  


Current Time: Mon Jun 16 03:48:26 EDT 2025

Powered by FUDForum. Page generated in 0.06579 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top