QUOTE (pcmccartney1 @ Oct 27 2009, 05:30 PM)

Here is an example of an ML1100 talking ASCII to a Mettler-Toledo IND560. In this case, the data is bidirectional. I need to get the weight into the ML1100 and send back a couple integers as ASCII strings.
I chose to fill the buffer and then test for the CR/LF and then parse out the weight data and convert to INT. Going in the other direction I formatted the data string using concatenation and included the CR before doing the write.
In the serial port setup, I used "/d" for the first AWA append character and "/a" for the second AWA append character.
Hope you find this helpful.
I couldn't open your file. I get a file corrupt message. Maybe my RSLogix500 v6.2 is older than what you are using. I could set the scale up for polling, but I thought the continuous stream would be easier since I only have to monitor gross weight.
Another side question, when I convert the string to ASCII will it pick up a decimal point in the string? For Example, if the scale sends out 02450.4KG and I use the ACI(String to Integer) instruction will it return 02450 only? I would like to have the 1 decimal point accuracy if possible.
QUOTE (Doug-P @ Oct 27 2009, 05:49 PM)

QUOTE (ECSI @ Oct 27 2009, 01:45 PM)

I have the channel 1 port set up as DF1 with CR/LF append characters (not sure if that matters).
I'm pretty sure the port needs to set up as "USER ASCII". DF1 protocol is for RSLogix to communicate with the processor for programming, etc.
You're probably right. I thought I read somewhere that I could leave the port on DF1 but now I'm not sure where I read it.
Thanks for the help! I'll get to try this stuff out online to the PLC tomorrow.