LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus over Ethernet/TCP

Hi,

 

When I run your example, there is compilation error.

 

NON-FATAL RUN-TIME ERROR:   "client.c", line 59, col 24, thread id 0x000001A4:   Library function error (return value == -114 [0xffffff8e]). The format of the file is newer than this version of CVI

 

How do work around this?

 

I running in CVI 2012.

 

Anyone have Modbus TCP/IP example to refer?

0 Kudos
Message 11 of 35
(4,084 Views)

try to open the .uir file and move an object, save it and rebuild all the project

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 12 of 35
(4,072 Views)

If you don't have CVI 2013 or later, you can download and install the last demonstration version of CVI. Then you should be able to read sources or execute program.

 

(I failed to join an installation kit to install libraries)

 

0 Kudos
Message 13 of 35
(4,055 Views)

Hi,

 

Yes, I managed to execute the .uir. I successfully connected to my server IP address.

 

Can elaborate more how to send a request, e.g, read input register (first 20 addresses). 

Function at: 2

what about adr 1, adr 0, val 1, val 0?

and the ''send in MODBUS format''?

 

Can specify more on how to test with your example?

 

thanks.Cat Happy

0 Kudos
Message 14 of 35
(4,040 Views)

quest. : how to send a request?

See the attached files on Modbus protocole.

 

quest. : adr 1, adr 0, val 1, val 0?

adress (adr) and send value (val) are 16bit numbers. To be send, they are decomposed into two 8 bit number.

Then adr1 is the 8 higher bit of adr, and adr0 is the 8 lower bit.

0 Kudos
Message 15 of 35
(4,030 Views)

HI, 

 

  is there any example of cvi based Modbus program that communicate with a PLC  (for exemple Flexisoft) (with Read, write, connect)

Regards,

 

SASA

0 Kudos
Message 16 of 35
(3,978 Views)

hi,

  

  i had tested the example on an Moxa IOLOGIC automate and it workj perfectly.

 

  Now i'm working on another automate (using Modbus) and it does not work.

 

 have any other  person  tested the cvi code?

 

Please it's quite urgent!

 

 Regards,

 

SASA

 

0 Kudos
Message 17 of 35
(3,930 Views)

i have used it to read write a WAGO module and a Kollmorgen device and worked but i preferred to rewrite it to get more simply

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 18 of 35
(3,928 Views)

Did any other person had used it for "SICK" module

0 Kudos
Message 19 of 35
(3,922 Views)

Dr. Nourdine, your CviModbusTcpIp example works great, thank you!

 

0 Kudos
Message 20 of 35
(3,694 Views)