Omron NX1 OPC UA collector examples
- 07 Oct 2021
- 1 Minute to read
-
Contributors
-
Print
-
DarkLight
-
PDF
Omron NX1 OPC UA collector examples
- Updated on 07 Oct 2021
- 1 Minute to read
-
Contributors
-
Print
-
DarkLight
-
PDF
The purpose of this article is to show some examples for a OMRON PLC with OPC UA.
However this can also be seen as a basic OPC UA collector example.
Full DCM config example:
{
"ConfigDescription": "Example configuration for OPC UA",
"ConfigName": "OPC_UA_basic",
"CheckpointInterval": 600,
"Collectors": [
{
"CollectorName": "OmronOPCUA",
"CollectorDescription": "Setup using Omron NX1 with OPC-UA Server",
"Protocol": "OPC-UA/TCP",
"ConnectRetryMin": 2,
"ConnectRetryMax": 240,
"OPCUAAccess": {
"OPCUASecurityPolicy": "none",
"OPCUAUserTokenType": "anonynmous",
"OPCUATimeStampPolicy": "dcm"
},
"SamplePoints": [
{
"SampleName": "Temp1",
"SampleDescription": "B1 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog1",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Temp2",
"SampleDescription": "B2 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog2",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Press1",
"SampleDescription": "B3 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog3",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Press2",
"SampleDescription": "B4 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog4",
"OPCUASampleInterval": 1
}
}
]
}
],
"DataServers": [
{
"ConnectRetryMax": 60,
"ConnectRetryMin": 2,
"DatasrvName": "DCC",
"DatasrvProtocol": "SCI/SPD",
"IOPin": true,
"SCISPDParams": {
"DevCertName": "DCC Certificate",
"DevPkeyName": "DCC Private Key",
"PushInterval": 1,
"RootCAName": "DCC CA Certificate",
"SCIServerAddr": "dcm-dcc.secomea.com",
"SPDPort": 443,
"Security": "TLS1.2"
}
}
]
}
And the Collector part alone:
{
"CollectorName": "OmronOPCUA",
"CollectorDescription": "Setup using Omron NX1 with OPC-UA Server",
"Protocol": "OPC-UA/TCP",
"ConnectRetryMin": 2,
"ConnectRetryMax": 240,
"OPCUAAccess": {
"OPCUASecurityPolicy": "none",
"OPCUAUserTokenType": "anonynmous",
"OPCUATimeStampPolicy": "dcm"
},
"SamplePoints": [
{
"SampleName": "Temp1",
"SampleDescription": "B1 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog1",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Temp2",
"SampleDescription": "B2 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog2",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Press1",
"SampleDescription": "B3 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog3",
"OPCUASampleInterval": 1
}
},
{
"SampleName": "Press2",
"SampleDescription": "B4 Potmeter",
"SamplesSaved": 10,
"SampleDataType": "int16",
"OPCUAObject": {
"NodeIdNameSpaceIndex": 4,
"NodeIdType": "string",
"NodeIdString": "Analog4",
"OPCUASampleInterval": 1
}
}
]
}
Was this article helpful?