--- title: "Omron NX1 OPC UA collector examples" slug: "omron-nx1-opc-ua-collector-examples" tags: ["Data collection", "Data Collection Module", "Collector", "OPC UA", "JSON config", "OMRON"] updated: 2021-10-07T06:58:06Z published: 2021-10-07T06:58:06Z canonical: "kb.secomea.com/omron-nx1-opc-ua-collector-examples" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.secomea.com/llms.txt > Use this file to discover all available pages before exploring further. # Omron NX1 OPC UA collector examples 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: ```json { "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: ```json { "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 } } ] } ```