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
term_read.EM
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 deletes the specified characters.
The rung-condition-out is set to false.
Example:
ASCII information from a terminal contains a header character. After the controller reads
the data (term_read.EM is set) the DELETE instruction removes the header character.

Relay Ladder

Structured Text

IF term_read.EM THEN
DELETE(term_input,1,1,term_text);
term_read.EM := 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
DELETE
String Delete
Source term_input
'$0655'
Qty
1
Start
1
Dest
term_text
'55'
613

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents