台达PLC通信协议.doc

台达PLC通信协议.doc

ID:60989197

大小:378.50 KB

页数:15页

时间:2021-01-18

台达PLC通信协议.doc_第1页
台达PLC通信协议.doc_第2页
台达PLC通信协议.doc_第3页
台达PLC通信协议.doc_第4页
台达PLC通信协议.doc_第5页
资源描述:

《台达PLC通信协议.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、DELTADVPSeriesPLCCOMMUNICATIONPROTOCOLVER1.01.CommunicationInterface:RS-232C2.CommunicationProtocolASCIImode,9600(Baudrate),EVEN(Parity),1(Startbit),1(Stopbit)3.CommunicationDataFrameSTXStartcharacter‘:’(3AH)ADR1Communicationaddress:ADR08-bitaddressconsistsof2ASCIIcodesC

2、MD1Commandcode:CMD08-bitcommandconsistsof2ASCIIcodesDATA(0)Contentsofdata:DATA(1)n´8-bitdataconsistof2nASCIIcodes.……….n£37,maximumof74ASCIIcodesDATA(n-1)LRCCHK1LRCchecksum:LRCCHK08-bitchecksumconsistsof2ASCIIcodesEND1Endcharacter:END0END1=CR(0DH),END0=LF(0AH)nADR(Communi

3、cationAddress)Validcommunicationaddressesareintherangeof0…31.Communicationaddressequalsto0meansbroadcasttoallPLC,thePLCwillreplynormalmessagetothemasterdevice.Forexample,communicationtoPLCwithaddress16decimal:(ADR1,ADR0)=’1’,’0’ð’1’=31H,‘0’=30HnCMD(Commandcode)andDATA(da

4、tacharacters)Theformatofdatacharactersdependsonthecommandcode.Forexample,readingcontinuous8wordsformstartingdeviceaddress0614HofPLCwithaddress01H.FieldNameExample(Hex)Heading3ASlaveAddress01Commandcode03StartingAddressHi06StartingAddressLo14NumberofPointsHi00NumberofPoin

5、tsLo08ErrorCheck(LRC)DANumberofPoints(max)=18(for16bitregister)=9(for32bitregister)Example:ReadingCoilsT20~T27fromslavedevice01PC→PLC“:010306140008DACRLF”PLC→PC“:01031000010002000300040005000600070008B8CRLF”FieldNameExample(Hex)SlaveAddress01Commandcode03BytesCount10Data

6、Hi(T20)00DataLo(T20)01DataHi(T21)00DataLo(T21)02DataHi(T22)00DataLo(T22)03DataHi(T23)00DataLo(T23)04DataHi(T24)00DataLo(T24)05DataHi(T25)00DataLo(T25)06DataHi(T26)00DataLo(T26)07DataHi(T27)00DataLo(T27)08ErrorCheck(LRC)C8nLRCCHK(checksum)LRC(LongitudinalRedundancyCheck)i

7、scalculatedbysummingup,module256,thevaluesofthebytesfromADR1tolastdatacharacterthencalculatingthehexadecimalrepresentationofthe2’s-complementnegationofthesum.Forexample,reading1wordformaddress0401HofthePLCwithaddress01HSTX‘:’ADR1‘0’ADR0‘1’CMD1‘0’CMD0‘3’Startingdataaddres

8、s‘0’‘4’‘0’‘1’Numberofdata‘0’‘0’‘0’‘1’LRCCHK1‘F’LRCCHK0‘6’END1CREND0LF01H+03H+04H+01H+00+01H=0AHthe2’s-c

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。