Megatron Posted October 31, 2008 Report Share Posted October 31, 2008 Hi, I have to interface Lab View with a CIF 50 Hilscher Profibus. I read through some of the documents provided by Hilscher, it talked about Sys Con, OPC servers etc etc. Through this profibus i have to control a valve box through RS-485 communication. The first task is basic read/write.Through lab View i have to read the number of bits through CIF 50 bus in turn to the Valve box. Can anyone tell me where should i begin? Quote Link to comment
TobyD Posted October 31, 2008 Report Share Posted October 31, 2008 QUOTE (Megatron @ Oct 30 2008, 02:57 AM) Hi,I have to interface Lab View with a CIF 50 Hilscher Profibus. I read through some of the documents provided by Hilscher, it talked about Sys Con, OPC servers etc etc. Through this profibus i have to control a valve box through RS-485 communication. The first task is basic read/write.Through lab View i have to read the number of bits through CIF 50 bus in turn to the Valve box. Can anyone tell me where should i begin? I've said it before and I'll say it again. Get yourself a http://wiki.lavag.org/LabVIEW_Books' rel='nofollow' target="_blank">good book (I highly recommend LabVIEW for Everyone) and take the NI training classes if your budget allows. You will come up to speed much faster and write better code because of it. -Toby Quote Link to comment
David Wisti Posted October 31, 2008 Report Share Posted October 31, 2008 If you need to do Profibus with Labview then check out: www.ni.com/profibus Or http://www.comsoft.de QUOTE (Megatron @ Oct 30 2008, 05:57 AM) Hi,I have to interface Lab View with a CIF 50 Hilscher Profibus. I read through some of the documents provided by Hilscher, it talked about Sys Con, OPC servers etc etc. Through this profibus i have to control a valve box through RS-485 communication. The first task is basic read/write.Through lab View i have to read the number of bits through CIF 50 bus in turn to the Valve box. Can anyone tell me where should i begin? Quote Link to comment
Mads Posted November 1, 2008 Report Share Posted November 1, 2008 You communicate with the Hilscher card by calling the Cif32dll.dll. The first step is to call the function DevOpenDriver (stdcall) and input the card device number (you can set up the profibus network in Sycon first). The next step is to call DevInitBoard(), the parameters there is the same device number and a text you can set to N/A. Reading and writing to the bus is done using the DevExchangeIO function: Data transfers are done in blocks of 32 bytes typically so you need to split and write or read and join multiple blocks. You can find details about the dll from Hilscher. 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.