宏代码编译出现如上错误,宏代码如下:
int MacroEntry()
{
unsigned short Buf[3];
ReadLocal("LW", 0, 3, (void*)Buf, 0);
if (Buf[0]!=WR1[0] || Buf[1]!=WR1[1]) Refresh=1;
else Refresh=0;
Buf[0]=WR1[0];
Buf[1]=WR1[1];
Buf[2]=WR1[2];
WriteLocal("LW", 0, 3, (void*)Buf, 0);
return 0;
}
另外,有个奇怪现象:每次通讯都得先把485电缆拔了再插上才正常,不知为何?