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.

ASCII Conversion <strong>Instructions</strong> (STOD, STOR, DTOS, RTOS, UPPER, LOWER) 627DTOS(Source,Dest);Structured TextThe operands are the same as those for the relay ladderDTOS instruction.Description:Arithmetic Status Flags:The DTOS converts the Source to a string of ASCII characters andplaces the result in the Destination.not affectedFault Conditions:Type Code Cause Recovery Method4 51 The LEN value of the string tag is greater than the DATAsize of the string tag.Execution:1. Check that no instruction is writing to the LENmember of the string tag.2. In the LEN value, enter the number of charactersthat the string contains.4 52 The output string is larger than the destination. Create a new string data type that is large enough forthe output string. Use the new string data type as thedata type for the destination.Condition Relay Ladder Action Structured Text Actionprescan The rung-condition-out is set to false. No action taken.rung-condition-in is false The rung-condition-out is set to false. narung-condition-in is true The instruction executes.naThe rung-condition-out is set to true.EnableIn is set na EnableIn is always set.The instruction executes.instruction execution The instruction converts the Source.postscan The rung-condition-out is set to false. No action taken.Example:When temp_high is set, the DTOS instruction converts the value inmsg_num to a string of ASCII characters and places the result inmsg_num_ascii. Subsequent rungs insert or concatenatemsg_num_ascii with other strings to produce a complete message fora display terminal.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!