linuxcncrsh tcp 接受端
連接的IP 端口5007
輸入:help
返回:
Available commands:
Hello <password> <client name> <protocol version>
Get <emc command>
Set <emc command>
Shutdown
Help <command>
默認登錄:
hello EMC default 0.1
返回:
HELLO ACK EMCNETSVR 1.1
使用SET 命令時需要注意:
/****大於scIinFile命令需要解鎖後操作 (set enable EMCTOO) ****/
if ((cmd >= scIniFile) && (context->cliSock != enabledConn)) {
/****大於scIinFile命令需要解鎖後操作****/
sprintf(context->outBuf, setCmdNakStr, pch);
return write(context->cliSock, context->outBuf, strlen(context->outBuf));
}