Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The OPC UA connector does not read the folder tree created by the M251 PLC correctly. #1548

Closed
aramosf1966 opened this issue Oct 2, 2024 · 3 comments
Assignees

Comments

@aramosf1966
Copy link

I need to connect the Thingsboard platform to the Schneider M251 PLC using the OPC UA protocol that is supported by both the Client-Server. The OPCUA connector is already configured and in the connector mapping part it only reads the tree folders and does not read the variables and therefore there is no telemetry.
I don't realize where the error is. Could you help me??
Thank you....
Create "mapping": [
{
"deviceNodePattern": "Root\.Objects\.Device1",
"deviceNamePattern": "Device ${Root\.Objects\.Device1\.serialNumber}",
"attributes": [
{
"key": "CertificateNumber",
"path": "${ns=2;i=5}"
}
],
"timeseries": [
{
"key": "temperature °C",
"path": "${Root\.Objects\.Device1\.TemperatureAndHumiditySensor\.Temperature}"

@JavierNR
Copy link
Contributor

@aramosf1966 Probably #1555 will help you, as I have these PLC models connected.
Appears that you have malformed config JSON.

Check my screenshots on the issue.

@aramosf1966
Copy link
Author

Hello..I just saw your suggestion to find the error that I must have in the json of the UA connector to connect the Schneider M251 PLC to the Thinsboard Platform. I have not been able to solve it yet. I will try your suggestion next Monday. I will send you my json file of the connector and perhaps you can see where I have the error. Thank you very much for the help.

{
"server": {
"name": "OPC-UA Default Server",
"url": "opc.tcp://:4840/freeopcua/server/",
"timeoutInMillis": 5000,
"scanPeriodInMillis": 5000,
"disableSubscriptions": false,
"subCheckPeriodInMillis": 100,
"showMap": false,
"security": "none",
"identity": {
"type": "anonymous"
},
"mapping": [
{
"deviceNodePattern": "Root\.Objects\.M241-M251 data",
"deviceNamePattern": "PLC",
"timeseries": [
{
"key": "temperature",
"path": "${GVL_INP.iSondaEntradaHorno}"
}
]
}
]
},
"logLevel": "DEBUG",
"name": "Planta",
"enableRemoteLogging": true,
"id": "6b6beaa5-7178-4e89-b5fa-6829ae3012a1"

@aramosf1966
Copy link
Author

thanks so much!! all it's working now @JavierNR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants