SR253通信协议(中文)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

CC2125A1.2.3.4.5.SRFP6.7.SRFP8.SR253.BASV2.09.#3BASICA10.PC,BASICA,SR25311.:..RS232.RS422/RS4851.,.2.10(words)BASICA.EXE-COMOPAQ.BASICSR253.BAS-SRFP.BAS-BASICSTAR253.BAS-BASICSR25DS232T.BAS-BASICPC232RS422WindowsWORDSPRINTSR253.doc2.1.:EIARS-232C,RS-422A,RS-485:RS-232C3,RS-422A4,RS-4852,:-:RS-232C15RS-422A1200*RS-4855200*:1200,2400,4800,9600,19200:1.7,,2.8,,7E1717E2827N171SR2532.10SR253SR253SR25SRFPSR25FP21,RS232CRS422ARS48519994SD3RD2GND5SD3RD2GND51RXDSD+102TXDSD-93GNDRD+8RD-7SG6RD+6RD-4SD+9SD-3GND57N2718E1818E2828N1818N282:ASCII:,3.3.1RS-232CRS232C93.2422:RS232C9RS232/RS422SR253422422422422SR253(1)SR253-(2)..SR50(32)RS422,(RDA)(RSD)RS422A,(SDA)(SDB)RS422A,,,,,,,,,(),ACK,,RS232,,,422RD3SD2SG7SD3RD2GND51RXD/TR+102TXD/SD-93GNDSG6+9-353.3485:RS232C9RS232/RS485SR253485485485/SR253-(1)SR50-(2)..SR50(32)RS485,(RDA)(RSD)(SDA)(SDB),,,,,(),,,,RS485,RS485,,,,,,,4.SR253,:SR253[5-5A]:00~99:120024004800960019200,7E17E27N17N28E18E28N18N27E1717E2827N1717N2718E1818E2828N1818N282Standard()SRFP(SR25/FP21)SR253[5-5B]EEPEEPROM:EEPROM10RAMRAM:STX_ETX_CRSTX_ETX_CRLF@_:_CRBCCAdd()Add_two’scmp()XOR()None()RS485:=*025mS:/5.standardSRFPSR253SR25SRFPSR25FP216.standard:6.1()()()()()()6-2.(1),.1)BCCbeijaSTX@0012c11dRW00130000f90g…,****hETX“:”E738CRCR..LF:::::a:STX(02H)@(40H),,:SR253[5-5B]STX_ETX_CRSTX_ETX_CRLF@_:_CRBASICAA),,10STX$=CHR$(2):ETX$=CHR$(3):CR$=CHR$(13);STX$=CHR$(2):ETX$=CHR$(3):CR$=CHR$(13):LF$=CHR$(10);STX_ETX_CRLFSTX$=@:ETX$=:CR$=CHR$(13);@_:_CRb::0099:SR253[5-5A]:0099.,c::SR253”1”:d::R-W-e:::0300(/).f::09R-,,10,.:R52H030H333H030H030H939H0300H0309H10W-,f0.(:)g::W,“,”“,”1234:W03000,****():R03000:10R03009:h:ETX“:”i:BCC():SR253[5-5A]BCCBCC()BCC,4BCC(1)BCC1:BCC():STX011R01009ETXE3CRLF02H+30H+31H+31H+52H+30H+31H+30H+30H+39H+03H=1E3H:SR253“LOC”:,”R”“COM”:,”R””W””W”“LOC”“COM”.SR253,SR253“LOC”,SR253(1E3H)=E3H:“E”=45H,:“3”=33HBASICABCC,CMD$/500STR$=STX$+”0011”:REM:.00520TEXT$=”R01009”:REM0100-0109550CMD$=STR$+TEX$+ETX$:REM560LEC=LEN(CMD$):BCC=0:REM570FORI=1TOLEC:S$=MID$(CMD$,I,1)580BCC=BCC+ASC(S$)590NEXT600BCC=BCCMOD256:REM8610BCC$=”0”+HEX$(BCC):BCC$=RIGHT$(BCC$,2):REMBCCASC620END$=ETX$+BCC$+CR$+LF$:REM:630TXD$=STX$+CMD$+END$:REM630RETURN(2)BCC2BCC():STX011R01009ETX1DCRLF02H+30H+31H+31H+52H+30H+31H+30H+30H+39H+03H=1E3HE3=1DHBASICABCC,CMD$/500STR$=STX$+”0011”:REM:.00520TEXT$=”R01009”:REM:0100-0109550CMD$=STR$+TEX$+ETX$:REM560LEC=LEN(CMD$):BCC=0:REM570FORI=1TOLEC:S$=MID$(CMD$,I,1)580BCC=BCC+ASC(S$)590NEXT600BCC=BCCMOD256:REM8605BCC=NOT(BCC):REMBCC610BCC$=”0”+HEX$(BCC):BCC$=RIGHT$(BCC$,2):REMBCCASC620END$=ETX$+BCC$+CR$+LF$:REM:630TXD$=STX$+CMD$+END$:REM640PRINT#1,TMD$:REM00650RETURN(3)BCC():ASCIISTX011R01009ETX21CRLF02H30H31H31H52H30H31H30H30H39H03H=59H==59HBASICABCC,CMD$/80CMD$=STR$+TEXT$+ETX$:REM85BC$=CMD$90GOSUB42095END$=ETX$+BCC$+CR$+LF$:REM:100TXD$=STX$+CMD$+END$:REM105PRINT#1,TMD$:REM00110STOP420BCC=ASC(LEFT$(BC$,1)):REM/BCC430L=LEN(BC$)440FORN=2TOL450BCC=BCCXORASC(MID$(BC$,N,1))460NEXTN470BCC$=”0”+HEX$(BCC):BCC$=RIGHT$(BCC$,2)480RETURN(4)BCC:BCC(,)6.3BCCbeijaSTX@0012c11dRW0000g(8),****…hETX1E738CRCRLF..::::():d:R,R.W,W.e:00,()g:”,”:(1)R,f0N“,”123412341234f(2)R,f=0:(1)::deW00(2):01-0C()deW09:()3)BCCASC.“R”(52H/):“W”(57H/):“R”“W””LOC”,,6.4:,14800960019200BPS212002400BPS,6.56.51/0~255ASCII000000000030H30H/000000010130H31H000001110730H37H000010000830H38H000010010930H39H000010100A30H41H000010110B30H42H000011000C30H43H26.6R/W/0100PVR0101E_SV,SVR0102OUT11-5.0105.0%R0103OUT22-5.0105.0%R0104R0105R0106SVNo.0SVNo.110REMR0107PIDNo0PIDNo.19PID10R0108REMR0109CTHBON0.033.0/55.0AR010ACTHLOFF0.033.0/55.0AR010BDIRTD:9(0.000~50.000),PVSVREM1/10PVSVPV=14.50,E_SV=20.00:STX02H030H131H131HR52H030H131H030H030H131HEXT03HD44HB42HCR0DHSR253:STX02H030H131H131HR52H030H030H,2CH030H535HA41HA41H030H737HD44H030HEXT03H333H737HCR0DHSC-HHREN-HHHB-HH=7FFFHSc-LLREM-LLHB-LL=8000HDI=0=1D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D00000000COMSTOPRMPESV0REMSTBYMANAT00000000DO5DO4DO3DO2DO1EV3EV2EV1DI000000000000D14D13D12D11EV1,EV3DO4D15,D14,D13,D12D11,D10,D9,D8D7,D6,D5,D4D3,D2,D1,D0:0H0H4H0HSTX02H030H131H131HR52H030H030H,2CH030H030H434H535HEXT03H333HE45HCR0DHCT____,HB=OFF,HL=ON=7FFEHR/W0110Unit0:1:2:%3:K4:NONER0111Range016:1718:015:06:mV06:V34:mA8-1R0112CJPt0:INTER1:EXTER0:Pt100()1:JPt100)R0113PVD.P.0:XXXXX1:XXXX.X2:XXX.XX3:XX.XXX4:X.XXXXR0114PVSc_LR0115PVSc_H:-1999926000:R0116Figur0:YES1:NOR0117USGN0:1:9Pt100/JPt1000.00050.000RR/W0180SVNo0SV110W0181SVQ0SV110,W0182OUT11W0183OUT12-0.5105.0%W0184AT0:1:W0185A/M/0:1:W0186Exe0:1:W0187REM0:1:W0188W0189W018AW018BRamping0:1:W018C0:1:W018D8-2COMDIRWSVNoCOMDIR-FLGD15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0COMDIR-FLG00000000DO5DO4DO3DO2DO1EV3EV2EV1R/W0200PV0201PVR0202SV0203SVR02040205R4/210200020202042135STX02H030H131H131HR52H030H030H,2CHF46HF46F46F46F46737838HD44HEXT03H333HE45HCR0DHSc-HHCJHHb----C----REM_HH=7FFFFFFHSc_LLCJLLREM_LL=80000000HR/W0300SVNo.1SVR/W0301SVNo.2SVR/W0302SVNo.3SVR/W0303SVNo.4SVR/W0304SVNo.5SVR/W0305SVNo.6SVR/W0306SVNo.7SVR/W0307SVNo.8SVR/W0308SVNo.9SVR/W0309SVNo.10SVR/W030ASVR/W030BSVR/W030C09999(0=OFF)R/W030D09999(0

1 / 48
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功