Jump to content

Recommended Posts

Posted
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
Posted
Have you looked at OR, XOR functions etc? They may give you what you require.
Posted
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.
Posted (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 by lostcontrol

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...