12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ) 241Example 1:If the masked value_1 is equal to the masked value_2, set light_1. Ifthe masked value_1 is not equal to the masked value_2, clear light_1.This example shows that the masked values are equal. A 0 in themask restrains the instruction from comparing that bit (shown by x inthe example).value_1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 value_2 0 1 0 1 0 1 0 1 1 1 1 1 0 0 0 0mask_1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 mask_1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0Masked value_1 0 1 0 1 0 1 0 1 1 1 1 1 x x x x Masked value_2 0 1 0 1 0 1 0 1 1 1 1 1 x x x xRelay LadderStructured Textlight_1 := ((value_1 AND mask_1)=(value_2 AND mask_2));Function BlockPublication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!