Serial Comms using Allen Bradley 1769-L32E

allenz

Member
Join Date
Oct 2010
Location
Auckland
Posts
9
Using the native serial port on the PLC I am connecting a Fairbanks Scale.

I have set the serial settings for the Fairbanks as follow

9600-8-N-1, it'll output CR as the end of line, and it uses STX and ETX indicators, I have connected it directly to my laptop and I could see the correct information being spit out on to the hyperterminal

Now I have connected the serial cable of the scale directly to the native port of the PLC.

I have set the serial port options on the PLC as the pictures attached.




WHen I use ASCII function block provided by AB, eg ARL, ABL, I am getting no characters returned. e.g. it's reading no character?

serial one.JPG serial two.JPG
 
Hi,

I am assuming that you are using RS232...
The first thing I would check is the cable, have you connected RX and TX correctly? Rx on one device should go to Tx on the other and vice versa.
What length on the cable do you have? Using standard cable, I think that you are limited to 15 meters.
Thirdly, connect a PC to the PLC (hyperterminal) and send some telegrams, to ensure that your PLC program is correct...

BR

Patrick L
 
The very first step in diagnosing serial communication problems for me is to get everything working to a terminal emulator on a PC. Realterm or Hyperterminal, or something similar.

The same cable should even work. Once it's working on the PC, then get back to the PLC.

For scales, make sure the scale is set up to do what you want as well. I generally prefer to use the "Request/Answer" method of reading scales, but if I'm being lazy, I'll set them to just continuously retransmit the canned data packet and parse it in the PLC. That method doesn't require the PLC to do anything to initiate the comms.
 
Look at the Real Time Automation 435. It is a serial to Ethernet adapter. In 10 minutes you can have the PLC communication running and not tie up you serial port.
rdrast has given great solid advice. I like the "ask reply" or "request reply" it does call for more work on your side but. If you just parse out the constant data you have to assume when the data us good. So if you get a snapshot of the weight and the scale hasn't settled yet you will get junk data.
 
The scale does output correctly on to the PC's hyperterminal. However when I plug the scale into the PLC, there is no lights flashing on the PLC to indicate RS-232 activity. All the settings seem correct to me.
 
Yes it was resolved, turns out the ground wasn't connected properly. I had to re-solder the ground pin again. Everything came right afterwards.
 

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,833
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,255
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...
Replies
11
Views
2,801
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,589
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,222
Back
Top Bottom