Posted 16 Aug 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 Share this post Link to post Share on other sites
Posted 16 Aug 2012 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
Posted 17 Aug 2012 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
Posted 17 Aug 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. Share this post Link to post Share on other sites
Posted 19 Aug 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 19 Aug 2012 by lostcontrol Share this post Link to post Share on other sites
Posted 20 Aug 2012 Hi Sparky. Thank you very much....this is very helpful... Share this post Link to post Share on other sites