LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Improve RS232 communication PLC

Hi to all.

First of all thanks a lot for reading this post and being able to help me.

 

I am communicating labview with a PLC via RS232.

I have an encoder from 0 to 200 ms.

 

In that time I have acquire 4 boolean shots. From example in 10, 40, 80, 130.

 

but the communication is too slow and I loose data in a while... because some iterations I just acquire 2 shots, another iteration just one...

 

How I am doing the communication is with OPC server and taking the encoder adress from PLC.

 

Is there any way to improve this communication or RS232 is a slow communication?

 

Thanks a lot.

0 Kudos
Message 1 of 5
(3,060 Views)

Hi A.,

 

asking for a way to improve a VI without showing this VI is kind of senseless…

 

General notes:

- Yes, RS232 is rather slow.

- You can set different baud rates for your RS232 connection - as long as both communication partners support them.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,052 Views)

Lots of information is missing here.  What is the baud rate being used?  What is the serial string protocol?  Where is your code?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,040 Views)

I am using OPC server and the baud rato is 9600.

Maybe I can set more baud rate.

 

Anyway, is there any way to communicate PLC with Labview via VISA? Maybe like this is faster...

But I can not find information about how can I get data from a PLC variable which is in a specific addres.

 

Any help?

 

thanks a lot

0 Kudos
Message 4 of 5
(3,006 Views)

Thanks a lot for replying!!!

See my last post.

 

Any help will be appreciate it.

 

Thanks again

0 Kudos
Message 5 of 5
(3,005 Views)