Serial Communication into Micro850

tim_callinan

Member
Join Date
Apr 2012
Location
Annapolis
Posts
59
Hello All,
I'm basically trying to get barcode numbers into my Micro850. I have the barcode working, plugged it into a computer and can view it on Hyperterminal. Next stage is getting it into the PLC. I've included a photo of our Micro850s. I think (and hope) there are two ways to get serial communication into the PLC. The first way is through the serial cable shown and the second would be getting a plug-in serial module which we dont have. My plan is to connect the barcode to the serial cable shown and hopefully access the data through connected components workbench. Is this possible or does anyone have any experience with this? Thanks for any assistance.
Tim

Barcode.jpg Micro850.jpg
 
The serial port (either onboard or pluggin) can be put into ASCII mode. I'd go for the pluggin module as they are cheap and easy to hookup...

To see the data you will need to setup a routine to scan the buffer, and read in on detection of a complete barcode. Not sure without more info what is needed to test that, but character count is probably a likely method...
 
Alright, so ive been working with Tim on this project. I have the plc receiving the information and acting accordingly, but we were wondering if what ive done is the way that you would normally process ascii serial data, or if there is a better/ more efficient way. please see the linked ladder logic. http://imgur.com/Z3Rl2GQ
 
I might have used an actual buffer count as a trigger for the read, and used the ARL instruction if you have a known delimitation character in lieu of a delay, but if it works ....

You ask 5 guys, and you'll get 5 variations...
 
while i was testing i was just scanning what ever bar codes were near me, so they weren't always the same length. that's why i was using the delay + >0 combination more then anything. we just wanted to make sure there wasn't some simple all in one block that we were missing or something like that.

edit: also, is there no better way to convert the ASCIILOCADD to a string?
 
Last edited:
Im working on this again. Now im trying to make a function block to make this easier to work with for students. The issue im having now is it always throws an error saying that the serial port is not configured properly. ive checked and rechecked it, and its configured for ASCII just like it should be. im getting an error 4 from my acb block.
 
sorry for the double post, but i just checked. it does seem to be an issue with having the serial commands in a function block. has anyone ever ran in to this issue before?
 
it turns out you cant have the control variables for the ascii command blocks as local variables. they have to be global. yeah. it will compile fine, but when you run it the block will throw an error id 4.
 

Similar Topics

Hi Experts. I need your help, I wanna communicate a MIcro850 with L19ER CompactLogix through Serial communication (Modbus RTU). I am using...
Replies
2
Views
2,147
Currently,we are facing the communication go through with 422 tx+ and tx-. Mitsubishi fx5u series is used and using command rs2. But the package...
Replies
0
Views
102
I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,551
MELSEC A RS422 (25pin) <> iQR C24 Serial RS232 (9pin) - Simple PLC Communication Communication from a MELSEC-A Series CPU (RS-422 – DB 25 Pin)...
Replies
4
Views
1,042
Hey guys, I have a problem reading weighing data from AND AD4406 with OP-05 RS-232C Relay and Control input using Rockwell PLC Micro820. I already...
Replies
0
Views
944
Back
Top Bottom