Jump to content

Recommended Posts

Hi , 

I need help to compare two ASCII strings. One ASCI string  came form router modem  as message and I would like to compare message with fixed text and than execute output  if  comparing  is the same.
Am I on right way  on programming  ladder or do or need diferent solution.

Many thanks for help.



Link to comment
Share on other sites

  • MVP 2023

What you've posted looks like a good start to me.  I'm guessing you've verified that your "Message" tag is the same length as your "Vklop10" tag.

If it doesn't work I'd add both tags to a Watch when you're online with the PLC so you can actually see what's going on.

Joe T.

Link to comment
Share on other sites

Hi Mr. Joe  , i tried with Watch function and  find some mistake with max sting length . Yes that was the reason .  I wonder why is on receive side something bufering produce 

wrong  ASCII code despite  i send correct meassage,  

Anyway , THANKS Joe for help and I miss your old picture :)

Kind Regards



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...