|
|
Line 1: |
Line 1: |
| <center>
| | == Modbus Control commands for R6: == |
| <center>
| | |
| <center>
| |
| <center>
| |
| <center>
| |
| == '''Modbus Control commands for R6:''' == | |
| </center>
| |
|
| |
|
| This commands give you the possibility to control the relays on the R6 via a modbus command send as a hex-file in a tcp stack. | | This commands give you the possibility to control the relays on the R6 via a modbus command send as a hex-file in a tcp stack. |
|
| |
|
| It is easy to connect the R6 extension module to a Barix device with a RS485 interface. 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. | | It is easy to connect the R6 module to a Barix device with a RS485 connector. 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. |
|
| |
|
| Additional you have to power up the R6 on Pin4 (+) and Pin5 (-) with an external power supply. | | Additional you have to power up the R6 on Pin4 (+) and Pin5 (-) with an external power supply. |
|
| |
|
| The serial settings for the RS485 interface (Serial 2) in the device must set to 19200 Bd, 8E1 (8 Databit, parity=even, 1 Stopbit), Handshake to RS485 direction control and local port to 502. | | The serial settings for the RS485 (Serial 2) in the device must set to 19200 Bd, 8E1 (8 Databit, parity=even, 1 Stopbit), Handshake to RS485 direction control and local port to 502. |
|
| |
|
| Now it is possible to send a hex-file, which includes the modbus command, via tcp to port 502 of the device. This can be done with the NetCat Application (nc ''ip-device''<nowiki> < </nowiki>''filename'' ). | | Now it is possible to send a hex-file, which includes the modbus command, via tcp to port 502 of the device. This can be done with the NetCat Application (nc ''ip-device''<nowiki> < </nowiki>''filename'' ). |
|
| |
|
| | | {| class="wikitable" |
| <TABLE WIDTH=601 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
| | |- |
| <TR VALIGN=TOP>
| | ! |
| <TD WIDTH=51>
| | ! |
| <P><BR>
| | ! Modbusaddress |
| </P>
| | ! Single Coil |
| </TD>
| | ! Address Hi |
| | | ! Address Lo |
| <TD WIDTH=52>
| | ! Value Hi |
| <P><BR>
| | ! Value Lo |
| </P>
| | ! CRC Lo |
| </TD>
| | ! CRC Hi |
| <TD WIDTH=52>
| | |- |
| <P> Modbus </P>
| | | Relay 1,Set ,00,05,00,00,FF,FF,CD,AB |
| <P> address </P>
| | |- |
| </TD>
| | | ,Reset,00,05,00,00,00,00,CC,1B |
| | | |- |
| <TD WIDTH=52>
| | | Relay 2,Set ,00,05,00,01,FF,FF,9C,6B |
| <P> Single </P>
| | |- |
| <P> Coil </P>
| | | ,Reset,00,05,00,01,00,00,9D,DB |
| </TD>
| | |- |
| <TD WIDTH=52>
| | | Relay 3,Set ,00,05,00,02,FF,FF,6C,6B |
| <P> Address </P>
| | |- |
| <P> Hi </P>
| | | ,Reset,00,05,00,02,00,00,6D,DB |
| | | |- |
| </TD>
| | | Relay 4,Set ,00,05,00,03,FF,FF,3D,AB |
| <TD WIDTH=52>
| | |- |
| <P> Address </P>
| | | ,Reset,00,05,00,03,00,00,3C,1B |
| <P> Lo </P>
| | |- |
| </TD>
| | | Relay 5,Set ,00,05,00,04,FF,FF,8C,6A |
| <TD WIDTH=52>
| | |- |
| <P> Value </P>
| | | ,Reset,00,05,00,04,00,00,8D,DA |
| | | |- |
| <P> Hi </P>
| | | Relay 6,Set ,00,05,00,05,FF,FF,DD,AA |
| </TD></center>
| | |- |
| <TD WIDTH=52>
| | | ,Reset,00,05,00,05,00,00,DC,1A |
| <P> Value </P>
| | |- |
| <P> Lo </P>
| | |} |
| </TD>
| |
| <TD WIDTH=52>
| |
| | |
| <P> CRC </P>
| |
| <P> Lo </P>
| |
| </TD>
| |
| <TD WIDTH=51>
| |
| <P> CRC </P>
| |
| <P> Hi </P>
| |
| </TD>
| |
| | |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 1 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| | |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>CD</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>AB</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>CC</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>1B</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 2 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="1" SDNUM="1031;0;@">
| |
| <P>01</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>9C</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>6B</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>01</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>9D</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>DB</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 3 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="2" SDNUM="1031;0;@">
| |
| <P>02</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>6C</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>6B</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>02</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>6D</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>DB</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 4 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="3" SDNUM="1031;0;@">
| |
| <P>03</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>3D</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>AB</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>03</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>3C</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>1B</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 5 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="4" SDNUM="1031;0;@">
| |
| <P>04</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>8C</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>6A</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>04</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>8D</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>DA</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD ROWSPAN=2 WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Relay 6 </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Set</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="5" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>FF</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>DD</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>AA</P>
| |
| | |
| </TD>
| |
| </TR>
| |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>Reset</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| | |
| <P>05</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>00</P>
| |
| | |
| </TD>
| |
| <TD WIDTH=52 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>DC</P>
| |
| </TD>
| |
| <TD WIDTH=51 SDVAL="0" SDNUM="1031;0;@">
| |
| <P>1A</P>
| |
| </TD>
| |
| </TR>
| |
| | |
| <TR VALIGN=TOP>
| |
| <TD WIDTH=51 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| | |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| | |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| | |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| <TD WIDTH=52 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| | |
| </TD>
| |
| <TD WIDTH=51 SDNUM="1031;0;@">
| |
| <P><BR>
| |
| </P>
| |
| </TD>
| |
| </TR>
| |
| </TABLE>
| |
|
| |
|
|
| |
|