EasyManua.ls Logo

Allen-Bradley Logix5000

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
628 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 19 ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER)
Execution:
Example: When temp_high is set, the DTOS instruction converts the value in msg_num to
a string of ASCII characters and places the result in msg_num_ascii. Subsequent
rungs insert or concatenate msg_num_ascii with other strings to produce a
complete message for a display terminal.
Relay Ladder
Structured Text
IF temp_high THEN
DTOS(msg_num,msg_num_ascii);
temp_high := 0;
END_IF;
Condition Relay Ladder Action Structured Text Action
Prescan The rung-condition-out is set to false. No action taken.
Rung-condition-in is false The rung-condition-out is set to false. N/A
Rung-condition-in is true The instruction executes.
The rung-condition-out is set to true.
N/A
EnableIn is set N/A 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.
temp_high
DINT to String
Source msg_num
23
Dest msg_num_ascii
'23'
DTOS

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals