From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing modbus protocol in pic18 as slavae and labview as a master

Hello,

I want to make a Master Module for a modbus network in Labview and slav modules in pic18 microcontroller.I have written a code in PIC18 such that when it recieves 8 bytes it will transmit it back.I have made a VI file using modbus library such that it sends write single reister request to slave(i.e my pic18). Now normal response for the write single register is the echo of the querry, so my pic18 will send the same 8 bytes to the master as it is programmed to do so.still I am getting error 6101 when i run the .VI. i have checked my microcontroller code using hyperterminal, in which i send 8 bytes to microcontroller and the same 8 bytes recieved on the hyperterminal.

0 Kudos
Message 1 of 1
(2,216 Views)