Operation via the Modbus TCP Protocol

<< Click to Display Table of Contents >>

Navigation:  Modbus Universal MasterOPC Server > Description of the Mod_RSSim Simulator > Use of the Simulator together with Modbus Universal MasterOPC >

Operation via the Modbus TCP Protocol

When operating via the Modbus TCP protocol, creation of virtual COM ports is not required, and all you need is opening a port (502 by default) in Windows firewall.  

Change a protocol to Modbus TCP/IP.

rabota_po_protokolu_modbus_tcp

The title change its appearance. Now the title displays a number of a TCP port used for exchange.

rabota_po_protokolu_modbus_tcp1

If the port 502 suits you, start to configure the OPC server. Otherwise, open the window of port configuration, and change the port.

rabota_po_protokolu_modbus_tcp2

Let's configure the OPC server.

Add the communication node. When configuring Modbus TCP, two parameters must be set: IP address and IP port. 127.0.0.1 is an IP address of the local computer (localhost), and therefore remain this address without changing in order to provide connection to the simulator. If you have not changed a port number in the simulator,  remain 502 here.  

rabota_po_protokolu_modbus_tcp3

Other configuration of the OPC server is made similar to the configuration for Modbus RTU: you should add a device (as a rule, a device address is 1 always in Modbus TCP), and then add tags with required addresses and registers.

rabota_po_protokolu_modbus_tcp4

Next, switch the server to the run-time mode.

rabota_po_protokolu_modbus_tcp5