Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Execution:
Condition
Prescan
Rung-condition-in is false
Rung-condition-in is true
EnableIn is set
Instruction execution
Postscan
temp_high
Relay Ladder Action
The rung-condition-out is set to false.
The rung-condition-out is set to false.
The instruction executes.
The rung-condition-out is set to true.
N/A
The instruction inserts the specified characters.
The rung-condition-out is set to false.
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;
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID)
Structured Text Action
No action taken.
N/A
N/A
EnableIn is always set.
The instruction executes.
No action taken.
Chapter 18
INSERT
Insert String
Source A
string_1
'AD'
Source B
string_2
'BC'
Start
2
Dest
string_3
'ABCD'
617

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents