Relay Ladder; Structured Text; Rockwell Automation Publication 1756-Rm003N-En-P - October - 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)
632
Example:
To find information about a specific item, an operator enters the catalog number
of the item into an ASCII terminal. After the controller reads the input from a
terminal (terminal_read.EM is set), the UPPER instruction converts the
characters in catalog_number to all upper case characters and stores the result in
catalog_number_upper_case. A subsequent rung then searches an array for
characters that match those in catalog_number_upper_case.

Relay Ladder

Structured Text

IF terminal_read.EM THEN
UPPER(catalog_number,catalog_number_upper_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