Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Sun, 24 April 2022 02:55 Go to next message
xiaochun zhang is currently offline xiaochun zhangFriend
Messages: 4
Registered: April 2022
Junior Member
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 20:54 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

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] Mon, 25 April 2022 02:26 Go to previous messageGo to next message
xiaochun zhang is currently offline xiaochun zhangFriend
Messages: 4
Registered: April 2022
Junior Member
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 125 times)
  • Attachment: watch2.png
    (Size: 18.55KB, Downloaded 126 times)

[Updated on: Mon, 25 April 2022 03:19]

Report message to a moderator

Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851979 is a reply to message #1851978] Mon, 25 April 2022 06:34 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

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 06:47 Go to previous messageGo to next message
xiaochun zhang is currently offline xiaochun zhangFriend
Messages: 4
Registered: April 2022
Junior Member
Hi,Alois

i have set QI to true.

ZhangXiaochun
  • Attachment: watch1.png
    (Size: 205.92KB, Downloaded 112 times)
Re: ID fields of the SUBSCRIBE/PUBLISH function blocks [message #1851981 is a reply to message #1851980] Mon, 25 April 2022 06:55 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

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 08:43 Go to previous messageGo to next message
xiaochun zhang is currently offline xiaochun zhangFriend
Messages: 4
Registered: April 2022
Junior Member
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 10:01 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

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: Sun Apr 28 15:22:07 GMT 2024

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

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

Back to the top