EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

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
Page #624 background imageLoading...
Page #624 background image
624 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 19 ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER)
Execution:
Example: When MV_read.EM is set, the STOD instruction converts the first set of
numeric characters in MV_msg to an integer value. The instruction skips the
initial control character ($06) and stops at the delimiter ( \ ).
Relay Ladder
Structured Text
IF MV_read.EM THEN
STOD(MV_msg,MV_msg_nmbr);
MV_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 SC 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.
MV_read.EM
String To DINT
Source MV_msg
'$06324\12\1\$r'
Dest MV_msg_nmbr
324
STOD

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals