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.

616 ASCII String <strong>Instructions</strong> (CONCAT, DELETE, FIND, INSERT, MID)Structured TextIF temp_high THENINSERT(string_1,string_2,2,string_3);temp_high := 0;END_IF;Middle String (MID)The MID instruction copies a specified number of ASCII charactersfrom a string and stores them in another string.Operands:MIDMiddle StringSource ???Qty ???Start ???Dest ???Relay LadderOperand Type Format Enter NotesSource string tag string to copy charactersfromString data types are:• default STRING data type• any new string data type that you createQuantity SINTimmediate number of characters tocopyThe Start plus the Quantity must be less than orequal to the DATA size of the Source.INTtagDINTStartSINTINTimmediatetagposition of the firstcharacter to copyEnter a number between 1 and the DATA size ofthe Source.DINTDestination string tag string to copy thecharacters toStructured TextMID(Source,Qty,Start,Dest);The operands are the same as those for the relay ladderMID instruction.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!