Use
Modbus
Communications

A
Trusted®
controller supports
Modbus®
communications and acts as a
Modbus
master or
Modbus
slave. A
Modbus
master can have
Modbus
master slaves. The
Trusted
controller uses either Ethernet or serial ports for
Modbus
communications.
Configure
Modbus
communications in the
T8151 Communications Interface
. For more information on configuring
Modbus
communications, refer to the Product Description PD-T8151B,
Trusted
Communication Interface.
TIP: Before using
Modbus
communications, specify the
Modbus
address format (Hexadecimal or Decimal) in the CAM
Trusted
settings from the
Tools
>
Options
menu. The
System Configuration Tool
reads
Modbus
addresses for variables in Decimal format.
mdb_t8151b
When configuring
Modbus
communications, define these properties:
Property
Description
TCP/IP
The Ethernet ports are listed as
TCP/IP 0
and
TCP/IP 1
but are described on the front panel as Ethernet 1 and 2. Each port has an IP address and a subnet mask. The subnet mask defines the network address portion of the whole IP address. Devices on one network address cannot communicate with devices on other networks without a gateway.
Set the Ethernet port IP addresses for both ports on a communication interface to separate networks. For example, the IP addresses covered by the subnet mask should be different. If port 1 and 2 are on the same network, only one port can communicate.
Examples
  • Subnet Mask
    = 255.255.255.0 in decimal
    This equals 11111111.11111111.11111111.00000000 in binary. The 1’s in the subnet mask indicate the location of the network address portion, for example, any number in the first three places.
    This allocates all of the first three numbers in the IP address to the network address. Therefore, IP addresses 1.2.3.123 and 1.2.3.231 are on the same network, but 1.2.4.123 is on network 1.2.4.x.
  • Subnet Mask
    = 255.255.128.0 in decimal
    This equals 11111111.11111111.10000000.00000000 in binary.
    This allocates the first two numbers in the IP address and the highest bit of the next number to the network address. Therefore, 1.2.128.1 and 1.2.129.1 are on the same network but 1.2.127.1 is not.
Default Gateway
The address of a device that allows access to other networks. Since both ports must be on different networks, only one of the ports can be on the same network as the gateway, and only this port can use the gateway. The gateway allows the port to communicate with IP addresses outside its own network, for example, across a site local area network (LAN) or even onto the Internet, perhaps to allow remote diagnostics.
Example
A communications interface Ethernet port is connected to network 192.200.11.x.
  • Subnet Mask
    = 255.255.255.0 in decimal
  • Default Gateway
    = 192.200.11.1 in decimal
  • Communications interface Ethernet port = 192.200.11.202 in decimal
    The communications interface can communicate with other devices on the 192.200.11.x network. To communicate with a device on another network such as 192.200.81.145, set
    Default Gateway
    to match the network gateway address of 192.200.11.1. The remote device can transmit and receive packets from the communication interface.
Multicast
For information on configuring Peer-to-Peer multicasting, refer to the Product Description PD-T8151B,
Trusted
Communication Interface.
Serial Ports
Define the four serial ports for baud rate, data bits, parity, stop bits, and line type. The front panel serial port is port 0 and cannot be defined.
The normal pattern uses two bits after each data byte. This pattern is either odd/even parity and one stop bit or no parity and two stop bits.
  • RS232 is only available on serial ports 1 and 2. The setting for this mode is
    rs232
    .
  • rs485fd
    configures a four wire point-to-point connection.
  • rs485hdmux
    configures a two wire multi-dropped connection. rs485 performs the same function.
  • rs485fdmux
    configures a four wire multi-dropped connection.
Additional
Enter configuration commands not supported by the
System Configuration Tool
.
Prerequisites
  • Before configuring
    Modbus
    communications, create variables with
    Modbus
    addresses and (optional) extended attributes. Configure
    Modbus
    communications in the
    T8151 Communications Interface
    .
To configure
Modbus
communications
  1. From the
    VIEW
    menu, click
    System Configuration Tool
    .
  2. In the
    Trusted
    System Configuration Tool
    window, right-click an empty slot and select
    T8151: Communications Interface
    .
    The slot displays a communications interface.
  3. Click the communications interface in the slot.
    The
    T8151
    Trusted
    Communications Interface Module Parameters
    window
    appears.
  4. Define the properties for the
    Modbus
    communications:
    • TCP/IP Ethernet ports
    • Default gateway
    • Multicast for enhanced peer-to-peer
    • Serial ports
  5. Configure
    Modbus
    master and slave protocols for use in the communication services for controllers.
  6. Define additional configuration commands not supported by the
    System Configuration Tool
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal