|
Re: OPC UA connection issue [message #1810332 is a reply to message #1810329] |
Thu, 08 August 2019 09:50 |
|
When you want to run to 4diac FORTEs on the same docker container or same machine with OPC UA you need to ensure that both 4diac FORTE have configured two different TCP ports for their OPC UA servers. If you are using the 1.10.x versions then there is a CMake option. In the development branch you can enable a commandline parameter and use the command line paramter for setting it.
|
|
|
|
Re: OPC UA connection issue [message #1810474 is a reply to message #1810450] |
Mon, 12 August 2019 14:24 |
|
I'm not a big docker expert but if understood you correctly then both docker containers with the two 4diac FORTEs would be independent. Therefore my suggestion would not solve your issue. It would only help if they are on the same machine. However if you need it there is the CMake option FORTE_COM_OPCUA_PORT which you can use to set the port that your 4diac FORTE instance should use for the OPC UA server. With 1.11.0 this will be also setable via a command line option.
|
|
|
|
|
|
|
|
|
Re: OPC UA connection issue [message #1810666 is a reply to message #1810663] |
Thu, 15 August 2019 14:45 |
Kirill Dorofeev Messages: 70 Registered: February 2016 |
Member |
|
|
Hi Mariusz ,
ERROR: T#38541728933294: [OPC UA LAYER]: Connection RD_1 of FB CLIENT_1 is not connected to anything.
It says, in your CLIENT_1 FB the RD_1 port should be connected to a suitable convert FB, so that forte knows the data type of the output data. However, as you just using it for writing a data value, you need CLIENT1_0 FB instead (with no SD_x ports)
ERROR: T#38541729030994: [OPC UA ACTION]: Remote SUBSCRIBE_1 action is only allowed using a Client FB, the amount of BrowseName,NodeId pairs should match the number of RDs, and must have no SDs
All remote operations use the Client FB for now. If you read a value, you need the CLIENT0_1 FB (no RDs, one SD port)
ERROR: T#38541729287794: [OPC UA LAYER]: Got invalid port connection on FB CLIENT_1_1 at port SD_1. It must be connected to another FB.
same. use CLIENT0_1 FB instead
Hope this helps.
|
|
|
|
Re: OPC UA connection issue [message #1810674 is a reply to message #1810668] |
Thu, 15 August 2019 18:24 |
|
These FBs are generic in 4diac FORTE. Therefore you can simple take one of the suiting FBs e.g., CLIENT_2_1, copy it, give it the right name (i.e., CLINET_1_0, and adjust the interface to your needs. You don't need to generate any Cpp code or do anything else. 4diac FORTE will based on the type name create the correct FB during FB instantiation.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06100 seconds