BusDiagram GitHub Download

Examples

#USB interface panel: group reads and writes

A USB interface at 1.1.255 connects a commissioning computer to line 1.1. The panel below the diagram sends GroupValueWrite or GroupValueRead to the selected group address.

<bus-diagram>
<script type="application/json">
{
  "formatVersion": 2,
  "title": "USB interface panel: write and read a group address",
  "description": "A USB interface (1.1.255) connects a commissioning computer to line 1.1. Write to 1/1/1 in the USB interface panel: the telegram crosses coupler 1.2.0 to reach the actuator. Read 1/4/1: the status object answers because its R flag is set. Read 1/1/1: no object on that sending address has the R flag, so no one answers.",
  "lines": [{ "address": "1.1", "name": "Panel" }, { "address": "1.2", "name": "Floor" }],
  "groupAddresses": [
    { "address": "1/1/1", "name": "Office lighting", "dpt": "1.001" },
    { "address": "1/4/1", "name": "Office lighting status", "dpt": "1.001" }
  ],
  "devices": [
    {
      "id": "usbInterface",
      "name": "USB interface",
      "address": "1.1.255",
      "kind": "interface",
      "behavior": "usbInterface/v1",
      "objects": []
    },
    {
      "id": "pushButton",
      "name": "Push-button",
      "address": "1.1.1",
      "kind": "pushButton",
      "behavior": "pushButton/v1",
      "objects": [
        {
          "id": "key1",
          "name": "Key 1 toggle",
          "ga": ["1/1/1", "1/4/1"],
          "dpt": "1.001",
          "port": "input",
          "flags": { "W": true, "T": true }
        }
      ],
      "buttons": [
        {
          "id": "key1",
          "label": "Key 1",
          "press": { "object": "key1", "value": "toggle" },
          "led": "key1"
        }
      ]
    },
    {
      "id": "switchActuator",
      "name": "Switching actuator",
      "address": "1.2.1",
      "kind": "switchActuator",
      "behavior": "switchActuator/v1",
      "objects": [
        {
          "id": "c1",
          "name": "Channel 1",
          "ga": "1/1/1",
          "dpt": "1.001",
          "port": "switch",
          "channel": "s1",
          "flags": { "W": true, "T": false }
        },
        {
          "id": "e1",
          "name": "Status 1",
          "ga": "1/4/1",
          "dpt": "1.001",
          "port": "status",
          "channel": "s1",
          "flags": { "W": false, "T": true }
        }
      ],
      "channels": [{ "id": "s1", "label": "Office", "equipment": { "type": "lamp" } }]
    }
  ],
  "options": { "speed": 1, "filterTables": false }
}
</script>
</bus-diagram>