« Close

Datasheets and User Guides

App Notes

Software & Driver

 

6.0 Ethernet [T-Series Datasheet]

Overview

Communication Protocol:  Modbus TCP

Connector Type: RJ-45 Socket, Cat 5

Compatible: 10/100Base-T

PoE (Power over Ethernet): Not built-in.  See PoE App Note.

Max Cable Length: 100 meters typical

Max Packet Size: 1040 bytes/packet (TCP), 64 bytes/packet (UDP)

The T-series devices each have a 10/100Base-T Ethernet connection. This connection only provides communication, so power must be provided through the USB connector. Refer to this WiFi and Ethernet tutorial to get started.

Ports

T-series devices will respond to connections or packets on following ports:

  • 502 (TCP) - Responds to Modbus TCP packets received over this port.
  • 702 (TCP) - Sends spontaneous data such as stream to devices connected to this port.
  • 52362 (UDP) - Responds to Modbus UDP packets received over this port. Usually used to search for T-series devices on a network.

If you need a wireless connection instead of Ethernet, you can buy a wireless bridge. Connect the T-series device to the bridge and the bridge will connect to the wireless network. Find more information in the Convert Ethernet to WiFi App Note.

Config (_DEFAULT) Registers

Use the following _DEFAULT registers to configure Ethernet:

Ethernet Config Registers
Name Start Address Type Access
ETHERNET_IP_DEFAULT 49150 UINT32 R/W
ETHERNET_SUBNET_DEFAULT 49152 UINT32 R/W
ETHERNET_GATEWAY_DEFAULT 49154 UINT32 R/W
ETHERNET_DNS_DEFAULT 49156 UINT32 R/W
ETHERNET_ALTDNS_DEFAULT 49158 UINT32 R/W
ETHERNET_DHCP_ENABLE_DEFAULT 49160 UINT16 R/W
ETHERNET_APPLY_SETTINGS 49190 UINT32 W
ETHERNET_IP_DEFAULT
- Address: 49150
The IP address of wired Ethernet after a power-cycle to the device.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
ETHERNET_SUBNET_DEFAULT
- Address: 49152
The subnet of wired Ethernet after a power-cycle to the device.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
ETHERNET_GATEWAY_DEFAULT
- Address: 49154
The gateway of wired Ethernet after a power-cycle to the device.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
ETHERNET_DNS_DEFAULT
- Address: 49156
The DNS of wired Ethernet after a power-cycle to the device.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
ETHERNET_ALTDNS_DEFAULT
- Address: 49158
The Alt DNS of wired Ethernet after a power-cycle to the device.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
ETHERNET_DHCP_ENABLE_DEFAULT
- Address: 49160
The Enabled/Disabled state of Ethernet DHCP after a power-cycle to the device.
  • Data type: UINT16  (type index = 0)
  • Readable and writable
ETHERNET_APPLY_SETTINGS
- Address: 49190
Writing 1 to this register power-cycles Ethernet. It tells the device to waits 1s before turning off Ethernet and then 500ms before turning it back on.
  • Data type: UINT32  (type index = 1)
  • Write-only
  • Minimum firmware version: 0.2000

These registers can also be read.  Configure the Ethernet network configurations in Kipling software.

These _DEFAULT registers are non-volatile.  Whatever value you write to a _DEFAULT register will be retained through a reboot or power-cycle.  New values written to these _DEFAULT registers are not applied until power-up or until a 1 is written to ETHERNET_APPLY_SETTINGS.

Status Registers

Use the following read-only registers to read the status of Ethernet:

Ethernet Status Registers
Name Start Address Type Access
ETHERNET_IP 49100 UINT32 R
ETHERNET_SUBNET 49102 UINT32 R
ETHERNET_GATEWAY 49104 UINT32 R
ETHERNET_DNS 49106 UINT32 R
ETHERNET_ALTDNS 49108 UINT32 R
ETHERNET_DHCP_ENABLE 49110 UINT16 R
ETHERNET_IP
- Address: 49100
Read the current IP address of wired Ethernet.
  • Data type: UINT32  (type index = 1)
  • Read-only
ETHERNET_SUBNET
- Address: 49102
Read the current subnet of wired Ethernet.
  • Data type: UINT32  (type index = 1)
  • Read-only
ETHERNET_GATEWAY
- Address: 49104
Read the current gateway of wired Ethernet.
  • Data type: UINT32  (type index = 1)
  • Read-only
ETHERNET_DNS
- Address: 49106
Read the current DNS of wired Ethernet.
  • Data type: UINT32  (type index = 1)
  • Read-only
ETHERNET_ALTDNS
- Address: 49108
Read the current Alt DNS of wired Ethernet.
  • Data type: UINT32  (type index = 1)
  • Read-only
ETHERNET_DHCP_ENABLE
- Address: 49110
Read the current Enabled/Disabled state of Ethernet DHCP.
  • Data type: UINT16  (type index = 0)
  • Read-only

Config (_DEFAULT) vs. Status Registers

Example: If you write ETHERNET_IP_DEFAULT="192.168.1.207" (you would actually write/read the 32-bit numeric equivalent—not an IP string), then that value will be retained through reboots and is the default IP address.  If DHCP is disabled, this will be the static IP of the device and what you get if you read ETHERNET_IP.  If DHCP is enabled, then a read of ETHERNET_IP will return the IP set by the DHCP server.

Power

The following registers configure Ethernet power:

Name Start Address Type Access
POWER_ETHERNET 48003 UINT16 R/W
POWER_ETHERNET_DEFAULT 48053 UINT16 R/W
POWER_ETHERNET
- Address: 48003
The current ON/OFF state of the Ethernet module.
  • Data type: UINT16  (type index = 0)
  • Readable and writable
  • Minimum firmware version: 0.0100
POWER_ETHERNET_DEFAULT
- Address: 48053
The ON/OFF state of the Ethernet module after a power-cycle to the device. Provided to optionally reduce power consumption.
  • Data type: UINT16  (type index = 0)
  • Readable and writable
  • Minimum firmware version: 0.0100

Some Examples

Read IP Example: To read the wired IP Address of a device, perform a Modbus read of address 49100.  The value will be returned as an unsigned 32-bit number, such as 3232235691.  Change this number to an IP address by converting each binary group to an octet, and adding decimal points as necessary.  The result in this case would be "192.168.0.171".

Change IP Example: To change the Ethernet IP Address of a device, perform a Modbus write to address 49150.  The value must be passed as an unsigned 32-bit number, such as 3232235691.  Change this IP address "192.168.0.171" by converting each octet to a binary group, and sticking them together.

Isolation

The Ethernet connection on any T-series device has 1500 volts of galvanic isolation.  All power supplies shipped by LabJack Corporation with T-series devices have at least 500 volts of isolation.

Note that if you power the T-series device from a USB host/hub, ground from the host/hub is typically connected to upstream USB ground, which often finds its way back to AC mains ground and thus there would be no isolation.

LEDs on the Ethernet jack

Both the green and orange LEDs on the Ethernet jack will illuminate on connection to an active Ethernet cable. The orange LED turns on when an active link is detected and blinks when packets are received/processed. The green LED illuminates when the connection is 100Mbps.

 

The orange LED is closest to the USB connector.