ML 1400
This is what the string looks like I get it in and some times the controller will give me a error some times my ladder will stop executing without a error .
The $GGA sentence normally finishes with a check sum. From what I remember you have to XOR each character in the sentence, then if your calculated checksum doesn't equal the $GGA check sum you can throw away the data. I have done this in C on an embedded Linux computer but not in a PLC. Before that I also checked that the characters received were alphanumeric characters, spaces or punctuation.
Based on PLC-5 operations I can think of two ways.
Create and maintain another string with a value of 82 spaces, or your character of choice. Copy this blank string into the bad one.
Set the length parameter of the bad string to zero (CLR ST9:X.LEN). The data still resides in the string but any instructions which reference the string will assume it has no data because of the length parameter.