Can anyone help me with an issue I ran into? I have a conversion from a PLC5 to a L72S. The PLC5 used a String Search (ASC) with an index to search an array of strings. I dont want to stray too far from the original code, and really don't want to modify the data in the array since it is used in other locations. I am facing some issues with the converted code.
1. I need to use an index to search and compare one string tag to another array of strings. I then attempt to use the File Search Compare (FSC) instruction.
2. The individual strings within the array contain more data than the comparison string. So I need to only compare the first 6 elements of the string tags. I don't think I can use the FSC since it will not be an exact match.
3. I try to use a Find String (FIND) since I can find the location within the string, but I can't use the index to search through all the string tags in the array.
I am stuck, please help I would love any and all suggestions!
1. I need to use an index to search and compare one string tag to another array of strings. I then attempt to use the File Search Compare (FSC) instruction.
2. The individual strings within the array contain more data than the comparison string. So I need to only compare the first 6 elements of the string tags. I don't think I can use the FSC since it will not be an exact match.
3. I try to use a Find String (FIND) since I can find the location within the string, but I can't use the index to search through all the string tags in the array.
I am stuck, please help I would love any and all suggestions!
Last edited: