By the example Jerry has given, the buffer would hold the ASCII values of the numbers you are interested. You then have to convert the ASCII strings to numbers.

Also note that your st and sp numbers are limited to 0-65535 range since they are WORD variables. If they can get values of more than this, PBP 2.50 might help you, I am not sure since I did not upgraded yet.

Another option is to use the SKIP modifier of the SERIN2 and HSERIN commands but this might mess things since common characters are appearing inside the string two times. The 't=' and 'st=' could confusse the modifier if timing is lost.

Ioannis