Serial Comms w/ Micro850

jordanat2012

Member
Join Date
Aug 2018
Location
Illinois
Posts
22
Hi all,
Pretty new to PLCs, and I think I've gotten myself in over my head. I'm trying to get an AB Micro850 to communicate via RS-232 with an audio module. I've got very specific ASCII strings that I have to transmit, but I can't seem to understand how to transmit them.


Anyone able to help me out?
 
I've never used CCW or any Micro series PLC, but I suggest you use PuTTY or another similar program to transmit the strings from your PC and verify that the audio module reacts as expected. Most serial comms with non industrial devices I've worked with required a carriage return or another special character to signal the end of the transmission. PuTTY will help you determine the exact data to send for the response you want. Once you know exactly what the device needs to receive, getting the PLC to send it should be relatively easy.

What audio module are you using.
 
Thanks for the lead Shawn. I'll check out the PuTTY option.


The audio module is a Goetting HG G-31500-A. Datasheet attached. I had to have it shipped from Germany - seems to be a pretty specialized unit that I couldn't find state-side.


I've also attached the user manual. I had to translate it from German, so excuse any errors in it.
 
The "AWT" function block is what is used in CCW to write ASCII characters to external devices. I've never done it in CCW but the help file in CCW is pretty good at explaining it.
 
How many audio files do you intend to play? If it's a lot, you may want to build your command inside the 850. If it's only a few, just store them as strings. What I don't know is how to enter hex data into a string in the 850. In the MicroLogix series, you would enter /02 for the STX character because if you type "STX" into the string, "53 54 58" is what will be transmitted over the serial port when the device is looking for 02.
 
Also, disregard what I said about Putty. That device requires non printable characters "stx and etx" and I don't think putty can send those.
 
I’ve looked into AWT, and thought that was the best solution. But then I started doubting myself, thinking it required some blocks beforehand, but I wasn’t sure what, if any, are needed. Does anyone have a sample that uses AWT?

I’ve only got 12-14 ASCII strings, so I plan to just hard code them as strings.
 
Just a quick note. I didn't have any software in front of me to verify yesterday, but in Logix500 to tell the AWT to transmit string data as HEX, you use a backslash and not a forward slash as I said before. I suspect CCW will be the same. In other words, in your strings you'll use \02 as the first character. You can't just put "STX" in your string.
 
How about you provide us with what you already have and I'm sure someone will be able to point out needed changes.

Be sure to read chapter #6 from post #4 because if you don't you will not get you project completed.

There are several things you need to understand before attempting to read/write out the RS232 port on a Micro820 or 850 plc.
 

Similar Topics

Hello, this is a brand new task for me. I recently bought a particulate sensor and it communicates with UART protocol or I2C protocol. It came...
Replies
12
Views
2,816
I have camera software which uses a keyboard to navigate, zoom move ect through serial. I want to be able to replace the keyboard for a PLC so I...
Replies
4
Views
1,250
Anyone here using MDS Orbit radios with PLC5 serial ? If you are would you share the setup config? How does the radio deal with the DF1 address...
Replies
0
Views
1,582
Hi all, I'm having a very hard time with my serial comms. Using FTView ME v9 to design an HMI. The PLC is a ML1500. At one point, I had comms...
Replies
1
Views
2,216
Hello all, A quick question. Can this PLC handle a custom RS-232 (or perhaps even RS485) protocol? I need to chop the incoming Bytes and process...
Replies
5
Views
1,821
Back
Top Bottom