04-15-2015 05:19 AM
Hello,
As the subject says, I'm trying to connect and 'talk' with a motor controller from festo (CMMO-ST-C5-1-DIOP).
I'm using the TCP protocol, and am supposed to send bytes to the controller.
While I'm sure the connection to the controller is established, I'm completely at a loss if I'm sending instructions in the right format.
This document show examples on how to issue commands to the controller and read responses, but I don't understand what format to use.
For example, the document states:
So the following bytes have to be sent to the CMMO via Ethernet (in Hex):
10 04 00 00 00 04 00 00 00 00 00 00 00 00 06 00 03 00
The connection is obtained, but however I format the above bytes, I get no response from the controller.
I have included the simple VI I'm using to send/receive the TCP instructions, and would greatly appreciate any suggestions on how to format my message. Any other ideas or suggestions are welcome as well - I need all the help I can get 😉
All I really want, is to get some kind of response from the controller - even an error would be great.
Thanks,
Tobias
05-11-2015 07:56 AM
Hi Tobias,
Welcome to the forums. I haven't had chance to look at your VI yet but I found a resource on how to control a Festro Controller with LabVIEW and Modbus TCP -
http://digital.ni.com/public.nsf/allkb/C3D8E30CF992B8CD86256FC8001CA598?OpenDocument
If you could read through and try out this implementation to see if you get a response from the controller that would be great.
06-05-2015 10:53 AM
were you ever successful gettig this to work???
06-06-2015 11:00 AM
Hi Lucas, and thanks for the tips.
I did try it out, and I *think* I managed to set up communication with the drive.
Still, figuring out which bits to send through was a pain in the back, and with a looming deadline we decided to go oldschool and use the physical IO pins.
I have attached what little code I made. It's VERY simple, but it's there for what it's worth.
06-06-2015 08:28 PM
06-08-2015 04:00 AM
Silly me. Was in a bit of hurry.
Here it all is, not much at all.
06-08-2015 07:18 AM
Version 14. any change of going back a version to 13
06-10-2015 03:15 AM
Hey,
I've saved it for you in LabVIEW 13. Hope it helps!
Best,
Bozhidar
11-09-2015 12:53 PM
The link does not work. Can you check it and post it again?
11-09-2015 02:51 PM
The link does not work. Can you check it and post it again?
You mean the link in the post above yours? It works fine for me.