欢迎来到天天文库
浏览记录
ID:37905142
大小:94.50 KB
页数:13页
时间:2019-06-02
《SMART64H串口协议说明》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、UARTSEND_COMMAND(UART_COMMAND)0LEARNING发送3字节:[Space]+[(1)+(0
2、1)+(FunctionCode)]+[CR]参数设定:UART_COMMAND=LEARNING;MEMORY_BANK_Use=bank0;learning_activate=1;返回值(4字节)BANK0“OK09”9对应(FunctionCode)当SMART64没有接收到CR字符,则返回1(ASCII31)1CONTROL发送3字节:[Space]+[(1)+(Functi
3、onCode)]+[CR]参数设定:UART_COMMAND=CONTROL;MEMORY_BANK_Use=bank0;返回值(28字节)传感器个数:3字节ASCII码(百位-十位-个位)报警的传感器个数:3字节ASCII(百位-十位-个位)报警类型:3字节ASCII00=Noalarm01=Brokenyarn(Broke)02=Uncutyarn(Uncut)03=AST(Anti-snatchSensor)04=Overmemory05=Sensordoesnotanswer06=PhaseEr
4、ror07=RamErrorAST设备错误数:3字节ASCII码(百位-十位-个位)LED灯的状态:3字节ASCII码第三个字节要转换成二进制数bit0=1ZERO-SOCKLed(ZEROPOSITION)activebit1=1PRXPULSESLed(SYNCHRONISM)activebit2=1STOPCHAINLed(REPEAT)activebit3=1LEARNINGLed(LEARN)activebit4=1CONTROLLed(CONTROL)activebit5=1ACTIVESE
5、RIALLed(COM.PORTRS232)activebit6=1NEXTCYCLELed(NEXTCYCLE)activebit7=1ACTIVEALARMLed(STOP/ALARM)activeZERO-SOCK的极性:3字节ASCII码00=Negativepolarity(N)ZERO-SOCK01=Positivepolarity(P)ZERO-SOCK软件版本:3字节ASCII码Example:30meansversion3.0Controlmemorybanknumber:1字节ASC
6、II码Learningmemorybanknumber:1字节ASCII码CHECKSUM:5字节ASCII码前面所有传送的校验和当SMART64没有接收到CR字符,则返回1(ASCII31)2CONTROL_SELECTION发送3字节:[Space]+[(1)+(FunctionCode)]+[CR]参数设定:UART_COMMAND=CONTROL_SELECTION;MEMORY_BANK_Use=bank0;返回值BANK0“OK78”78对应(FunctionCode)当SMART64没有接
7、收到CR字符,则返回1(ASCII31)3SETUP_READING发送3字节:[Space]+[(1)+(FunctionCode)]+[CR]参数设定:UART_COMMAND=SETUP_READING;返回值容许最大断纱(TH):192字节ASCII码(百位-十位-个位)(64组)容许最小断纱(TL):192字节ASCII码(百位-十位-个位)(64组)容许最大未剪纱(TH):192字节ASCII码(百位-十位-个位)(64组)容许最小未剪纱(TL):192字节ASCII码(百位-十位-个位)(
8、64组)传感器灵敏度:192字节ASCII码(百位-十位-个位)(64组)传感器反应时间:192字节ASCII码(百位-十位-个位)(64组)起始频率:3字节ASCII码(百位-十位-个位)结束频率:3字节ASCII码(百位-十位-个位)自动计算送料编号:3字节ASCII码SMART类型码:3字节ASCII码CHECKSUM:5字节ASCII码校验码当SMART64没有接收到CR字符,则返回1(ASCII31)4UNCUT_YARN(每次返回1待测试)Thiscommandallowsyoutoprog
9、ramtheuncutyarn(runningbymistake)toleranceofeachsensor:TH(MaxTolerance)andTL(MinTolerance)valuesof64sensorsmanagedbySMART64IEX.发送131字节:[Space]+[(1)+(0
10、1)+(FunctionCode)]+[Data]+[CR]参数设定:UART_COMMAND=UNCUT_YARN;uncut_alarm_
此文档下载收益归作者所有