here is what I have found:
Festo Modbus TCP Sample (C#) : Link_Festo_Search
Modbus on CMMP-AS- -M3/M0: Link_Festo_PDF
Manual of Festo Controller (see 4.3, page22...): Link_Festo_Manual
The C# application can be built as a .NET DLL and then beeing used in LabView 🙂
You have written how to connect over TCP:
But how to read over TCP? What should be here (red ellipse) ?
Thanks in advance and
Here is my solution using NI Modbus Library:
see attached zip file containing LV14 project with FGV
you will need NI Modbus Library:
I'm looking for a solution to communicate (1 Labview Application) over Modbus TCP Communication to
- 2 x Festo Drive CMMO
- 2 x Festo CMMP-AS-C2-M3
I found your solution, that seems to be quite interesting. Concerning your Labview solution :
- is your solution working for both Festo-Types (CMMO & CMMP)
- will your solution also work in one Labview programm with 4 Modbus-Communication simultaneously
It would be nice if you could give me an answer, thanks in advance
if both controllers support FHPP, then both should communicate with this LabView driver.
For simultanious communication you should perhaps little bit modify this driver to have some parallel loops (while loops) if it is not fast enough with the FGV solution. If you need support, tell me.
I came across this discussion which, I think, will help me.
I specify that I never use labview.
So, I have to drive 4 axis in TCP / IP modbus. For that, I have to send commands to my 4 drivers (CMMP-AS-C5-11A-P3-M0).
For now, I only take care of one driver.
I saw in the folder "FestoModbusTCP_FHPP" something that looks a lot like the festo documentation from page 120:
But, I do not know how to use it.
I can communicate with my driver using the modbus master provided by festo "Mobdus TCP Client". This means that my drive is well configured.
After entering the IP address, in CCON, I press B6 OPM1, B1 stop, B0 Enable. And in CPOS I press B0 HALT.
But in the VI you have joined, there is no B6 OPM1.
Can you enlighten me on the use of VI and subVI for my problem.
thanks in advance
I have inserted a drop-down-box In LabView:
Betriebsart = Operating Mode
Satzselektion = Record Selection
Direktmode = Direct Mode
The documentation says (p.124) :
So it is included. (you can say: it is encoded 🙂 )
Thank you very much for this very fast return.
I use the VI "FGV Festo Worker Test", I enter the IP address of my driver. Then in "KconfigDriveParams" for each byte, I put the bit as when using "Modbus TCP Client". That is to say:
byte 1 (CCON): B0 ENABLE, B1 STOP and in Betriebsart it is in direct mode (Direkauftrag)
octet 2 (CPOS): B0 HALT
byte 3 (CDIR): B1 and B2 in Positionsbetrieb
Byte 4 (Saturday): 20% of the velocity
byte 5,6,7,8: Direkt_Sollwert1 = 50 and Direkt_Sollwert2 = 50
When I compile, nothing of this product. Then clicking on "KONFIG" an error appears (ERROR 538179) as shown on the attached pictures.
Driver does not react at all.
What is the use of "KONFIG" as well as "INIT" and "close".
Sorry if that sounds like simple questions but I'm doing a job for which I'm not qualified at all.
Thank you very much in advance
I reinstall labview and the modbus library version 18.104.22.168. But there is always an error that appears, the communication modbus seems not to take place (error 56). Do you know where it can come from?
Thanks in advance