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.

Move/Logical <strong>Instructions</strong> (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) 329Execution:Conditionprescaninstruction first scaninstruction first runEnableIn is clearedEnableIn is setpostscanFunction Block ActionNo action taken.No action taken.No action taken.EnableOut is cleared.The instruction executes.EnableOut is set.No action taken.Example 1:This example complements bool_in1 and places the result invalue_result_not.If BOOL_IN1 Is Then VALUE_RESULT_NOT Is0 11 0Structured Textvalue_result_not := NOT bool_in1;Function BlockExample 2:If bool_in1 is cleared, light1 is cleared (off). Otherwise, light1is set (on).Structured TextIF NOT bool_in1 THENlight1 := 0;ELSElight1 := 1;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!