// script to output to other serial port var num:integer; if isfirstline then num:=getmachinenumber('Matsuura Twin 2'); s:=getioline; if pos('G28',s)>0 then begin output(s,num); wait(2000); end; if isLastLine then begin output(#20,num); end;