String Manipulation in a MicroLogix 1100

cjvanrem

Member
Join Date
Apr 2006
Location
Newburyport, MA
Posts
4
Thanks again to everyone who helped me with my counter problem. I have another one...

The ML1100 is attached to a C-More touchscreen from AutomationDirect. It is working very well but the screen can not access ST files on the PLC. If I want to store ascii data I can use an N file (high byte of first word is 1st character, low byte is 2nd character, etc.). This works if all I want to do is retain display data in the PLC.

However, I have a computer running RSView32 that I am going to use to monitor the PLC, log data, and react to various events. RSView32 wants to look at ST files for string data. So, I need to either:

1) Somehow stuff the bytes from the N file into the ST file.

or

2) Convert the bytes to ascii characters in RSView32 (probably using VB.

Does anyone know if 1 can be done?

Thanks again for all of your help.

Chris
 
I've got it...

You can reference a word (2 characters) within an ST file like this:

ST9:1.DATA[0]

It stores the data exactly the same way as the C-More is writing the string data to the N file. So I just move each word from the N file into the corresponding DATA word.

The only thing I have to do is initialize the string with the number of characters I will be storing in each string.
 

Similar Topics

Hello, This is my first post on this forum. There are a lot of smart people on here and I hope that one of them can answer my question. What...
Replies
6
Views
6,242
Hey Guys, Having to do a job for a customer using a GE SCE330 Processor. Using the new GE Proficy 9.50 IDE and I'm having some difficulty with...
Replies
3
Views
3,188
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
150
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
423
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
125
Back
Top Bottom