Skip to main content
4-Participant
April 6, 2023
Solved

How to config the tags to receive XML parameters in the OPC UA server?

  • April 6, 2023
  • 1 reply
  • 1100 views

the data to receive like:

<?xml version="1.0"?>
<MsiMessageContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<messageInstanceId>8edad249-6f54-48b1-0e1k-38999clf08a3</messageInstanceId>
<direction>MES_TO_SF</direction>
<systemId>55</systemId>
<messageType>MsiOrder</messageType>
<messageContext>502</messageContext>
<message>
<MsiOrderParameterMessage>
<messageInstanceId>878af3de-m6e4-447a-a363-cd62b5ccf0ed</messageInstanceId>
<direction>MES_TO_SF</direction>
<messageId>DOWNLOAD</messageId>
<supplierId>1</supplierId>
<creationTime>2023-02-21 09:21:05,115</creationTime>
<parameter>
<name>Line_2</name>
<dataType>String</dataType>
<value>11/2021</value>
<isQualifier>false</isQualifier>
<acquisitionTime>2023-02-21 09:20:10,668</acquisitionTime>
</parameter>
<parameter>
<name>Batch_Size</name>
<dataType>Long</dataType>
<value>100000</value>
<isQualifier>false</isQualifier>
<acquisitionTime>2023-02-21 09:20:10,668</acquisitionTime>
</parameter>
<parameter>
<name>Line_1</name>
<dataType>String</dataType>
<value>06/2020</value>
<isQualifier>false</isQualifier>
<acquisitionTime>2023-02-21 09:20:10,638</acquisitionTime>
</parameter>
<parameter>
<name>EquipmentId</name>
<dataType>String</dataType>
<value>11</value>
<isQualifier>true</isQualifier>
<acquisitionTime>2023-02-21 09:20:10,638</acquisitionTime>
</parameter>

</MsiOrderParameterMessage>
</message>
</MsiMessageContainer>

Best answer by MRohilla

Greetings!

You can use the XML Client Driver to pull in XML data into KEPServerEX then have an OPC UA Client read those tags. You can refer the below manual :

https://www.ptc.com/store/-/media/Kepware-Store/EN/2021/2021-opc-xml-da-client-manual-en.pdf


Regards,

Mohit 

1 reply

MRohilla12-AmethystAnswer
12-Amethyst
April 12, 2023

Greetings!

You can use the XML Client Driver to pull in XML data into KEPServerEX then have an OPC UA Client read those tags. You can refer the below manual :

https://www.ptc.com/store/-/media/Kepware-Store/EN/2021/2021-opc-xml-da-client-manual-en.pdf


Regards,

Mohit