Codesys - Exor EX707 - OPC U A

vaibhav grover

Level-1
Beiträge
19
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
hello all,

I have a challenge at hand. To implement the Rubber and Plastic OPC UA Information model into a codesys project, upload this codesys project to Exor Panel, using this panel, display the variables to the Umati Dashboard (developed by VDMA for their cleints as a showcase platform).

the problem has been broken down into 4 steps:
1. implementing the model in codesys
2. Implementing the server in Exor Panel
3. connecting the panel to Umati
4. Testing

I'm stuck at Step 1.

approach being followed: download codessys SP18.2, download opc ua repository (standard XML file which is provided by OPC UA for Rubber and plastic machines), implement the information model, connect the required variables. upload the symbol file and step 1 is done.

available resources: At the moment I am using Codesys V3.5 SP18.2 and Jmobile 4.5.

The problem I am facing: I am unable to add OPC UA to communication manager. I already have a sample .xml file from VDMA which I want to use as an Information Model which I have downloaded in Tools -> OPC UA Information Model Repository but for some reason I am unable to add opc ua to communications manager.

this is how it looks like. Do you have any idea where the Problem could be? How would you implement the Information Model in this case?

1682692570421.png
 
Looks like support for Opc ua information models is missing for the device, or not present in the device description. Are there newer versions of the targets from Exor? If not, check with the manufacturer.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Thank you for your reply.

There are multiple versions to the target system (if i remember correctly, 2), you have a valid point.

But implementing information modell is not the only challenge. Communication of the panel with the umati platform is a channel too. Since we have no direct access to the linux os, i decided to use docker where i will add umati containers for communication. The docker however works with a certain build version which i am already playing on the display.

Therefore, it can be that upon updating the build version, the docker does not functionnanymore. Do we have other alternatives? Is this the only probable reason?
 
Hello Paro,

I am trying to experiment with your suggestion regarding the software versions. I am also trying to contact both Codesys and Exor for support (I will have some new information by evening).

In case if an information modell is not implementable with the given hardware and software configuration mismatch, what do we have as alternative solution to implement the information modell in the porjekt and make it available for the umati platform?

I know it is really general, but can we somehow implement Raspberry pi with codesys and the display? I cannot access the OS on the display but I have Docker downloaded in the display. maybe we can somehow setup communication between the display and the raspberry pi usin gthis docker?

I know that there is an XML file generated when we compile a codesys project which includes variable information. This XML file is also important for the Jmobile Project for the exor panel. I already have XML file of the sample information model i want to implement. Can I somehow using this XML file, implement information model on the exor panel?

I am sorry that the Ideas are so general, but I need your help to fill the blanks.

Thank you.
V.
 
Zuletzt bearbeitet:
Hello,

new update. I am now using codesys V3.5, SP17 and this link to implement information model : https://help.codesys.com/webapp/_cd...ation_models;product=codesys;version=3.5.17.0

i have successfully imported the information model to the codesys project and the device is set to Exor 600/700 Series. The problem now is, I cannot drag and drop the components of the information model from left to right, as said in the link at point 8. After this, I cannot generate IEC Types and nothing is visible in OPC object.

I also tried compiling and received the error shown in the photo.

1683279589745.png

Do you have any ideas?

Thanks,
V
 
Hello,

Thanks for your reply. I have made some progress, as in, i am not able to import the Information Model and make instances.
I have 3 main questions now:

1. I have trouble in the OPC UA data type to IEC data type mapping. Example, How can I declare variable of the data type 'localised text' in my codesys project?

2. I also have another error upon compilation which says the Array should be 0. I have no clue how to solve this.
1683554746466.png

3. the following photo is of the model in UaExpert and the values in Bold are the only values I want to make available to the Server.
1683555612964.png

when I try to add for example a process as an instance, the data type (ProcessValueType) is not visible as seen below. How can I add a process variable to the Project?

1683555880745.png

4. A general question: is there some documentation provided by codesys about attributes for variable access ex. {attribute 'opcua.mapping.member.accesslevel' := 'CurrentRead'}?

Please let me know.

Thank you for your help,

V.
 
Hello all,

Update:

the internal error in code egernation for opc ua di is now resolved. I had a 2023 Version of the Nodeset. I downloaded the 2022 version and deleted the 2023 version, compiled again and now it is done.

I however have a new problem now:

the following happens, when I try to upload the codesys project on the panel. There seems to be a version mismatch between SW and HW. to overcome this I have uploaded the project again, tried editing the BSP versions of the Exor Panel controller, but nothing worked.

1683643036758.png

Regarding the signature mismatch, I think these function blocks (OPCUAEVENTFIELDLISTCLEAR, OPCUAEVENTFIELDLISTINITIALISE etc.) are in the cmpOPCUAStack Implementation. The idea I have is to try to download a different version of the library and see if the problem still exists.

But I donot know, how to download different version of the library.

Please let me know how to do it.

Thank you.
V.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi,
I think it won't do any good to use another version. Unresolved references indicate that certain components are not present or activated in the CODESYS Runtime on the device.
The used version of this library is also defined in the device description of your panel, so the correct version should be automatically applied.
This is exactly how the device description defines which versions of information models can be used as a maximum. (Example screenshot 3)

I saw in the screenshots that the information model could come from here? https://github.com/umati/hackathon/tree/main/2nd_hackathon

I had a look into the UaModeler project and I think it was incorrectly designed for use in CODESYS.
The objects were created directly under "Objects". In CODESYS, however, it is my understanding that ObjectTypes are displayed and you can then map them to their own instances. So it should not be done like in screenshot 1, but e.g. like in screenshot 2 under "Types -> ObjectTypes".

Screenshot 1:
2023-05-10 09_27_47-Window.png

Screenshot 2:
2023-05-10 09_30_22-Window.png
Screenshot 3:

2023-05-10 09_33_57-Window.png
 
Hello Paro,

thank you for your detailed answer. Really helps.

I have ordered the device description data from the company, and hopefully, will soon be able to find out more about it.

If this does not function over Codesys, the next step would be to try making server and information model directly over Exor Panel.

Idea: I can import XML files in Exor. The idea is to import xml file from an information model to it.
Problem: Upon importing xml file of information model, 0 tags are imported, since there are no variables inside this information model, as it is a structure.
Questions:
1.
Am I allowed to modify 'standard information model' XML files?
2. if yes, How can I add variables to this XML file?

Next step:
if I am successfull at adding variables in the xml file, I would make the same variables in the codesys projekt, make them visible for exor panel by updating symbolkonfiguration and importing tags and hopefully see the desired application in action.

What are your thoughts on this?

Thanks again,
V.
 
Hi, you can export the device descriptions via Tools - Device repository. Unfortunately I can't say much about your other questions/plans.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hallo,

Change of plans. Trying to program a C6015-0010 using codesys. If that doesnt work then i switch to Raspi.

i Downloaded the rte sl for Cx on c6015 and trying to connect the device to codesys, only it is not being discovered by codesys. The codesys driver is in run mode. I did not download the cmp5000 codesys driver for Ethercat since i wont be using IOs.
tHe device is always in config mode. I will try to make a small code on twincat and upload to c6015 to bring it to run mode, maybe that would help (really dont know if it makes a difference as i can already ping the device. Maybe the ret sl is not for c6015).

Let me know what you think.

Thanks,
V
 
Hello,

I downloadd the required codesys RTE SL, connected my Beckhoff C6015 to the codesys projekt, made a codesys project for OPC UA Server with information model, uploaded it to the C6015, but when testing with a client (uaExpert), no variables are visible.

Please let me know what it could be.

Here is the codesys project and UaExpert project. All i can see in the UaExpert client are server status variables.

Sincerely,
V

Just a Revision/ summary of the aim here:

- to apply opc ua server Information model on a controller (machine identification type, machine status type)
- make this controller visible to the umati dashboard (developed by VDMA), sing MQTT Broker

problem:
i tried information modelling on Exor 707 display controller using codesys but no success so far.
current idea:
to make Beckhoff C6015 as a server (information modelling and opc ua Server programming to be done using codesys) and using the Exor controller, I will write values to the server by making the Exor, a client.

current problem:
I downloadd the required codesys RTE SL, connected my Beckhoff C6015 to the codesys projekt, made a codesys project for OPC UA Server with information model, uploaded it to the C6015, but when testing with a client (uaExpert), no variables are visible.

please let me know what you think.

Sincerely,
V.
 

Anhänge

Zurück
Oben