<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.barix.com/index.php?action=history&amp;feed=atom&amp;title=Modbus</id>
	<title>Modbus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.barix.com/index.php?action=history&amp;feed=atom&amp;title=Modbus"/>
	<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=Modbus&amp;action=history"/>
	<updated>2026-04-25T20:44:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.barix.com/index.php?title=Modbus&amp;diff=4222&amp;oldid=prev</id>
		<title>Achims at 08:02, 10 July 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=Modbus&amp;diff=4222&amp;oldid=prev"/>
		<updated>2012-07-10T08:02:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:02, 10 July 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The serial settings for the RS485 interface (Serial 2) should set to a baudrate of 19200 Bd, a data bitrate of 8 bits, parity set to even, 1 stopbit, handshake set to RS485 direction control and the local port to 502.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The serial settings for the RS485 interface (Serial 2) should set to a baudrate of 19200 Bd, a data bitrate of 8 bits, parity set to even, 1 stopbit, handshake set to RS485 direction control and the local port to 502.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now it is possible to send a hex-file,  which includes the modbus command, via tcp to port 502 of the Barix device. This can be done with the NetCat Application (nc ''ip-barix'' ''port'' &amp;lt; ''filename'').&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now it is possible to send a hex-file,  which includes the modbus command, via tcp to port 502 of the Barix device. This can be done with the NetCat Application (nc &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-q 1 &lt;/ins&gt;''ip-barix'' ''port'' &amp;lt; ''filename'').&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Achims</name></author>
	</entry>
	<entry>
		<id>https://wiki.barix.com/index.php?title=Modbus&amp;diff=1197&amp;oldid=prev</id>
		<title>Achims: New page: == Modbus Control commands for R6 extension module: ==   This commands give you the possibility to control the relays on a R6 extension module via a modbus command send as a hex-file in a ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=Modbus&amp;diff=1197&amp;oldid=prev"/>
		<updated>2009-10-23T11:18:47Z</updated>

		<summary type="html">&lt;p&gt;New page: == Modbus Control commands for R6 extension module: ==   This commands give you the possibility to control the relays on a R6 extension module via a modbus command send as a hex-file in a ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Modbus Control commands for R6 extension module: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This commands give you the possibility to control the relays on a R6 extension module via a modbus command send as a hex-file in a tcp stack.&lt;br /&gt;
&lt;br /&gt;
It is easy to connect the R6 extension module to the RS485 interface of a Barix device. You have to wire Pin6 (A) and Pin9 (B) of the DB9 connector to Pin2 (A) and Pin3 (B) of the J1 connector on the R6 extension module.&lt;br /&gt;
&lt;br /&gt;
Additional you have to power up the R6 extension module on Pin4 (+) and Pin5 (-) on J1 connector with an external power supply.&lt;br /&gt;
&lt;br /&gt;
The serial settings for the RS485 interface (Serial 2) should set to a baudrate of 19200 Bd, a data bitrate of 8 bits, parity set to even, 1 stopbit, handshake set to RS485 direction control and the local port to 502.&lt;br /&gt;
&lt;br /&gt;
Now it is possible to send a hex-file,  which includes the modbus command, via tcp to port 502 of the Barix device. This can be done with the NetCat Application (nc ''ip-barix'' ''port'' &amp;lt; ''filename'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The table shows the modbus commands to control the relays on a R6 extension module:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! !! !! -Modbus Address- !! -Single Coil- !! -Address HI- !! -Address LO- !! -Values HI- !! -Values LO- !! -CRC LO- !! -CRC HI-&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 1-&lt;br /&gt;
| -set- || 00 || 05 || 00 || 00 || FF || FF || CD || AB&lt;br /&gt;
|-&lt;br /&gt;
| -reset- ||  00 ||  05 ||  00 ||  00 ||  00 ||  00 ||  CC ||  1B &lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 2-&lt;br /&gt;
| -set- ||  00 || 05 ||  00 ||  01 ||  FF ||  FF ||  9C ||  6B &lt;br /&gt;
|-&lt;br /&gt;
| -reset- ||  00 || 05 || 00 || 01 || 00 || 00 || 9D || DB&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 3-&lt;br /&gt;
| -set- || 00 || 05 || 00 || 02 || FF || FF || 6C || 6B&lt;br /&gt;
|-&lt;br /&gt;
| -reset- || 00 || 05 || 00 || 02 || 00 || 00 || 6D || DB&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 4-&lt;br /&gt;
| -set- || 00 || 05 || 00 || 03 || FF || FF || 3D || AB&lt;br /&gt;
|-&lt;br /&gt;
| -reset- || 00 || 05 || 00 || 03 || 00 || 00 || 3C || 1B&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 5-&lt;br /&gt;
| -set- || 00 || 05 || 00 || 04 || FF || FF || 8C || 6A&lt;br /&gt;
|-&lt;br /&gt;
| -reset- || 00 || 05 || 00 || 04 || 00 || 00 || 8D || DA&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot;| -Relay 6-&lt;br /&gt;
| -set- || 00 || 05 || 00 || 05 || FF || FF || DD || AA&lt;br /&gt;
|-&lt;br /&gt;
| -reset- || 00 || 05 || 00 || 05 || 00 || 00 || DC || 1A&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note: It is necessary to calculate a crc-check-sum for each command and add it to the command itself.&lt;br /&gt;
&lt;br /&gt;
Here you can find a online crc-calculator:&lt;br /&gt;
[http://www.lammertbies.nl/comm/info/crc-calculation.html http://www.lammertbies.nl/comm/info/crc-calculation.html]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ac&lt;/div&gt;</summary>
		<author><name>Achims</name></author>
	</entry>
</feed>