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

Chapter 19
ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER)
634
Example:
To find information about a specific item, an operator enters the item number
into an ASCII terminal. After the controller reads the input from a terminal
(terminal_read.EM is set), the LOWER instruction converts the characters in
item_number to all lower case characters and stores the result in
item_number_lower_case. A subsequent rung then searches an array for characters
that match those in item_number_lower_case.

Relay Ladder

Structured Text

IF terminal_read.EM THEN
LOWER(item_number,item_number_lower_case);
terminal_read.EM := 0;
END_IF;
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents