#module
#include "pcbnet2.as"
#deffunc httpsend str host,str send
tcpopen id,host,80
if stat:return 1
repeat
await 5
tcpiscon id
if stat : break
loop
if stat!1:tcpclose id:return 2
tcpput send,id
repeat 50
wait 1
tcpfail id
if stat:break
loop
tcpcount datasize,id
sdim s,datasize
tcprecv s,0,datasize,id
return s
#global

httpsend "www.google.co.jp",header
mes stat

モジュール内でpcbnet使って通信したいんですが
tcpopen命令のとこで初期化エラーが発生してreturn1になってしまいます なんで?