RSlogix 5000 make a string lowercase

Hi everyone,
new user so please forgive any breaches of etiquette.

But in RSLogix how can you convert a string in the PLC to all lowercase and move to a different tag?

Much appreciated :)
 
Hi everyone,
new user so please forgive any breaches of etiquette.

But in RSLogix how can you convert a string in the PLC to all lowercase and move to a different tag?

Much appreciated :)

This is relatively simple - if the ASCII value of each character is 65 to 90 (decimal), which are A-Z, then add 32, otherwise leave it alone ....

Adding 32 (decimal) makes "A" into "a", etc.

2021-07-29_142856.jpg
 
Why not to use the LOWER instruction?
it will do it for you.

From Help:
The LOWER instruction converts the alphabetical characters in a string to lower case characters.
 

Similar Topics

Hello! I'm looking for advice how to convert an array of SINT[5] into the Decimal value. Since the total value of the array is 40 bits, it's too...
19
Replies
4,417
Views
Hey all, I am trying to figure out how to import some alarm messages without having to type them all in by hand. They are in the format of an...
4
Replies
2,675
Views
I ran into a situation where some devices I use display String bytes in a swapped order as they are stored in my PLC (CompactLogix). I thought it...
3
Replies
5,478
Views
Hi, I am reading on strings and having a hard time finding an instruction on making a string to display on the HMI. What I want to do is move a...
5
Replies
9,310
Views
I'm working with a CompactLogix system and RSLogix 5000. I used a condition on a rung to copy a string from itself to another string when the...
8
Replies
7,441
Views
Top