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.

250 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)Execution:Conditionprescanrung-condition-in is falserung-condition-in is truepostscanRelay Ladder ActionThe rung-condition-out is set to false.The rung-condition-out is set to false.The instruction evaluates the Expression and places the result in the Destination.The rung-condition-out is set to true.The rung-condition-out is set to false.Example 1: When enabled, the CPT instruction evaluates value_1 multiplied by 5and divides that result by the result of value_2 divided by 7 andplaces the final result in result_1.Example 2:When enabled, the CPT instruction truncates float_value_1 andfloat_value_2, raises the truncated float_value_2 to the power of twoand divides the truncated float_value_1 by that result, and stores theremainder after the division in float_value_result_cpt.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!