gregory Posted April 21 Report Share Posted April 21 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. I Quote Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted April 21 MVP 2023 Report Share Posted April 21 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. Quote Link to comment Share on other sites More sharing options...
gregory Posted April 22 Author Report Share Posted April 22 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 Gregor Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.