Vijaya Posted August 16, 2012 Report Posted August 16, 2012 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 Quote
BobB Posted August 16, 2012 Report Posted August 16, 2012 Have you looked at OR, XOR functions etc? They may give you what you require. Quote
Vijaya Posted August 17, 2012 Author Report Posted August 17, 2012 Hi Bob thanks for responding!!! Can you mail me the cxp file with an example how this is achieved using OR/XOR Instructions Quote
BobB Posted August 17, 2012 Report Posted August 17, 2012 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. Quote
lostcontrol Posted August 19, 2012 Report Posted August 19, 2012 (edited) 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 August 19, 2012 by lostcontrol Quote
Vijaya Posted August 20, 2012 Author Report Posted August 20, 2012 Hi Sparky. Thank you very much....this is very helpful... Quote
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.