RSlogix 5000 make a string lowercase

Nacktern

Member
Join Date
Jul 2021
Location
USA
Posts
1
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.
 
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.

Dang! forgot that even existed !!!
 

Similar Topics

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...
Replies
4
Views
1,126
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...
Replies
3
Views
3,851
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...
Replies
5
Views
7,409
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...
Replies
8
Views
5,878
Hey Guys, I've got an array of strings in an L75 processor that take the shape of something like this: MyString[01] = '012345.678' I'm needing...
Replies
4
Views
9,976
Back
Top Bottom