I have a Question in Twincat Communication. I am new to it Could someone please help me with this ?

Aravinth

Level-1
Beiträge
6
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello, Can you please help me in this case I have a task in my studies I am completely new in Twincat.
My task is CompA runs a TCP server using TwinCAT.
CompB runs a TCP Server using Python.
Both exchange 32-bit binary data over TCP connection.

How to send and receive data packets for every 100ms?
 
Let's assume use use the Function TF6310 (TC3) oder (TS6310).
There are function blocks in the associated library (e.g. https://infosys.beckhoff.com/index.php?content=../content/1031/tf6310_tc3_tcpip/index.html&id=).
For more details I recommend to dig into the documentation - and first figure out which communication end ist the client respectivly the server.

As for now I assume that you haven't an understanding of a TCP/IP communication (and/or PLC programming) as you didn't provide the key information necessary to give you a valuable hint.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello Guga,
Thank you for your message and information. Yes, I have no idea how this works with the Twincat application. I have read the documentation. when I choose the standard PLC project in TWINCAT I don't know where I should use the programs that I have seen in the documentation. Could you please teach me?
 
Zuviel Werbung?
-> Hier kostenlos registrieren
OK. The client is the active part, the server is the reactive part in the tcp/ip-communication.
So to speak: The client initiates the communication.

Look in the sample04 of the tcp/ip function. This is a sample with two PLC projects, one as server and one as client which should fit your needs.

 
Hello sir,
If you don’t mind can you please teach me task how to do in Twincat I can see the documentation and stuffs but I don’t know to implement in Twincat 3. Can I get your contact ? I can also pay you for teaching me this task.
 
If you have looked in the link above than you see a TwinCAT-Projekt to download
https://github.com/Beckhoff/TF6310_Samples/tree/master/PLC/TCP/Sample04

As far as I remember there are two TwinCAT PLC Projects to provide a functional sample (client + server project).
The server project is just what you need.

I can give you some hints and answers to specific question before I go offline starting this week-end.
But for now I just see you generally asking for "please help me". I don't know where your blocking points are, what you have tried so far....
 
Zurück
Oben