起始发送:prococol = "start,1001,0,0,0,0,0,0,0,0,2,100.123,100.456,77.85,000000,end";
收到任务1:"start,1001,1,4,4,2,1,3,0,0,0,00000000,end"
25R发送-0:prococol = "start,1001,1,4,4,2,1,3,0,0,0,100.123,100.456,77.85,000000,end";
25R发送-1:prococol = "start,1001,1,4,4,2,1,3,0,0,1,100.123,100.456,77.85,000000,end";
25R发送-2:prococol = "start,1001,1,4,4,2,1,3,0,0,2,100.123,100.456,77.85,000000,end";
注释:收到任务1指令,立即返回[25R发送-0],收到任务后不会再接收,接着发送[25R发送-1],完成后发送[25R发送-2].
收到任务2:"start,1001,2,6,1,2,3,4,5,6,0,00000000,end"
25R发送-0:prococol = "start,1001,2,6,1,2,3,4,5,6,0,100.123,100.456,77.85,000000,end";
25R发送-1:prococol = "start,1001,2,6,1,2,3,4,5,6,1,100.123,100.456,77.85,000000,end";
25R发送-2:prococol = "start,1001,2,6,1,2,3,4,5,6,2,100.123,100.456,77.85,000000,end";
注释:收到任务2指令,立即返回[25R发送-0],收到任务后不会再接收,接着发送[25R发送-1],完成后发送[25R发送-2].
收到任务3:"start,1001,3,6,31,33,22,11,32,21,0,00000000,end"
25R发送-0:prococol = "start,1001,3,6,31,33,22,11,32,21,0,100.123,100.456,77.85,000000,end";
25R发送-1:prococol = "start,1001,3,6,31,33,22,11,32,21,1,100.123,100.456,77.85,000000,end";
25R发送-2:prococol = "start,1001,3,6,31,33,22,11,32,21,2,100.123,100.456,77.85,000000,end";
注释:收到任务3指令,立即返回[25R发送-0],收到任务后不会再接收,接着发送[25R发送-1],完成后发送[25R发送-2].
收到任务4:"start,1001,4,6,1,2,3,4,5,6,0,00000000,end"
25R发送-0:prococol = "start,1001,4,6,1,2,3,4,5,6,0,100.123,100.456,77.85,000000,end";
25R发送-1:prococol = "start,1001,4,6,1,2,3,4,5,6,1,100.123,100.456,77.85,000000,end";
25R发送-2:prococol = "start,1001,4,6,1,2,3,4,5,6,2,100.123,100.456,77.85,000000,end";
注释:收到任务4指令,立即返回[25R发送-0],收到任务后不会再接收,接着发送[25R发送-1],完成后发送[25R发送-2].
来源:CSDN
作者:史文天带你看世界
链接:https://blog.csdn.net/u011624903/article/details/103471907