Sign in to follow this  
Followers 0
Vijaya

New to Omron

6 posts in this topic

Hi, I am new to Omron i want to compare equality of two DINT arrays and store the Mismatch Location into an DINT array Please help me out in resolving this logic.. Ex: Source array-DINT to compare with Reference array-DINT and store the Mismatch location of these two array in a Result array-DINT. Please refer the attach file for the more detail

Share this post


Link to post
Share on other sites
Have you looked at OR, XOR functions etc? They may give you what you require.

Share this post


Link to post
Share on other sites
Hi Bob thanks for responding!!! Can you mail me the cxp file with an example how this is achieved using OR/XOR Instructions

Share this post


Link to post
Share on other sites
You will have to have a look yourself and try it in the simulator. I am just about to go to a plane for work and not sure when back - could be a day or 2 or a week - I do not know.

Share this post


Link to post
Share on other sites
As you want to locate multiple Mis-match locations, the best way would be with a For-Next loop... Example attached, this is for an Int array, but easy enough to change to DINT, LINT etc Equality Check.cxp Edited by lostcontrol

Share this post


Link to post
Share on other sites
Hi Sparky. Thank you very much....this is very helpful...

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
Sign in to follow this  
Followers 0