evergood Posted February 1, 2007 Report Share Posted February 1, 2007 Hello I'm going to ask a slave to send me some data from it's holding registers. I'm using Labview 8.2 and have the modbus pack for 8.2. I'm making a master program and want to send the following message 02,03,00,00,00,3c,45,e8 (HEX form) from the master to the slave. The slave program is made in C++ and can not be changed. The problem is that I'm not sure where to insert the variables in the labview program. Program code in the image below. Thanks for helping me Kris Quote Link to comment
evergood Posted February 1, 2007 Author Report Share Posted February 1, 2007 Problem solved Quote Link to comment
Ton Plomp Posted February 1, 2007 Report Share Posted February 1, 2007 Problem solved What was the solution? Ton Quote Link to comment
evergood Posted February 1, 2007 Author Report Share Posted February 1, 2007 What was the solution?Ton I changed the serial parameters form RTU to ASCII, this gives the change to see the signal like HEX in the HyperTerminal i windows. Then tried several setting until I got the right string in HyperTreminal. What i got out was 02030000003CBF (wanted: 02030000003C45E8), you can se that its the same until ...3C. The last 4 digits is the error check and found out that this not is the same in RTU and ASCII. (The error check is calculated from the content in the string.) More Modbus info: Modbus Then tested the signal against the slave C++ program and got 60 numbers in return (now with serial parameters set back to RTU) Quote Link to comment
stefvg Posted January 28, 2009 Report Share Posted January 28, 2009 I have a similiar problem. But i have to make connection first to another device how can i implement this? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.