FSC Instruction to check bits

MQuintan

Member
Join Date
Jan 2013
Location
BC
Posts
6
Hello:

I have an application where a "first-out" indication is sent to bits starting at N36:0/0 and ending at N36:15/15. Thre are 192 bits that I need to check, only one will be true when this "first-out" happens.

My question is: can I use an FSC instruction to check which bit (from 1 to 192) is the one which is true? It is not clear to me if this can be done?
 
take a look at the FBC (File Bit Compare) instruction instead ... if I understand what you're asking for, I think you'll find that one more suitable ...

and welcome to the forum ...
 
Last edited:
by the way, is your "first out" signal coming from a series of digital input modules? ... if so, there's a "secret handshake" that you might be interested in that could affect the accuracy of your results ... a lot depends on how you're wiring up the inputs ...

let us know if you need more detail ...

 
No, actually it's sent from another PLC's logic.

in that case you PROBABLY don't have anything to worry about ... the effect that I had in mind is covered in a thread from 2007 ... the major idea is summed up in the following post ...

http://www.plctalk.net/qanda/showthread.php?p=246883&postcount=25

it all boils down to the fact that many of the "first out" schemes that people come up with are not as reliable as they might want to believe ...

party on ...
 
Thanks, Ron. I read the post.. Very interesting. However, this does not apply to my situation now, but it is definitely something to keep in mind.

Cheers!
 

Similar Topics

Maybe this is just not possible, or maybe I am doing something wrong. Background; I have a data array of over 1500 products. For sorting I...
Replies
6
Views
759
I have a FSC instruction that won't enable. I check tags and data type and can't find the problem. I'm trying to pull index numbers for data...
Replies
4
Views
731
Hello Please Help, I want to use a FSC instruction that will scan 20 DINT arrays. If the arrays are greater than 1000 display the value. How do I...
Replies
4
Views
1,764
Hello, I'm brand new to the forum and I have a frustrating problem at work that I've been trying to find a solution to. I have scanned the...
Replies
7
Views
11,200
I have been using the FSC instruction in a couple of application successfully. I am now trying to use it in a new application, and I feel that I...
Replies
4
Views
2,559
Back
Top Bottom