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.

Chapter 19ASCII String <strong>Instructions</strong>(CONCAT, DELETE, FIND, INSERT, MID)IntroductionUse the ASCII string instructions to modify and create strings ofASCII characters.If you want to For example Use thisinstructionadd characters to the end of a string add termination characters orCONCATdelimiters to a stringdelete characters from a stringdetermine the starting character of asub-stringremove header or control charactersfrom a stringlocate a group of characters within astringDELETEFINDAvailable in theselanguagesrelay ladderstructured textrelay ladderstructured textrelay ladderstructured textinsert characters into a string create a string that uses variables INSERT relay ladderstructured textextract characters from a string extract information from a bar code MID relay ladderSee page608610612614616structured textYou can also use the following instructions to compare or convertASCII characters:If you want to Use this instruction See pagecompare a string to another string CMP 207see if the characters are equal to specific characters EQU 212see if the characters are not equal to specific characters NEQ 243see if the characters are equal to or greater than specific characters GEQ 212see if the characters are greater than specific characters GRT 220see if the characters are equal to or less than specific characters LEQ 224see if the characters are less than specific characters LES 228rearrange the bytes of a INT, DINT, or REAL tag SWPB 301find a string in an array of strings FSC 349convert characters to a SINT, INT, DINT, or REAL value STOD 622605 Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!