Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Apr 8, 2024
1 parent b2b6722 commit 894c570
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 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://{deviceAddress}:{port}/{unitID}/{address}?quantity={?quantity}
modbus+tcp://{address}:{port}/{unitID}/{address}?quantity={?quantity}
</pre>

<p>
Where:
<ul>
<li><code>{deviceAddress}</code> is the IP address of the Modbus device</li>
<li><code>{address}</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,7 +652,8 @@ <h2>Examples</h2>
"op": [
"readproperty"
],
"modv:function": "readCoil"
"modv:function": "readCoil",
"modv:address": 1
}
</pre>
To describe forms with multiple operations types, the [[[#entity]]] keyword can be used to create
Expand All @@ -664,7 +665,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 @@ -674,14 +675,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 @@ -742,7 +743,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: 8 additions & 7 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://{deviceAddress}:{port}/{unitID}/{address}?quantity={?quantity}
modbus+tcp://{address}:{port}/{unitID}/{address}?quantity={?quantity}
</pre>

<p>
Where:
<ul>
<li><code>{deviceAddress}</code> is the IP address of the Modbus device</li>
<li><code>{address}</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,7 +379,8 @@ <h2>Examples</h2>
"op": [
"readproperty"
],
"modv:function": "readCoil"
"modv:function": "readCoil",
"modv:address": 1
}
</pre>
To describe forms with multiple operations types, the [[[#entity]]] keyword can be used to create
Expand All @@ -391,7 +392,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 @@ -401,14 +402,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 @@ -469,7 +470,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 894c570

Please sign in to comment.