DCM config file - Siemens S7-1500 w/OPC UA server example

Purpose of this article is to show the DCM config file specific for Siemens OPC UA server, as Siemens require the Sample points naming string to contain "" around the name. Which requires escaped characters.



{
"CheckpointInterval": 600,
"Collectors": [
{
"CollectorDescription": "Testing with Siemens PLC w/OPC-UA Server",
"CollectorName": "Test2OPCUA",
"ConnectRetryMax": 240,
"ConnectRetryMin": 10,
"OPCUAAccess": {
"OPCUASecurityPolicy": "none",
"OPCUATimeStampPolicy": "dcm",
"OPCUAUserTokenType": "anonynmous"
},
"Protocol": "OPC-UA/TCP",
"SamplePoints": [
{
"OPCUAObject": {
"NodeIdNameSpaceIndex": 3,
"NodeIdString": "\"DB_MRUSim\".\"Out\"",
"NodeIdType": "string",
"OPCUASampleInterval": 1
},
"SampleDataType": "double",
"SampleDescription": "AHC curve",
"SampleName": "AHC",
"SamplesSaved": 10
},
{
"OPCUAObject": {
"NodeIdNameSpaceIndex": 3,
"NodeIdString": "\"Door_Switch_1\"",
"NodeIdType": "string",
"OPCUASampleInterval": 1
},
"SampleDataType": "bool",
"SampleDescription": "input",
"SampleName": "Door_Switch_1",
"SamplesSaved": 10
},
{
"OPCUAObject": {
"NodeIdNameSpaceIndex": 3,
"NodeIdString": "\"DB_Common\".\"LiveBit\"",
"NodeIdType": "string",
"OPCUASampleInterval": 1
},
"SampleDataType": "bool",
"SampleDescription": "Live bit",
"SampleName": "LiveBit",
"SamplesSaved": 10
},
{
"OPCUAObject": {
"NodeIdNameSpaceIndex": 3,
"NodeIdString": "\"DB_Common\".\"iMode\"",
"NodeIdType": "string",
"OPCUASampleInterval": 1
},
"SampleDataType": "int16",
"SampleDescription": "iMode",
"SampleName": "iMode",
"SamplesSaved": 10
}
]
}
],
"ConfigDescription": "Test configuration for collecting from Siemens PLC",
"ConfigName": "Test",
"DataServers": [
{
"ConnectRetryMax": 60,
"ConnectRetryMin": 2,
"DatasrvName": "DCC-pilot",
"DatasrvProtocol": "SCI/SPD",
"IOPin": true,
"SCISPDParams": {
"DevCertName": "dccdevcert",
"DevPkeyName": "dccprivkey",
"PushInterval": 5,
"RootCAName": "dccrootca",
"SCIServerAddr": "dcm-dcc.secomea.com",
"SPDPort": 443,
"Security": "TLS1.2"
}
}
]
}


Please note the NodeIdStrings.

The UAexpert tool showed the desired string as "DB_MRUSim"."Out" which in DCM config file must then be "\"DB_MRUSim\".\"Out\"" where the internal " are escaped.

Creation date: 11/12/2019 14:16 (skr@secomea.com)      Updated: 11/12/2019 14:16 ()