LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Kollmorgen AKD modbus or Telnet over ethernet TCP

I'm a beginner using LabWindows CVI. I have a Kollmorgen AKD driver that can communicate via Ethernet using either Telnet or Modbus protocol. To make sure the hardware works, I downloaded the Kollmorgen WorkBench Software onto my laptop and went through the QuickStart guide. I set my laptops address to a static id (192.168.0.100) and then set up the Kollmorgen driver to have a static id of (192.168.0.26) using the two rotary switches (S1 and S2). In this case, I chose 2 and 6. I connected my PC to the driver using the Workbench software and was able to successfully spin the motor ccw and cw. I also was able to move the motor to specific locations (90, -90, 180, etc) in relation to the set 0 position. The Kollmorgen software uses the Telnet protocol.

 

How would I go about connecting my PC to Kollmorgens AKD driver using Modbus/Telnet via Ethernet on LabWIndows CVI? Is there a modbus library or special functions?

I went to the Modbus website and did not find any examples...

 

Any help would be much appreciated.

Badra

0 Kudos
Message 1 of 2
(4,521 Views)

There are free LabVIEW Modbus libraries, but these are API's built for LabVIEW:

http://zone.ni.com/devzone/cda/epd/p/id/4756

https://decibel.ni.com/content/docs/DOC-30140

 

There actually is a push to implement Modbus protocol support in CVI, and you can add your thoughts to the discussion here:

http://forums.ni.com/t5/LabWindows-CVI-Idea-Exchange/Implement-Modbus-RTU-TCP-protocol-support/idi-p...

 

The Idea Exchange forum is used by R&D in order to help implement new features requested by customers in later releases. You can also try using a free C library that does Modbus protocol, since CVI utilizes C code. An example would be libmodbus:

http://libmodbus.org/documentation/

 

There is also this community example which implements Modbus RTU programming over RS232 in CVI:

https://decibel.ni.com/content/docs/DOC-15734

dK
0 Kudos
Message 2 of 2
(4,471 Views)