Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 507
Special Instructions (FBC, DDT, DTR, PID) Chapter 13
Example: 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.
Source
array_dint1
00000000000000000000000000000000
Reference (before compare)
array_dint2
00000000000000000000000000101000
Result
array_dint3
53
Reference (after compare)
array_dint2
00000000000000000000000000000000