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.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus over Ethernet/TCP

Hi there. Thanks for the useful client/master software. Does anybody have a working example for a server/slave project?

0 Kudos
Message 21 of 33
(2,479 Views)

i have used this as Server http://www.plcsimulator.org/Home

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 22 of 33
(2,474 Views)

Thanks but I need a sample project for CVI to implent it into my applications.

0 Kudos
Message 23 of 33
(2,474 Views)

Un grand merci - Many Thanks - Toda Raba

0 Kudos
Message 24 of 33
(1,931 Views)

Why can't my modbus communication be realized?When connecting, it appears that the server has closed the connection

0 Kudos
Message 25 of 33
(1,690 Views)

can you give more information? are you trying to connect to a device or to a simulator?

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 26 of 33
(1,684 Views)

I'm trying to connect to a device,which have two slave.(slave ID 5 and 10)But when I looked at the source file client.c, I didn't find the Settings for the slave ID. Can you help me?

 

Thanks.

0 Kudos
Message 27 of 33
(1,679 Views)

try to change in the rlmodbusclient.c file the unit identifier from 255 to 5 or 10

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 28 of 33
(1,673 Views)
Do you mean to change the define unit value in the picture I uploaded?I've tried, but I still haven't succeeded. Thanks。
0 Kudos
Message 29 of 33
(1,670 Views)

no, this is the octect dimension. you have to change at line 82

 

	// Unit identifer (TCP/IP = 255)
	buffer[6] = 255;
Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
Message 30 of 33
(1,666 Views)