ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview: TCp Open Issue!

Hi Everyone,
 
    I'm working on a MODBUS routine for communication with one of our control modules. I'm using NI's Modbus library to initiate a connection, check the registers, etc then report the results back to a teststand seq for fruther analysis.
 
    Problem? I made a few minor adjustments to the library (just the main routine) because i only need to read the registers for now. However, when I conenct with the TCP Open Connection, nothing happens. Well, not completely true.. I sinffed the connection with Ethereal and I get the following errors...
 
**************************************************************
1)
SENDING:
TCP: Src Port 2061, Dst Port: 502, Seq: 13, Ack: 10 , Len:12
Checksum: 02x282d [incorrect, should be 0xfd6b]
 
2)
RECEIVING:
Modbus/TCP:
-Modbus: Function 4: Read input registers. Exception: Illegal data address
exception code: Illegal data address (2).
***************************************************************************
I understand the second one and believe it's related to the first but ....?
Does anyone have any ideas or suggestions? I'd go into the TCP OPEN.vi if I could, but it wont let me, so...?
 
Thanks Again,
 
BK
0 Kudos
Message 1 of 5
(3,198 Views)
Hi BK576,

Does this still give you problems if you don't make your modifications to the MODBUS libraries? What changes were made? Could you possibly submit an NI-Spy capture taken while seeing this error?

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 5
(3,167 Views)

Hi Matt,

    Thanks for the reply! I actually figured it out, and now it works great!

 

Thanks Again,

BK

0 Kudos
Message 3 of 5
(3,166 Views)
Great to hear it BK!

Let us know if there is any other way we can help!

-Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 4 of 5
(3,145 Views)

BK,

What was the problem and solution with your invalid checksum I am also seeing the same problem.

James

0 Kudos
Message 5 of 5
(3,103 Views)