Upper Case (UPPER)
UPPER(Source,Dest);
Description:
Arithmetic Status Flags:
Fault Conditions:
Condition
Prescan
Rung-condition-in is false
Rung-condition-in is true
EnableIn is set
Instruction execution
Postscan
ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER)
The UPPER instruction converts the alphabetical characters in a string to upper
case characters.
Operands:
Relay Ladder
Operand
Source
Destination
Structured Text
The operands are the same as those for the relay ladder UPPER instruction.
The UPPER instruction converts to upper 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.
Not affected
None
Execution:
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 converts the Source to upper case.
The rung-condition-out is set to false.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
String
Tag
String
Tag
Structured Text Action
No action taken.
N/A
N/A
EnableIn is always set.
The instruction executes.
No action taken.
Description
Tag that contains the characters that you want to
convert to upper case
Tag to store the characters in upper case
Chapter 19
631