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.

614 ASCII String <strong>Instructions</strong> (CONCAT, DELETE, FIND, INSERT, MID)Structured TextIF MV_read.EM THENFIND(MV_msg,find,1,find_pos);MV_read.EM := 0;END_IF;Insert String (INSERT)The INSERT instruction adds ASCII characters to a specified locationwithin a string.Operands:INSERTInsert StringSource A ???Source B ???Start ???Dest ???Relay LadderOperand Type Format Enter NotesSource A string tag string to add the characterstoSource B string tag string containing thecharacters to addStartSINTINTimmediatetagposition in Source A to addthe charactersString data types are:• default STRING data type• any new string data type that you createEnter a number between 1 and the DATA size ofthe Source.DINTResult string tag string to store the resultStructured TextINSERT(SourceA,SourceB,Start,Dest);Description:The operands are the same as those for the relay ladderINSERT instruction.The INSERT instruction adds the characters in Source B to adesignated position within Source A and places the result in theDestination:• Start defines where in Source A that Source B is added.• Unless SourceA and the Destination are the same tag, Source Aremains unchanged.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!