Skip to content

Commit

Permalink
Added BACnet NuGet and sample, added S7 OPC UA sample and updated NuG…
Browse files Browse the repository at this point in the history
…ets,
  • Loading branch information
barnstee committed Nov 25, 2024
1 parent e22b532 commit 6d07ad4
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 1 deletion.
77 changes: 77 additions & 0 deletions Samples/BACNet.tm.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{
"bacv": "https://example.org/bacnet",
"qudt": "http://qudt.org/vocab/quantitykind/",
"brick": "https://brickschema.org/schema/Brick#",
"elem": "http://w3id.org/elementary#"
},
"https://www.w3.org/2022/wot/discovery"
],
"id": "urn:plugfest-room-thermostat",
"@type": [
"brick:Thermostat",
"Thing"
],
"elem:hostsProgram": {
"id": "urn:temperature-controller",
"elem:hasInput": ":temperature"
},
"brick:isPartOf": {
"id": "urn:plugfest-room",
"@type": "brick:Room",
"rdfs:label": "plugfest-room"
},
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"properties": {
"temperature_setpoint": {
"type": [
"brick:Cooling_Zone_Air_Temperature_Setpoint",
"number"
],
"elem:influences": ":temperature",
"brick:hasQuantityKind": "brick:Temperature",
"readOnly": false,
"forms": [
{
"bacv:hasDataType": {
"@type": "bacv:Real"
},
"bacv:usesService": "ReadProperty",
"op": "readproperty",
"href": "bacnet://1005/1,85"
}
]
},
"temperature": {
"type": [
"brick:Zone_Air_Temperature_Sensor",
"number"
],
"brick:hasQuantityKind": "brick:Temperature",
"readOnly": true,
"forms": [
{
"bacv:hasDataType": {
"@type": "bacv:Real"
},
"bacv:usesService": "ReadProperty",
"op": "readproperty",
"href": "bacnet://5/0,85"
}
]
}
},
"security": "nosec_sc",
"title": "Thermostat in plugfest room",
"registration": {
"created": "2024-11-25T10:42:34.155016+00:00",
"modified": "2024-11-25T10:42:34.155016+00:00",
"retrieved": "2024-11-25T10:44:46.930439+00:00"
}
}
80 changes: 80 additions & 0 deletions Samples/s7.td.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"@context": [
"https://www.w3.org/2019/wot/td/v1",
{
"opc": "http://opcfoundation.org/UA/",
"iec61360": "https://webstore.iec.ch/publication/5381",
"eclass": "https://www.eclasscontent.com/owl/v11.1",
"@language": "en"
}
],
"id": "urn:siemens:demo:case:lamp",
"title": "Demo Lamp Case",
"@type": "eclass:IRDI_0173-1#01-ADP410#010",
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"security": "nosec_sc",
"base": "opc.tcp://192.168.120.237:4840/",
"properties": {
"lampOnOff": {
"title": "Set lamp status",
"description": "True=Lamp is on; False=Lamp is off",
"eclass:IRDI_0173-1#01-ADN292#009": {
"eclass:IRDI_0173-1#02-AAC314#002": "K"
},
"writeOnly": true,
"type": "boolean",
"@type": [
"opc:Boolean",
"iec61360:BooleanType"
],
"forms": [
{
"op": "writeproperty",
"href": "ns=3;s=\"LED\".\"State\"",
"contentType": "application/x.opcua-binary",
"opc:method": "WRITE"
}
]
},
"lampStatus": {
"title": "Provides lamp status",
"description": "True=Lamp is on; False=Lamp is off",
"readOnly": true,
"type": "boolean",
"@type": [
"opc:Boolean",
"iec61360:BooleanType"
],
"forms": [
{
"op": "readproperty",
"href": "ns=3;s=\"LED\".\"State\"",
"contentType": "application/x.opcua-binary",
"opc:method": "READ"
}
]
},
"beltOnOff": {
"title": "beltOnOff",
"observable": false,
"readOnly": false,
"description": "Start/stop belt",
"type": "boolean",
"opc:dataType": "Boolean",
"forms": [
{
"op": [
"writeproperty",
"readproperty"
],
"href": "ns=3;s=\"Conveyor\".\"BlockOnConveyor\"",
"contentType": "application/x.opcua-binary"
}
]
}
}
}
2 changes: 2 additions & 0 deletions UAEdgeTranslator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BACnet" Version="2.0.4" />
<PackageReference Include="libplctag" Version="1.5.2" />
<PackageReference Include="log4net" Version="3.0.3" />
<PackageReference Include="McProtocol" Version="1.2.5" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua" Version="1.5.374.126" />
Expand Down
2 changes: 1 addition & 1 deletion WoTThingModelGenerator/WoTThingModelGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aml.Engine" Version="4.0.1" />
<PackageReference Include="Aml.Engine" Version="4.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua" Version="1.5.374.126" />
</ItemGroup>
Expand Down

0 comments on commit 6d07ad4

Please sign in to comment.