NoBoots

Send data TXD548)

2 posts in this topic

Hi,
 

After a long time, searching for missing communication I think to have found the cause.

In this CMP2A plc there is a receiving device connected to the RS-232 port. .

During operation it can happen that in the same cycle there will be 2 functions to send different data..
I never receive those 2 data,  only 1 is received.

I can set a delay for sending this but this seems to be 'overkill',

Is there a simpler way to do this..?

The 2 pics are part of the program.

After putting the P_off before the other transmits, I always receive the TXD(48) DM1621...

 

Please advise,

 

 

 clip2.jpg.dcdadf8ebaeb587f07b7a0183ffe75clip.jpg.28c476b02973a6647f20aae3991e9db

Share this post


Link to post
Share on other sites

You don’t need to set a delay necessarily (although a small one won’t hurt), but check/wait for the port to be not busy/InUse

2 people like this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now