sarahc
Member
Hi, I have some RS Logix 5000 code and have to write the equivalent in Unity Pro 8.1 in function block.
In Logix I am using the DDT instruction to look for differences in the bits of 2 arrays (type DINT[32]), then record where those differences are.
To paraphrase Rockwell help: The DDT instruction compares the source array to the reference array and stores the locations of any mismatches in the result array. The controller also changes the mismatched bits in the reference array to match the source array.
So I'm completely stuck on how to do this in Unity (I'm not familiar at all with it). I'm investigating the EQUAL_ARDINT but don't think that will quite do it.
Help?
In Logix I am using the DDT instruction to look for differences in the bits of 2 arrays (type DINT[32]), then record where those differences are.
To paraphrase Rockwell help: The DDT instruction compares the source array to the reference array and stores the locations of any mismatches in the result array. The controller also changes the mismatched bits in the reference array to match the source array.
So I'm completely stuck on how to do this in Unity (I'm not familiar at all with it). I'm investigating the EQUAL_ARDINT but don't think that will quite do it.
Help?