S7-300 Equivalent of Clgx FSC

curlyandshemp

Lifetime Supporting Member
Join Date
Jul 2005
Location
Toronto
Posts
1,903
I am relatively new to the S7-300 family, but have over 15 years S5 experience and 6 years Contrologix experience.

I have an app in S7 , where I need to lookup up a product text description based on a DINT product code entered via an HMI. In the Clgx world, I would have 2 arrays set up to do this, one array of DINTs would be filled with all the valid product codes, and another array of STRINGS would be filled with the text descriptions. DINT[1] would correspond with STRING[1], DINT[2] with STRING[2] ...etc.I would use the FSC ( File Search and Compare ) instruction to find the position of the valid entered product code in the DINT array. The element position of the found product code would give me the index value to point into the array of STRINGS to acquire the text description.

I cannot seem to find any S7-300 equivalent instruction, or a standard function block to perform the same. Has anyone else done this before?

Thanks

Ian
 
I'm not at my machine at the moment, but keep looking as there is one, I used it myself last year, if I get a chance later this evening, I'll post the FB address.
 
There is a standard block in the library, I do believe its an FB not a SFB or SFC, trouble is the libraries are large to search through.


I used it last year, when looking for a word in a table with zero value, it was easy and worked.
 
Just a thought as it seems not a common name, Neil works in Leicester, which isn't a million miles away from Bedford.

Just another thought, Aberdeen's not a million miles away either.
 

Similar Topics

I have started a new thread for this discussion. Previously I asked: If you were migrating from quantum to siemens, would the equivalent siemens...
Replies
20
Views
6,235
I am looking to see if anyone has any blocks that are the equivalent the RS-Logix 5000 scale and limit blocks, or if the S-7 library has blocks to...
Replies
16
Views
6,427
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
30
Hi Siemens guys! I am experiencing SF fault on our S7-300 (6ES7 315-2AH14-0AB0) CPU from time to time. I've checked the diagnostic buffer and...
Replies
13
Views
172
Have a system that has been running for over a year and all of a sudden getting a ExcessiveVelocityFault on one of the drives when the MSO command...
Replies
2
Views
144
Back
Top Bottom