TwinCAT Serial communication

Bennie_S

Member
Join Date
Jul 2012
Location
Halsteren
Posts
5
Good morning all! ( at least fo he ones living around the GMT+1 area:p)

Im having some problems with my program while using serial communication.
I then used the sample program from the TwinCAT informaton system just to make sure i was'nt screwing up, but i got the same error:

as soon as SendBusy becomes TRUE, SendErrorID becomes COMERROR_TXBUFFOVERRUN, i dont understand this erroro_O

So im can see data in the sendstring, but no data in the received string, i also used hhperterminal but i dont see anything being hello worlded to my screen =(

I linked the variables in the systemsmanager ( Status, Control, Input and output) so i think that cant be the cause of the problem.

I hope i made the probem as clear as possible, if not, please contact me for details. Thanks in advance guys/girls!
 
I found the problem

I failed to select the corret run-time system in TwinCAT PLC, I did selected the correct system in the TwinCAT system manager but you could guess what happened.

Now that I look back, there was at least one sign that could indicate this;
Last week I tried to put the plc /io combination online for the first time, but I could not make a hardware output TRUE (make a light turn on).

thanks for the brains!
 
hai bennie
these questions are better in place at 3s-software.com
however i read here frequent.
you will have these problems also in simulation mode.
 

Similar Topics

Good morning everyone, This is my first post here. I am beginning my journey on PLC programming and still a really newbie, I want to write a...
Replies
0
Views
1,258
Hello guys! If anybody has any experience with serial communication in TwinCAT with Beckhoffs PLCs, would be really helpful. I Have: - CX2020...
Replies
9
Views
5,029
HI, I'm working with Beckhoff CX5020 series PLC and I'm using Serial ComLibV2 library for serial communication(RS422). The problem I have is I...
Replies
3
Views
3,824
Is it possible to change settings for an El6001 serial terminal when running the plc ? I know how to config the port manually in system...
Replies
0
Views
1,249
I am using twincat 3 to send some strings over TCP/IP. Where the server is a sensor and my PLC is the client. I noticed that the sensor didnt...
Replies
2
Views
88
Back
Top Bottom