台达PLC通信协议

上传人:仙*** 文档编号:91834185 上传时间:2022-05-17 格式:DOC 页数:17 大小:313KB
收藏 版权申诉 举报 下载
台达PLC通信协议_第1页
第1页 / 共17页
台达PLC通信协议_第2页
第2页 / 共17页
台达PLC通信协议_第3页
第3页 / 共17页
资源描述:

《台达PLC通信协议》由会员分享,可在线阅读,更多相关《台达PLC通信协议(17页珍藏版)》请在装配图网上搜索。

1、-DELTA DVP Series PLCMUNICATION PROTOCOL VER 1.01. munication Interface: RS-232C2. munication Protocol ASCII mode, 9600(Baud rate), EVEN(Parity), 1(Start bit),1(Stop bit)3. munication Data FrameST*Start character :(3AH)ADR 1munication address:ADR 0 8-bit address consists of 2 ASCII codesCMD 1mand co

2、de:CMD 08-bit mand consists of 2 ASCII codesDATA(0)Contents of data:DATA(1)n8-bit data consist of 2n ASCII codes. . n37, ma*imum of 74 ASCII codesDATA(n-1)LRC CHK 1LRC check sum:LRC CHK 08-bit check sum consists of 2 ASCII codesEND 1End character:END 0END 1 = CR(0DH),END 0 = LF(0AH)n ADR(munication

3、Address)Valid munication addresses are in the range of 031. munication address equals to 0 means broadcast to all PLC, the PLC will reply normal message to the master device. For e*ample, munication to PLC with address 16 decimal:(ADR 1, ADR 0)=1,01=31H, 0 = 30Hn CMD (mand code) and DATA (data chara

4、cters)The format of data characters depends on the mand code. For e*ample, reading continuous 8 words form starting device address 0614H of PLC with address 01H.Field NameE*ample (He*)Heading3ASlave Address01mand code03Starting Address Hi 06Starting Address Lo 14Number of Points Hi00Number of Points

5、 Lo08Error Check ( LRC )DANumber of Points(ma*) = 18(for 16 bit register)= 9(for 32 bit register)E*ample:Reading Coils T20T27 from slave device 01PCPLC “:01 03 06 14 00 08 DA CR LF”PLCPC “:01 03 10 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 B8 CR LF”Field NameE*ample (He*)Slave Address01mand co

6、de03Bytes Count10Data Hi(T20)00Data Lo(T20)01Data Hi(T21)00Data Lo(T21)02Data Hi(T22)00Data Lo(T22)03Data Hi(T23)00Data Lo(T23)04Data Hi(T24)00Data Lo(T24)05Data Hi(T25)00Data Lo(T25)06Data Hi(T26)00Data Lo(T26)07Data Hi(T27)00Data Lo(T27)08Error Check(LRC)C8n LRC CHK(check sum)LRC (Longitudinal Red

7、undancy Check) is calculated by summing up, module 256, the values of the bytes from ADR1 to last data character then calculating the he*adecimal representation of the 2s-plement negation of the sum. For e*ample, reading 1 word form address 0401H of the PLC with address 01HST*:ADR 10ADR 01CMD 10CMD

8、03Starting data address0401Number of data0001LRC CHK 1FLRC CHK 06END 1CREND 0LF01H+03H+04H+01H+00+01H = 0AHthe 2s-plement negation of 0AH is F6HE*ception response:The PLC is been e*pected to return a normal response after receiving mand messages from the master device. The following depicts the cond

9、itions that no normal response is replied to the master device.The PLC does not receive the messages due to a munication error; thus the PLC has no response. The master device will eventually process a timeout condition.The PLC receives the messages without a munication error, but cannot handle it,

10、an e*ception response will return to the master device. In the e*ception response, the most significant bit of the original mand code is set to 1, and an e*ception code e*plains the condition that caused the e*ception is returned.An e*ample of e*ception response of mand code 01H and e*ception 02H:ma

11、nd message:Field NameE*ample (He*)Heading3ASlave Address01Function01Starting Address Hi 04Starting Address Lo 00Number of Points Hi00Number of Points Lo10Error Check ( LRC )EAResponse message:Field NameE*ample (He*)Heading3ASlave Address01Function81E*ception Code 02Error Check ( LRC )7CE*ception cod

12、e:Meaning:01Illegal mand code:The mand code received in the mand message is not available for the PLC.02Illegal device address:The device address received in the mand message is not available for the PLC.03Illegal device value:The device value received in the mand message is not available for the PL

13、C.07Check Sum ErrorCheck if the check Sum is correctIllegal mand messagesThe mand message is too short.mand message length is out of range.u The format of data characters depends on the mand. The available mand codes are described as followed, CodeNameDescription01Read Coil StatusS, Y, M, T, C02Read

14、 Input StatusS, *, Y, M,T, C03Read Holding RegistersT, C, D05Force Single CoilS, Y, M, T, C06Preset Single RegisterT, C, D15Force Multiple CoilsS, Y, M, T, C16Preset Multiple RegisterT, C, D17Report Slave ID NoneDELTA DVP-ES Series PLC DEVICE ADDRESSDeviceRangeEffective RangeAddressS0002550001270000

15、00FFS256511010001FFS512767020002FFS7681023030003FF*000377 (Octal)000177 (Octal)040004FFY000377 (Octal)000177 (Octal)050005FFT000255000127060006FFM00025500001279080008FFM256511090009FFM5127670A000AFFM76810230B000BFFM102412790C000CFFC0002550001272322550E000EFFD00025500059910001143100010FFD256511110011

16、FFD512767120012FFD7681023130013FFD10241279140014FFmand Code:01, Read Coil StatusField NameE*ample (He*)Heading3ASlave Address01mand code01Starting Address Hi 06Starting Address Lo 14Number of Points Hi00Number of Points Lo25Error Check ( LRC )BFNumber of Points(ma*) = 255 = 0*00FFE*ample:Reading Coi

17、ls T20T56 from slave device 01PCPLC “:01 01 06 14 00 25 BF CR LF”PLCPC “:01 01 05 CD 6B B2 0E 1B D6 CR LF”Field NameE*ample (He*)Slave Address01mand code01Bytes Count05Data(Coils T27T20)CDData(Coils T35T38)6BData(Coils T43T36)B2Data(Coils T51T44)0EData(Coils T56T52)1BError Check(LRC)E6n mand Code:02

18、, Read Input StatusField NameE*ample (He*)Heading3ASlave Address01mand code02Starting Address Hi 05Starting Address Lo 14Number of Points Hi00Number of Points Lo25Error Check ( LRC )BFE*ample:Reading Contact Y024Y070 from slave device 01PCPLC “:01 02 05 14 00 25 BF CR LF”PLCPC “:01 02 05 CD 6B B2 0E

19、 1B E5 CR LF”Field NameE*ample (He*)Slave Address01mand code02Bytes Count05Data(Coils Y033Y024)CDData(Coils Y043Y034)6BData(Coils Y053Y044)B2Data(Coils Y063Y054)0EData(Coils Y070Y064)1BError Check(LRC)E5n mand Code:03, Read Holding RegisterHolding Register:T, C, DField NameE*ample (He*)Heading3ASlav

20、e Address01mand code03Starting Address Hi 06Starting Address Lo 14Number of Points Hi00Number of Points Lo08Error Check ( LRC )DANumber of Points(ma*) = 18(for 16 bit register)= 9(for 32 bit register)E*ample:Reading Coils T20T27 from slave device 01PCPLC “:01 03 06 14 00 08 DA CR LF”PLCPC “:01 03 10

21、 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 B8 CR LF”Field NameE*ample (He*)Slave Address01mand code03Bytes Count10Data Hi(T20)00Data Lo(T20)01Data Hi(T21)00Data Lo(T21)02Data Hi(T22)00Data Lo(T22)03Data Hi(T23)00Data Lo(T23)04Data Hi(T24)00Data Lo(T24)05Data Hi(T25)00Data Lo(T25)06Data Hi(T26)

22、00Data Lo(T26)07Data Hi(T27)00Data Lo(T27)08Error Check(LRC)C8n mand Code:05, Force Single CoilField NameE*ample (He*)Heading3ASlave Address01mand code05Coil Address Hi 05Coil Address Lo 00Force Data HiFFForce Data Lo00Error Check ( LRC )F6MMNN = 0*FF00.Coil ONMMNN = 0*0000.Coil OFF E*ample:Forcing

23、Coil Y000 ONPCPLC “:01 05 05 00 FF 00 F6 CR LF”PLCPC “:01 05 05 00 FF 00 F6 CR LF”Field NameE*ample (He*)Heading3ASlave Address01mand code05Coil Address Hi 05Coil Address Lo 00Force Data HiFFForce Data Lo00Error Check ( LRC )F6n mand Code:06, Preset Single RegisterField NameE*ample (He*)Heading3ASla

24、ve Address01mand code06Register Address Hi 06Register Address Lo 00Preset Data Hi12Preset Data Lo34Error Check ( LRC )ADE*ample:Setting Register T0 to 00 03PCPLC “:01 06 06 00 12 34 AD CR LF”PLCPC “:01 06 06 00 12 34 AD CR LF”Field NameE*ample (He*)Heading3ASlave Address01mand code06Register T0 Addr

25、ess Hi 06Register T0 Address Lo 00Preset Data Hi12Preset Data Lo34Error Check ( LRC )ADSwitch ( c )Case 0:T0Q :01 06 06 00 12 34 AD CR LFCase 1:C0Q :01 06 0E 00 12 34 AF CR LFCase 2:C232Q :01 06 0E E8 12 34 56 78 EF CR LFCase 3:D10Q :01 06 10 0A 12 34 99 CR LFCase 4:D1000Q :01 06 13 E8 12 34 BA CR L

26、Fn mand Code:15, Force Multiple CoilsField NameE*ample (He*)Heading3ASlave Address01mand code0FCoil Address Hi05Coil Address Lo00Quantity of Coils Hi00Quantity of Coils Lo0AByte Count02Force Data HiCDForce Data Lo01Error Check (LRC)11Quantity of Coils (ma*) = 255E*ample:Setting Coil Y007Y000 = 1100

27、1101, Y011Y010 = 01.PCPLC “:01 0F 05 00 00 0A 02 CD 01 11 CR LF”PLCPC “:01 0F 05 00 00 0A E1 CR LF”Field NameE*ample (He*)Heading3ASlave Address01mand code0FRegister T0 Address Hi 05Register T0 Address Lo 00Preset Data Hi00Preset Data Lo0AError Check ( LRC )E1n mand Code:16, Preset Multiple Register

28、Field NameE*ample (He*)Heading3ASlave Address01mand code10Starting Address Hi 06Starting Address Lo 00Number of Register Hi00Number of Register Lo02Byte Count04Data Hi00Data Lo0AData Hi01Data Lo02Error Check (LRC)C6Number of Register(ma*) = 16(for 16 bit register)= 8(for 8 bit register)E*ample:Setti

29、ng Register T0 to 00 0A, T1 to 01 02.PCPLC “:01 10 06 00 02 00 04 00 0A 01 02 D6 CR LF”PLCPC “:01 10 06 00 00 02 E7 CR LF”Field NameE*ample (He*)Heading3ASlave Address01mand code10Starting Address Hi 06Starting Address Lo 00Number of Registers Hi00Number of Registers Lo02Error Check ( LRC )E7n mand

30、Code:17, Report Slave IDReturns a description of controller present at the slave address, the current status of the slave Run indicator, and other information specific to the slave device.mand message:Field NameE*ample (He*)Heading3ASlave Address01mand code11Error Check (LRC)EEResponse message:Field

31、 NameE*ample (He*)Heading3ASlave Address01mand code11Byte Count04Slave ID01Run Indicator Status00 = OFFFF = ONFFData 0(D1001 HI)40Data 1(D1001 LOW)10Error Check (LRC)9An DVP Series PLC Internal Device munication AddressDeviceRangeTypeAddressEffective rangeES/E*/SSSA/S*/SHEHS000255bit000000FF01270102

32、401024S246511bit010001FFS512767bit020002FFS7681023bit030003FF*000377 (Octal)bit040004FF01770177000377Y000377 (Octal)bit050005FFT000255bit/word060006FF 0127000255000255M000255bit080008FF012790409500004095M256511bit090009FFM512767bit0A000AFFM7681023bit0B000BFFM10241279bit0C000CFFM12801535bit0D000DFFM1

33、5361791bitB000B0FFM17922047bitB100B1FFM20482303bitB200B2FFM23042559bitB300B3FFM25602815bitB400B4FFM28163071bitB500B5FFM30723327bitB600B6FFM33283583bitB700B7FFM35843839bitB800B8FFM38404095bitB900B9FFC019916-bitbit/word0E000EC701270199019920025532-bitbit/Dword0EC80EFF232255200255200255DeviceRangeTypeA

34、ddressEffectiveES/E*/SSSA/S*/SHEHD000256word100010FF013110499900009999D256511word110011FFD512767word120012FFD7681023word130013FFD10241279word140014FFD12801535word150015FFD15361791word160016FFD17922047word170017FFD20482303word180018FFD23042559word190019FFD25602815word1A001AFFD28163071word1B001BFFD307

35、23327word1C001CFFD33283583word1D001DFFD35843839word1E001EFFD38404095word1F001FFFD40964351word900090FFD43524607word910091FFD46084863word920092FFD48645119word930093FFD51205375word940094FFD53765631word950095FFD56325887word960096FFD58886143word970097FFD61446399word980098FFD64006655word990099FFD66566911word9A009AFFD69127167word9B009BFFD71687423word9C009CFFD74247679word9D009DFFD76807935word9E009EFFD79368191word9F009FFFD81928447wordA000A0FFD84488703wordA100A1FFD87048959wordA200A2FFD89609215wordA300A3FFD92169471wordA400A4FFD94729727wordA500A5FFD97289983wordA600A6FFD99849999wordA700A70F. z.

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!