1 / 22
文档名称:

台达PLC的通讯协议.doc

格式:doc   大小:43KB   页数:22页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

台达PLC的通讯协议.doc

上传人:q1188830 2020/1/9 文件大小:43 KB

下载得到文件列表

台达PLC的通讯协议.doc

文档介绍

文档介绍:台達PLC的通讯协议是公开的,只要对该协议有清楚理解,所有台达产品的通讯问题迎刃而解,下面是协议全文:municationInterface:RS-municationProtocolASCIImode,9600(Baudrate,EVEN(Parity,1(Startbit,1(municationDataFrameSTXStartcharacter…:‟(municationaddress:ADR08-mandcode:CMD08-mandconsistsof2ASCIIcodesDATA(0Contentsofdata:DATA(1n´8-bitdataconsistof2nASCIIcodes.……….n£37,maximumof74ASCIIcodesDATA(n-hecksum:HK08-bitchecksumconsistsof2ASCIIcodesEND1Endcharacter:END0END1=CR(0DH,END0=LF(municationaddressesareintherangeof0…municationaddressequalsto0meansbroadcasttoallPLC,:(ADR1,ADR0=‟1‟,‟0‟ð‟1‟=31H,…0‟=mandcodeandDATA(,(mandcode03StartingAddressHi06StartingAddressLo14NumberofPointsHi00NumberofPointsLo08ErrorCheck(LRCDANumberofPoints(max=18(for16bitregister=9(for32bitregisterExample:ReadingCoilsT20~T27fromslavedevice01PC→PLC“:0**********DACRLF”PLC→PC“:01031000010002000300040005000600070008B8CRLF”FieldNameExample(mandcode03BytesCount10DataHi(T2000DataLo(T2001DataHi(T2100DataLo(T2102DataHi(T2200DataLo(T2203DataHi(T2300DataLo(T2304DataHi(T2400DataLo(T2405DataHi(T2500DataLo(T2506DataHi(T2600DataLo(T2607DataHi(T2700DataLo(T2708ErrorCheck(HK(checksumLRC(LongitudinalRedundancyCheckiscalculatedbysummingup,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:;,butcannothandleit,anexceptionresponsewillreturntothemasterde