LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone have examples of sending Modbus commands in LW/CVI?

I am trying to communicate with a Watlow temperature controller through LW/CVI using Modbus protocol. Does anyone have any tips or sample code where they have had success with this before?
0 Kudos
Message 1 of 9
(5,298 Views)
In case your instrument is connected via RS232, here you can find an answer I posted to a similar question some time ago. The manual linked includes some examples of communication for C language that can be incorporated in
CVI with little adaptations.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 9
(5,291 Views)
Unfortunately, I am connecting via 485. Can you help with this?
0 Kudos
Message 3 of 9
(5,291 Views)
Kirk,

I am struggling somewhat to locate information on modbus in CVI but i did however find this thread...

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000093170000&ECategory=LabWindows%2FCVI

Does any of this information pertain to you?? If it does not let me know and I will continue researching!! Have a great day!

Allan S.
Applications Engineer
National Instruemnts
0 Kudos
Message 4 of 9
(5,291 Views)
RS485 should act the same as RS232: command syntax remains the same and only input/output of messages can be different.

I cannot help you with this since I have only little experience with 485 devices and always via a 232-to-485 converter connected to standard com ports.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 9
(5,291 Views)
I wrote a driver for WATLOW F4S controller (for LabWindowsCVI) bought WATCONNECT ( from WATLOW) used their Demo file
and wrote the driver function. Not to bad

Zorba
0 Kudos
Message 6 of 9
(5,200 Views)
Esentially RS232 and 485 are the same from a software perspective. The hardware is diffirent and the signal levels are diffirent and you can address diffirent devices (see RTUAddress in example below) on the same network hence the need for the modbus protocol.

Attached a full implementation of Modbus in CVI.
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
Message 7 of 9
(5,195 Views)

Apparently with the website design, this link is now broken.

 


@RobertoBozzoloRobertoBozzolo wrote:
In case your instrument is connected via RS232, here you can find an answer I posted to a similar question some time ago. 

Can we post an update?  Also, I can't find where these community projects are located anymore.  Mod, please help!

0 Kudos
Message 8 of 9
(3,307 Views)

For the life of me, I can't remember what I was pointing to in that message!

I can give you the link to my Modbus RTU programming over RS232 in CVI, the base on top of which I am developing all my instrument control programs.

 

As far as I know, examples published by forum members can be found in these repositories:

Example Programs

LabWindows/CVI User Group Documents

Community Documents

Example Program Drafts

(other pages may be available which I'm not aware of)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 9 of 9
(3,287 Views)