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...
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 617
ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID) Chapter 18
Execution:
Example: When temp_high is set, the INSERT instruction adds the characters in string_2 to
position 2 within string_1 and places the result in string_3:
Relay Ladder
Structured Text
IF temp_high THEN
INSERT(string_1,string_2,2,string_3);
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 inserts the specified characters.
Postscan The rung-condition-out is set to false. No action taken.
temp_high
Insert String
Source A string_1
'AD'
Source B string_2
'BC'
Start 2
Dest string_3
'ABCD'
INSERT

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals