Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 633
ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER) Chapter 19
Lower Case (LOWER)
The LOWER instruction converts the alphabetical characters in a string to lower
case characters.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder LOWER instruction.
Description: The LOWER instruction converts to lower case all the letters in the Source and
places the result in the Destination.
· ASCII characters are case sensitive. Upper case ‘A’ ($41) is not equal to
lower case ‘a’ ($61).
· If operators directly enter ASCII characters, convert the characters to all
upper case or all lower case before you compare them.
Any characters in the Source string that are not letters remain unchanged.
Arithmetic Status Flags: Not affected
Fault Conditions: None
Execution:
Operand Type Format Description
Source String Tag Tag that contains the characters that you want to
convert to lower case
Destination String Tag Tag to store the characters in lower case
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 converts the Source to lower case.
Postscan The rung-condition-out is set to false. No action taken.