Hi,
this is the way it will work for the future yes,
but there are missing two jiras ( see no release date on this) to have it up and running that way.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for info.
I was confused with this new target setting and CDS-64761 (this issue looks like this feature already works).
By the way, it will be nice to see example in FAQ after support this feature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm trying to call a method from UaExpert with an OPC UA server in Codesys V3.5 SP17.
I don't have the option "Support calls to Functions, FB's, Methods and Programs" in my symbol configuration and I can't find the file to edit to make it visible in the example above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello @doffrell, you will need an OPC UA Information Model, which contains methods, with only the currently supported datatypes. Here is one with some integers and arrays.
You could edit the XML to make available your own methods.
I get an error message when trying to open the information model in that project:
A required model could not be found in the repository: https://codesys.com/UA/objecttest/, 2020-09-16 (codesys.com)
I can create a new information model in the project (though not in my other projects), but how do I edit it to include my method? Is there a PDF manual of how information models are handeld in Codesys?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is it possible to generate an .xml file with FBs and methods from Codesys? Or do I need a separate program to generate the .xml file? Or is there a otherway to use methods via opc ua from the own project?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I hope someone could help me. I installed the newest Codesys 3.5 SP 20 Patch 1.
When loading the demo files from @i-campbell I can upgrade them to the latest version and everthing works on the OPC-UA client side as expected (object "a" is visible, I can use the "ExampleMethod").
Now I
* remove the "Information Model",
* delete the "OPC_UA_Symbols Objects",
* Add "Information Model" again
* add "TestRootObjectType" again and "Generate IEC declarations"
* and search for mapped instances (to get instance "a" again)
Very good still working as expected.
Now I delete the OPC_UA_Symbols and add it again referring to the "objecttest" from 16.9.2020. Also I redo the steps from above.
The result is now, that I can't see the "a" object in the "Root/Objects" folder.
Why ist this and how can I make it running?
I think, it could may be a different version of the UA configuration file.
I tried to build my own model definition files and got the same problem (but I am really not an expert).
So I found the mistakes.
First I forget to deactivate "Use access rights defined in the user management".
And also I used in "UaModeler" a project name with whitespaces, which lead to a wrong namespace name.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I try to call method through OPC UA Server with UaExpert as OPC UA client.
I use CODESYS Control Win V3 (3.5.14.30).
1. I edit devdesc:
2. I create simple project with one FB and one method:
3. I add symbol configuration and set option Support calls...
4. I add my FB to symbol configuration and set "execute" permissions for FB and method.
5. I download and start project.
6. In UaExpert I see my FB (but don't see method) and command "Call" for FB not active.
So how I can call methods through OPC UA?
It would be great to see a simple example, maybe make sense to add it in FAQ:
https://faq.codesys.com/display/CDSFAQ/ ... plications m
Hi,
this is the way it will work for the future yes,
but there are missing two jiras ( see no release date on this) to have it up and running that way.
BR
Edwin
Thank you for info.
I was confused with this new target setting and CDS-64761 (this issue looks like this feature already works).
By the way, it will be nice to see example in FAQ after support this feature.
Hi
I'm trying to call a method from UaExpert with an OPC UA server in Codesys V3.5 SP17.
I don't have the option "Support calls to Functions, FB's, Methods and Programs" in my symbol configuration and I can't find the file to edit to make it visible in the example above.
Hello @doffrell, you will need an OPC UA Information Model, which contains methods, with only the currently supported datatypes. Here is one with some integers and arrays.
You could edit the XML to make available your own methods.
Last edit: i-campbell 2021-06-11
I get an error message when trying to open the information model in that project:
A required model could not be found in the repository: https://codesys.com/UA/objecttest/, 2020-09-16 (codesys.com)
I can create a new information model in the project (though not in my other projects), but how do I edit it to include my method? Is there a PDF manual of how information models are handeld in Codesys?
Hi doffrell, I seem to not be able to attach the information models to the archive... so I have added them to the previous post as InfoModels.zip
Thanks for the files
Hi,
Is it possible to generate an .xml file with FBs and methods from Codesys? Or do I need a separate program to generate the .xml file? Or is there a otherway to use methods via opc ua from the own project?
Hello,
I hope someone could help me. I installed the newest Codesys 3.5 SP 20 Patch 1.
When loading the demo files from @i-campbell I can upgrade them to the latest version and everthing works on the OPC-UA client side as expected (object "a" is visible, I can use the "ExampleMethod").
Now I
* remove the "Information Model",
* delete the "OPC_UA_Symbols Objects",
* Add "Information Model" again
* add "TestRootObjectType" again and "Generate IEC declarations"
* and search for mapped instances (to get instance "a" again)
Very good still working as expected.
Now I delete the OPC_UA_Symbols and add it again referring to the "objecttest" from 16.9.2020. Also I redo the steps from above.
The result is now, that I can't see the "a" object in the "Root/Objects" folder.
Why ist this and how can I make it running?
I think, it could may be a different version of the UA configuration file.
I tried to build my own model definition files and got the same problem (but I am really not an expert).
When someone has a actual model, which is also running in the actual Codesys I would be very grateful. Or even better, how to make the correct model in e.g. UA Modeler SW (I followed the description https://documentation.unified-automation.com/uamodeler/1.6.0/html/howprojnet_sec.html).
So I found the mistakes.
First I forget to deactivate "Use access rights defined in the user management".
And also I used in "UaModeler" a project name with whitespaces, which lead to a wrong namespace name.