bbishop108
Member
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 am missing something.
The basic concept is that I am searching thru a DINT Array of tags and comparing it against a blank DINT Array looking for the first instance where both arrays have a value of zero. This portion of the FSC is working correctly as it stops at the first instance and I see on the FSC Instruction what position it stopped at when the search was equal.
Now here is where I am looking for some help with the FSC Instruction. So with my DINT[32], after execution of the FSC the Position listed is 4. So I know that in my DINT[32], I will call it Tag[32], and at Position Tag[4] is where my FSC stopped searching. Is there any way to capture the tag associated with the Position.....i.e Tag[4]???
I am not interested in the value at the Position, which in this case would be four. I am more interested in the Tag that corresponds to the Position of the FSC Instruction....which again in this example would be Tag[4]. Thanks
The basic concept is that I am searching thru a DINT Array of tags and comparing it against a blank DINT Array looking for the first instance where both arrays have a value of zero. This portion of the FSC is working correctly as it stops at the first instance and I see on the FSC Instruction what position it stopped at when the search was equal.
Now here is where I am looking for some help with the FSC Instruction. So with my DINT[32], after execution of the FSC the Position listed is 4. So I know that in my DINT[32], I will call it Tag[32], and at Position Tag[4] is where my FSC stopped searching. Is there any way to capture the tag associated with the Position.....i.e Tag[4]???
I am not interested in the value at the Position, which in this case would be four. I am more interested in the Tag that corresponds to the Position of the FSC Instruction....which again in this example would be Tag[4]. Thanks