Example:
Source
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
array_dint1
Reference (before compare)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0
array_dint2
Result
array_dint3
Reference (after compare)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
array_dint2
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
When enabled, the DDT instruction compares the source array_dint1 to the
reference array_dint2 and stores the locations of any mismatches in the result
array_dint3. The controller also changes the mismatched bits in the reference
array_dint2 to match the source array_dint1.
Special Instructions (FBC, DDT, DTR, PID)
Chapter 13
5 3
507