Skip to content

Commit

Permalink
Merge pull request #358 from w3c/ege-modbus-small-fixes
Browse files Browse the repository at this point in the history
Small Modbus fixes
  • Loading branch information
egekorkan authored Apr 8, 2024
2 parents 894c570 + ad36646 commit 1e62fa1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
15 changes: 7 additions & 8 deletions bindings/protocols/modbus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ <h2>URL format</h2>
moment.
The following shows the typical structure of an URL of the Modbus TCP protocol:
<pre>
modbus+tcp://{address}:{port}/{unitID}/{address}?quantity={?quantity}
modbus+tcp://{deviceAddress}:{port}/{unitID}/{address}?quantity={?quantity}
</pre>

<p>
Where:
<ul>
<li><code>{address}</code> is the IP address of the Modbus device</li>
<li><code>{deviceAddress}</code> is the IP address of the Modbus device</li>
<li><code>{port}</code> is the port of the Modbus device</li>
<li><code>{unitID}</code> is the unit ID of the Modbus device. See <a href="#vocabulary">vocabulary</a></li>
<li><code>{address}</code> is the address of the register/coil referenced in this URL. See <a href="#vocabulary">vocabulary</a></li>
Expand Down Expand Up @@ -652,8 +652,7 @@ <h2>Examples</h2>
"op": [
"readproperty"
],
"modv:function": "readCoil",
"modv:address": 1
"modv:function": "readCoil"
}
</pre>
To describe forms with multiple operations types, the [[[#entity]]] keyword can be used to create
Expand All @@ -665,7 +664,7 @@ <h2>Examples</h2>
"readproperty",
"writeproperty"
],
"modv:entity": "Coil",
"modv:entity": "Coil"
}
</pre>
A TD processor will intepred [[[#example-read-coil-entity]]] configuration as the following:
Expand All @@ -675,14 +674,14 @@ <h2>Examples</h2>
"op": [
"readproperty",
],
"modv:function": "readCoil",
"modv:function": "readCoil"
},
{
"href": "modbus+tcp://127.0.0.1:60000/1/1",
"op": [
"writeproperty",
],
"modv:function": "writeCoil",
"modv:function": "writeCoil"
}]
</pre>
Reducing effectively the verbosity of a TD.
Expand Down Expand Up @@ -743,7 +742,7 @@ <h2>Examples</h2>
"observeproperty"
],
"modv:entity": "Coil",
"modv:pollingTime": 1000,
"modv:pollingTime": 1000
}
</pre>
Finally, [[[#full-td]]] shows a complete device described using Modbus ontology.
Expand Down
15 changes: 7 additions & 8 deletions bindings/protocols/modbus/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ <h2>URL format</h2>
moment.
The following shows the typical structure of an URL of the Modbus TCP protocol:
<pre>
modbus+tcp://{address}:{port}/{unitID}/{address}?quantity={?quantity}
modbus+tcp://{deviceAddress}:{port}/{unitID}/{address}?quantity={?quantity}
</pre>

<p>
Where:
<ul>
<li><code>{address}</code> is the IP address of the Modbus device</li>
<li><code>{deviceAddress}</code> is the IP address of the Modbus device</li>
<li><code>{port}</code> is the port of the Modbus device</li>
<li><code>{unitID}</code> is the unit ID of the Modbus device. See <a href="#vocabulary">vocabulary</a></li>
<li><code>{address}</code> is the address of the register/coil referenced in this URL. See <a href="#vocabulary">vocabulary</a></li>
Expand Down Expand Up @@ -379,8 +379,7 @@ <h2>Examples</h2>
"op": [
"readproperty"
],
"modv:function": "readCoil",
"modv:address": 1
"modv:function": "readCoil"
}
</pre>
To describe forms with multiple operations types, the [[[#entity]]] keyword can be used to create
Expand All @@ -392,7 +391,7 @@ <h2>Examples</h2>
"readproperty",
"writeproperty"
],
"modv:entity": "Coil",
"modv:entity": "Coil"
}
</pre>
A TD processor will intepred [[[#example-read-coil-entity]]] configuration as the following:
Expand All @@ -402,14 +401,14 @@ <h2>Examples</h2>
"op": [
"readproperty",
],
"modv:function": "readCoil",
"modv:function": "readCoil"
},
{
"href": "modbus+tcp://127.0.0.1:60000/1/1",
"op": [
"writeproperty",
],
"modv:function": "writeCoil",
"modv:function": "writeCoil"
}]
</pre>
Reducing effectively the verbosity of a TD.
Expand Down Expand Up @@ -470,7 +469,7 @@ <h2>Examples</h2>
"observeproperty"
],
"modv:entity": "Coil",
"modv:pollingTime": 1000,
"modv:pollingTime": 1000
}
</pre>
Finally, [[[#full-td]]] shows a complete device described using Modbus ontology.
Expand Down

0 comments on commit 1e62fa1

Please sign in to comment.