App - 13 App - 13
MELSEC-F
APPENDIX
case
ERROR_BIND:
printf("Failed to bind.");
break;
case
ERROR_CONNECT:
printf("Failed to establish connection.");
break;
case
ERROR_SEND:
printf("Sending
failed.");
break;
case
ERROR_RECIEVE:
printf("Receiving
failed.");
break;
case
ERROR_SHUTDOWN:
printf("Failed
to
shutdown.");
break;
case
ERROR_CLOSE:
printf("Failed to close normally.");
break;
}
}
printf("Error code is %d.\n", nErrorStatus);
if(Closeflag==FLAG_ON){
nErrorStatus=shutdown(socketno,2);
// Shutdown processing
nErrorStatus=closesocket(socketno); //
Close
processing
Closeflag=FLAG_OFF;
// Connection completion flag off
}
printf("Press any key to exit the program.\n");
Dmykeyin=getchar();
// Wait for a key input
WSACleanup();
//
Release
Winsock.DLL
return;
}
Содержание FX3U-ENET
Страница 1: ...USER S MANUAL FX3U ENET ...
Страница 2: ......
Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Страница 297: ......