Serial Communications without handshaking (LIN interface)

ksteele15

Member
Join Date
Aug 2016
Location
Greer, SC
Posts
5
Hi,

I am communicating with a LIN interface (PCAN-LIN) for a project. I am using a CompactLogix PLC with serial port. I was wondering if anyone has had experience communicating via serial commands (ASCII read/write) without using handshaking? The interface we are using doesn't have RS-232 handshaking, just TX/RX. I sometimes find it difficult to get a proper response from the interface because it is filling my buffer with other data. I send it a serial stream of bytes to command it to do something, then expect a response (typically 4 bytes). If I clear my read buffer when I write, then the next message I get is usually the serial stream I expect. The problem is, if it is forwarding messages from the LIN bus (which happens every 10ms or less when the scheduler is running), then my ASCII buffer is constantly filling up with data. When I tell it to turn OFF the master scheduler and stop communicating wit the LIN slaves, I always undershoot when reading (ARD) the response message and receive some trailing bytes from the LIN bus.

Any advice is appreciated!! I am somewhat of a serial n00b.o_O
 
Have you configured the serial port in controller properties? Is this a serial port on the controller or the ascii module? I would suggest going through the serial port configuration and making sure it matches up to whatever you are communicating with. I had a lot of trouble with the 1769-ascii in the past. If you are using the ascii module I would recommend reading the manual as it has some weird wiring required to work correctly. Hope this helps.

Scott
 

Similar Topics

I've been searching through the forums to see if I could find this question answered anywhere else without success. My apologies if this is a...
Replies
16
Views
8,829
Hi - I am looking to replace two GE 90-30 IC693CMM311 modules and will be using Rx3i system with a IC695CPE310 processor. I programmed these years...
Replies
3
Views
2,138
Hello, I am in the process of upgrading a SCADA apllication to a windows 7 PC. The issue that i am running into is that Wondeware does not...
Replies
11
Views
5,528
Hi All, I am having trouble getting my head around an upcoming application. What I have is a Omron PLC running sysmac configuration software...
Replies
3
Views
1,357
I have a project that requires a horner xl7 to communicate with an instrument meter. The xl7 is using the mj1 port for serial rs-232...
Replies
0
Views
1,950
Back
Top Bottom