正常连接(一次断后重连)
CONNECT Robot_access\r\n
无限连接
CONNECT Robot_access Keep-Alive:-1\r\n
1. 读 B 变量
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST SAVEV 5\r\n
0,10\r
2. 写 B 变量
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST LOADV 7\r\n
0,10,1\r
3. 读 P 变量
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST SAVEV 5\r\n
4,10\r
4. 写 P 变量
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST LOADV 52\r\n
4,10,1,0,1.000,2.000,3.000,1.0000,2.0000,3.0000,0,0\r
5. 读 IO
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST IOREAD 8\r\n
27010,8\r
6. 写 IO
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST IOWRITE 10\r\n
27010,8,255\r
7. 开始(START)
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST START 10\r\n
(JOB_NAME)\r (从指定程序头开始运行)
或者
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST START 0\r\n(直接从当前程序行开始运行)
8. 暂停(HOLD)
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST HOLD 2\r\n
1\r (ON) 0\r (OFF)
9. 伺服启动
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST SVON 2\r\n
1\r (ON) 0\r (OFF)
10. 报警清除
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST CANCEL 0\r\n
11. 模式切换
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST MODE 2\r\n
1\r
12. 程序调用
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST JSEQ \r\n
(JOB_NAME), (JOB_LINE)\r
CONNECT Robot_access\r\n HOSTCTRL_REQUEST JSEQ 6\r\n
777, 0\r
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST SVON 2\r\n
1\r
CONNECT Robot_access\r\n
HOSTCTRL_REQUEST START 0\r\n
新闻中心