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.

220 Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)Greater Than (GRT) The GRT instruction tests whether Source A is greater than Source B.Operands:Relay LadderOperand Type Format DescriptionSource ASINTimmediatevalue to test against Source BINTtagDINTREALstringSource BSINTimmediatevalue to test against Source AINTtagDINTREALstring• If you enter a SINT or INT tag, the value converts to a DINTvalue by sign-extension.• String data types are:– default STRING data type– any new string data type that you create• To test the characters of a string, enter a string tag for bothSource A and Source B.Structured TextIF sourceA > sourceB THEN;Use the greater than sign “>” as an operator within an expression. Thisexpression evaluates whether sourceA is greater than sourceB.See Appendix for information on the syntax of expressions withinstructured text.Function BlockOperand Type Format DescriptionGRT tag FBD_COMPARE structure GRT structurePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!