beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 229

background image

10Ć27

10.3.3

Example of an Array Compare Instruction

When switch1 is set true and remains true, the

parameters are latched and checked. On

subsequent scans, the next three elements of

batch_1 are compared to the corresponding

three elements of batch_2. The first comparison

that evaluates false causes the instruction to be

completed, with Q set false. If all twelve

corresponding array elements had been equal,

the instruction would have finished on the fifth

scan with Q set true.