Micro830 ASCII Serial Communication

senorkitty

Member
Join Date
Jan 2016
Location
NJ
Posts
1
Hello!

I'm trying to write a very small program for a Micro830 PLC (pretty much the only PLC our shop has installed) that will a) listen for ascii strings from a computer program, b) parse those strings, and c) turn on/off certain outputs.

The length of the ascii strings from the computer are NOT fixed, so I need to use an ACB block (read buffer length) command to first determine the length of the received string. From there, I want to activate an ARD block (read characters from the input buffer) to get the string and run it through a set of comparison blocks.

I've got a whole bunch of questions and am pretty frustrated with getting this to work.

First, how do I activate ACB every cycle? It requires a rising edge, so I have been switching a boolean on and off (which means ACB is activated every other cycle). Ideally, I'd just like it to run every cycle.

Second, when ACB is first activated, it's output (Q) goes from False to True. But after the first time, Q just stays True. That means that I'm unable to activate ARD more than one time (it too needs a rising edge). Is there some way to reset Q every cycle? Or do I have to come up with another way to create a rising edge after ACB finishes every cycle?

Any help would be appreciated!

Thank You!!
 
I don't have any Micro 8 series experience yet, but I'd done some ASCII stuff in the Logix families. Not sure if I can help, but it can't hurt!

Have you tried to do an initial string compare to start your series of events? I usually do a NEQ between a String and String_Previous to energize a bit used on following runs - that's how I know my incoming string has been changed. In the output of that comparison rung, I use a copy to move the current string to the previous string.
 

Similar Topics

I am having issues getting a Red Lion HMI and Micro830 controller to communicate. I am using the cable here to connect the controller to the RS232...
Replies
0
Views
117
Trying to put these equations in structured text program in a Micro 830. when I run the verify I get this error. ;:expected before this new...
Replies
4
Views
438
Having to add some programming to a Micro830. I want to add a free running TON, reset with a done bit. in the drop downs or the instruction...
Replies
4
Views
285
Hello, We have a project on our shop floor that for some reason project management decided to not talk to controls about and pick some...
Replies
2
Views
1,321
I have an application using an A-B Micro830 controller. Does anyone have a PDF tutoring how to program one of these. Not very intuitive especially...
Replies
23
Views
6,550
Back
Top Bottom