"Test ASCII Buffer for Line" Instruction for AB SLC 500

Join Date
Apr 2002
Location
Burlington, Ontario
Posts
186
Hi all,

I'm trying to use the "Test ASCII Buffer for Line" Instruction in a AB SLC500, and are having some trouble. What I am having trouble with is with the ".FD" bit. I see all the bits in the element R6:1 being reset it I initiate a Reset on R6:1, except the .FD bit doesn't reset. What has to happen to reset this bit?? Do I have to externally unlatch it??

Hope I have expalined my problem properly...

Andrew Evenson
 
What precisely do you mean by "initiate a Reset on R6:1" ? The RES instruction is intended for Timers and Counters only, and I haven't seen it used on a Control Register (R-type data file element).

You shouldn't ever externally manipulate any of the bits in the control file except the .UL Unload bit if you need to manually cancel the instruction.

With both ASCII and MSG instructions, I often condition the .DN or .FD bits with a oneshot to trigger another instruction in my program.
 
Ken Roach said:
What precisely do you mean by "initiate a Reset on R6:1" ? The RES instruction is intended for Timers and Counters only, and I haven't seen it used on a Control Register (R-type data file element).

Ken, I have used a RES on register elements, and with no ill effects. Specifically, on an FSC instruction inside a subroutine.

This is done because at each invocation of the subroutine the search must start at the beginning of the file. Without the reset, if the search argument had been found during the previous scan the instruction would start searching from a point other than the start of the file. I don't have the logic in front of me but I think I also had to explicitly unlatch the FD bit to get the search to operate correctly. I'm pretty sure also that unlatching the FD bit on a search instruction is documented in A-B literature.


An alternative to this is to place an identical search instruction, in an unconditionally false rung, just before the 'real' search begins.
 
The .FD bit should be off while the instruction is enabled. It will be on when the termination character is found. Set the termination character under Channel configuration > Chan. 0 User
 
Gentlemen,

I am sorry it has taken so long for me to respond to your replies, been very busy at here over the last few days of last week and yesterday.

Ken:

The reason I asked about using a reset instruction is that we currently have a running program that uses the reset instruction to reset control registers of ASCII read and write instruction. Because of this I thought it was normal. Guess I was wrong.

R_C:

Your response is what i was looking for; and that is how the instruction is working. I see the .FD bit set when it encounters the end of string terminator, but what I'm not seeing is it reseting. How is it suppose to reset?? When the rung with the "Test ASCII Buffer for Line" Instruction goes from true to fasle to false to true again???

Thanks again for all your replies!!

Andrew Evenson
 
Andrew Evenson said:
Gentlemen,

I am sorry it has taken so long for me to respond to your replies, been very busy at here over the last few days of last week and yesterday.

Ken:

The reason I asked about using a reset instruction is that we currently have a running program that uses the reset instruction to reset control registers of ASCII read and write instruction. Because of this I thought it was normal. Guess I was wrong.

R_C:

Your response is what i was looking for; and that is how the instruction is working. I see the .FD bit set when it encounters the end of string terminator, but what I'm not seeing is it reseting. How is it suppose to reset?? When the rung with the "Test ASCII Buffer for Line" Instruction goes from true to fasle to false to true again???

Thanks again for all your replies!!

Andrew Evenson

Use the OTU instruction on the .FD bit when you are done using the .FD bit.
 

Similar Topics

Hi All, I'm trying to set up some Ascii coms between some Keyence barcode scanners and a ML1100 but not having much luck what i want to do now...
Replies
3
Views
2,649
Hi, I am using M221 reading from 3 different sensors (modbus rs485) sharing same bus (daisy chain). I am currently using READ_VAR (in total...
Replies
0
Views
84
I am trying motor startup with pf525 drive by using wizard start over ethernet communication but during direction test it's showing control error...
Replies
3
Views
186
See code at the bottom. Hi all. For the story, this is my first complete project using a Rockwell PLC, I've been mostly working with Unity Pro...
Replies
7
Views
792
My question is regarding the number of Test outputs vs the number of inputs in a module. In the case of a 1734-IB8S card, there are 4 test...
Replies
5
Views
1,189
Back
Top Bottom