Loop:
SerIn pin1,T9600,500 Jumpout,SerialData 'get serial data from Pin1,
'store it in variable "SerialData"
Jumpout:

SerOut pin2,T9600,[SerialData] 'send the variable to a terminal to
'view the variable value on screen.

GoTo Loop 'do it forever.
The added code in red, wait for 500 ms the data, then jump to label JUMPOUT executing the serout command.

Al.