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.

630 ASCII Conversion <strong>Instructions</strong> (STOD, STOR, DTOS, RTOS, UPPER, LOWER)Execution: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 send_data is set, the RTOS instruction converts the value indata_1 to a string of ASCII characters and places the result indata_1_ascii. Subsequent rungs insert or concatenate data_1_asciiwith other strings to produce a complete message for a displayterminal.You may see a slight difference between the fractional parts of theSource and Destination.Relay Laddersend_dataRTOSReal to StringSource data_115.3001Dest data_1_ascii'15.3001003'Structured TextIF send_data THENRTOS(data_1,data_1_ascii);send_data := 0;END_IF;Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!