台达PLC通信协议
《台达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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 三基培训ppt课件--抗生素的分类及临床应用
- 三年级科学上册3.2《果实累累的季节》-ppt课件大象版
- 《离子键》ppt教学讲解课件
- 三年级科学上册4.2《动物怎样过冬》-ppt课件大象版
- 中考“转换”专题徽标类资料课件
- 人力资源管理师(二级第三章师级培训开发)课件
- 《利用相似三角形测高》教学ppt课件
- 两条直线的交点坐标及两点间的距离公式课件
- 人力资源管理师(四级)第三版-第六章-劳动关系管理课件
- 严格按照定额计价即施工图预算法课件
- 《良性前列腺增生》PPT课件
- 《廉颇蔺相如列传》复习ppt课件上课
- 人教版九年级物理上册ppt课件第十五章电流和电路
- 严谨务实准确高效课件
- 《廉颇蔺相如列传》公开课优质课ppt课件