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...
626 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 19 ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER)
Execution:
Example: After reading the weight from a scale (weight_read.EM is set) the STOR
instruction converts the numeric characters in weight_ascii to a REAL value.
You may see a slight difference between the fractional parts of the Source and
Destination.
Relay Ladder
Structured Text
IF weight_read.EM THEN
STOR(weight_ascii,weight);
weight_read.EM := 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 S:C is set.
Destination is cleared.
The instruction converts the Source.
If the result is zero, then S:Z is set
Postscan The rung-condition-out is set to false. No action taken.
weight_read.EM
String to Real
Source weight_ascii
'428.259'
Dest weight
428.259
STOR

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals