Omron Ascii Compare

2 posts in this topic


I am trying to find a way to compare a 6 ascii character without having to break it down into an individual word? 

The reason I don't want to break it down is because it is the quantity of a tank and needs to be configured together.

Data will look like the following 014514, 001423 or 175495

Help would be much appreciated.

Many Thanks :)

Share this post

Link to post
Share on other sites

Use =$.  Note that the leftmost byte of the word after your data needs to be a NULL character (00 Hex) to signify the end of the string.  

I created some pictures, but cannot attach them....You will need to populate three different memory areas with the hex values of your three different ASCII strings.  Then use the =$ function to compare the actual string in question against the three predefined memory areas.

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