Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic MODBUS TCP/IP Read Holding Register using LabVIEW

Overview

SImple Vi to read a given value from a TCP/IP device using MODBUS protocol

 

Description

The Vi opens a TCP master and reads a specified holding register, returning the value of that register.

 

Steps to Implement or Execute Code

  1. Enter IP address of device
  2. Enter Starting address (no need to enter the code of 4 for the holding register.  Just enter the last digits of the address-1
  3. Enter amount (1)
  4. Enter 0 to achieve the first register value.

 

Requirements

Software

  1. LabVIEW 2014(or compatible)

Hardware

  1. TCP/IP Device

 

Additional Information or References

Modbus VI Final.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

 

Comments
Member WinterRain
Member

can you send the whole vi?