Sign in to follow this  
Followers 0
vanilla_gorilla

AWT, ST FILE and CH0

5 posts in this topic

I'm trying to get my 5/05 to throw ascii data to the serial port (ch0). I'm having trouble setting up or understanding the ST file. Where it is located and how I even put data "into it" as the source file for an AWT. Is the ST jut a pointer, and the data is stored in a regular #N ??

Share this post


Link to post
Share on other sites
I have not done what you are asking using the AWT but I will try to help with the creating of the String [sT] file. You need to create the ST file first by right clicking on Data file -> New -> type -> String and then enter how many elements you would like. Hope this helps, Bob O.

Share this post


Link to post
Share on other sites
I did this many years ago, and I remember having trouble figuring out how to load the data in the ST file. I remember having to use the "^" symbol and the "/" symbol and it seemed that a certain keystroke combination was required to get them to appear in the data table. I wish I could remember more about my struggles with the RSLogix5 editor... Every time I've done serial communications, it's amounted to a lot of trial and error to get everything set up right. Pay very close attention to all the settings for CH0 and compare with the receiving device requirements. Often you have to translate terminology differences between manufacturers. You can use AWA to simplify the data tables if your receiving device(s) require a termination character that is consistent. Hope this helps...

Share this post


Link to post
Share on other sites
ST9:0.LEN is a word value containing the strings length. It is the same as ... ST9:0.DATA[0] This is the start of a 42 word array. ST9:0.DATA[1] to ST9:0.DATA[41] contain the ASCII data as two characters per 16bit word - although they are annoyingly in the wrong order (if I remember correctly). If possible it is much easier to use the ASCII instructions such as ACI, AEX, AIC etc which means you can dont have to use DATA[] at all. Also like OkiePC says, use AWA instead of AWT unless your messages are longer than 82 characters. Also, watch out for the bug when you setup CH0 as user, if sometimes sets it as system and you cant change it back unless you fiddle about. Vey annoying. Edited by Spedley

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0