下载此文档

台达PLC通信协议.doc


文档分类:通信/电子 | 页数:约15页 举报非法文档有奖
1/15
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/15 下载此文档
文档列表 文档介绍
:RS-municationProtocolASCIImode,9600(Baudrate),EVEN(Parity),1(Startbit),1(municationDataFrameSTXStartcharacter‘:’(3AH)municationaddress:ADR08-mandcode:CMD08-mandconsistsof2ASCIIcodesDATA(0)Contentsofdata:DATA(1)n´8-bitdataconsistof2nASCIIcodes.……….n£37,maximumof74ASCIIcodesDATA(n-1)hecksum:HK08-bitchecksumconsistsof2ASCIIcodesEND1Endcharacter:END0END1=CR(0DH),END0=LF(0AH)municationAddress)municationaddressesareintherangeof0…municationaddressequalsto0meansbroadcasttoallPLC,:(ADR1,ADR0)=’1’,’0’ð’1’=31H,‘0’=mandcode)andDATA(datacharacters),(Hex)mandcode03StartingAddressHi06StartingAddressLo14NumberofPointsHi00NumberofPointsLo08ErrorCheck(LRC)DANumberofPoints(max)=18(for16bitregister)=9(for32bitregister)Example:ReadingCoilsT20~T27fromslavedevice01PC→PLC“:0**********DACRLF”PLC→PC“:01031000010002000300040005000600070008B8CRLF”FieldNameExample(Hex)mandcode03BytesCount10DataHi(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)HK(checksum)LRC(LongitudinalRedundancyCheck)iscalculatedbysummingup,module256,thevaluesofthebytesfromADR1tolastdatacharacterthencalculatingthehexadecimalrepresentationofthe2’,reading1wordformaddress0401HofthePLCwithaddress01HSTX‘:’ADR1‘0’ADR0‘1’CMD1‘0’CMD0‘3’Startingdataaddress‘0’‘4’‘0’‘1’Numberofdata‘0’‘0’‘0’‘1’HK1‘F’HK0‘6’END1CREND0LF01H+03H+04H+01H+00+01H=0AHthe2’plementnegationof0AHisF6HExceptionresponse:;

台达PLC通信协议 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数15
  • 收藏数0 收藏
  • 顶次数0
  • 上传人2072510724
  • 文件大小378 KB
  • 时间2020-10-27