First Thank you for the help on this issue. Sorry it has taken me so long to get back to this one, I was waiting on the customer. I have used the code provided and I am now getting an error when I try and run the solution. Here is the error...
System.ArgumentException
HResult=0x80070057
Message=Destination array is not long enough to copy all the items in the collection. Check array index and length.
Source=mscorlib
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt64(Byte[] value, Int32 startIndex)
at MfgControl.AdvancedHMI.frmManual.ExtractString(String s) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMI\frmManual.vb:line 64
at MfgControl.AdvancedHMI.frmManual.BasicLabel1_ValueChanged(Object sender, EventArgs e) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMI\frmManual.vb:line 57
at AdvancedHMIControls.BasicLabel.OnvalueChanged(EventArgs e) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMIControls\Controls\BasicLabel.vb:line 729
at AdvancedHMIControls.BasicLabel.set_Value(String value) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMIControls\Controls\BasicLabel.vb:line 89
Any help would be great!
Thank you in advance
Also as an FYI...the PLC string a SINT with 82 bytes