Difference between revisions of "RTU Master RTU Slave RTU Module"

From Proview Wiki
Jump to: navigation, search
(Created page with "<ul> <li> Master = com port paramters </li> <li> Slave = group modules </li> <li> Modules = Modbus ID (UnitID) and function code </li> </ul> <p>if you want to R/W to a...")
 
 
Line 1: Line 1:
<ul>
+
* Master  = com port paramters
<li> Master  = com port paramters&nbsp;</li>
+
* Slave  = group modules  
<li> Slave  = group modules </li>
+
* Modules = Modbus ID (UnitID) and function code
<li> Modules = Modbus ID (UnitID) and function code </li>
+
 
</ul>
+
if you want to R/W to a slave you need at least 2 modules per slave.<br />
<p>if you want to R/W to a slave you need at least 2 modules per slave.<br /> The address in Module is used as address offset in the standard Modbus table.<br /> Use Uint16 for channel representation.</p>
+
The address in Module is used as address offset in the standard Modbus table.<br />
<p>For manual control of R/W, disable Continous and use SendOp flag.</p>
+
Use Uint16 for channel representation.
<p>If you let the PLC control de R/W (Process=1 and specify PLC thread), then in each scan cycle the PLC will use the module properties to send a commands to all modules it controls. <br /> In the example case, the PLC will send one command to slave id = 1, command code = 03 (read holding registers), address = 0x0000 (default 40001).<br /> For Continous=1 R/W is automatic.</p>
+
 
<p>If you need manual control of read/write cyle, which is somewhat disirable for slow connections, you need to set Continous=0, and use the SendOp flag from PLC or application.</p>
+
For manual control of R/W, disable Continous and use SendOp flag.<br />
<p><img title="RTU" src="/wiki/images/b/b9/RTU_M_S_M.gif" alt="RTU" width="1200" height="626" /></p>
+
 
 +
If you let the PLC control de R/W (Process=1 and specify PLC thread), then in each scan cycle the PLC will use the module properties to send a commands to all modules it controls. <br />
 +
In the example case, the PLC will send one command to slave id = 1, command code = 03 (read holding registers), address = 0x0000 (default 40001).<br />
 +
For Continous=1 R/W is automatic.<br />
 +
 
 +
If you need manual control of read/write cyle, which is somewhat disirable for slow connections, you need to set Continous=0, and use the SendOp flag from PLC or application.
 +
 
 +
 
 +
[[File:RTU M S M.gif]]

Latest revision as of 05:10, 22 August 2013

  • Master = com port paramters
  • Slave = group modules
  • Modules = Modbus ID (UnitID) and function code

if you want to R/W to a slave you need at least 2 modules per slave.
The address in Module is used as address offset in the standard Modbus table.
Use Uint16 for channel representation.

For manual control of R/W, disable Continous and use SendOp flag.

If you let the PLC control de R/W (Process=1 and specify PLC thread), then in each scan cycle the PLC will use the module properties to send a commands to all modules it controls.
In the example case, the PLC will send one command to slave id = 1, command code = 03 (read holding registers), address = 0x0000 (default 40001).
For Continous=1 R/W is automatic.

If you need manual control of read/write cyle, which is somewhat disirable for slow connections, you need to set Continous=0, and use the SendOp flag from PLC or application.


RTU M S M.gif

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox