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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Move/Logical <strong>Instructions</strong> (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) 321Example 1:This example ANDs bool_in1 and bool_in2 and places the result invalue_result_and.If BOOL_IN1 Is If BOOL_IN2 Is Then VALUE_RESULT_AND Is0 0 00 1 01 0 01 1 1Structured Textvalue_result_and := bool_in1 AND bool_in2;Function BlockExample 2:If both bool_in1 and bool_in2 are set (true), light1 is set (on).Otherwise, light1 is cleared (off).Structured TextIF bool_in1 AND bool_in2 THENlight1 := 1;ELSElight1 := 0;END_IF;Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!