01-26-2015 09:27 PM
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?
01-27-2015 12:53 AM
try to open the .uir file and move an object, save it and rebuild all the project
01-27-2015 02:02 AM
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)
01-27-2015 07:22 PM
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.
01-28-2015 12:35 AM
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.
02-17-2015 04:39 AM
HI,
is there any example of cvi based Modbus program that communicate with a PLC (for exemple Flexisoft) (with Read, write, connect)
Regards,
SASA
02-23-2015 06:48 AM
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
02-23-2015 06:50 AM
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
02-23-2015 10:36 AM
Did any other person had used it for "SICK" module
09-11-2015 03:53 PM - edited 09-11-2015 03:54 PM
Dr. Nourdine, your CviModbusTcpIp example works great, thank you!