《台达PLC通讯协议.docx》由会员分享,可在线阅读,更多相关《台达PLC通讯协议.docx(17页珍藏版)》请在优知文库上搜索。
1、台达PLC通讯协议VI。12通讯接口 RS-232C RS-4852 .通讯协议ASGl模式,9600(传输速率),偶同位,1个起始位,1个停止位9600, 7,e, 13 .通讯资料格式STX起始字符S ,(3AH)ADRl通讯地址:ADR 0 8-bit地址包含了 2个ASCll码CMDl命令码:CMDO 8-bit命令包含了 2个ASQl码DATA(O)资料内容:DATA (1) n个8-bit资料包含了 2n个ASCll码n PLC ”:01 05 05 00 FF 00 F6 CR LF”PLCfPC”: Ol 05 05 00 FF 00 F6 CR LFz,附录一 10Field
2、 Name Example (Hex)Heading 3ASlave Address 01Function 05Coil Address Hi 05Coil Address Lo 00Force Data Hi FFForce Data Lo 00Error Check ( LRC ) F6Field Name Example (Hex)Heading 3ASlave Address 01Function 06Register Address Hi 06Register Address Lo 00Preset Data Hi 12Preset Data Lo 34Error Check ( LRC) AD例:设定缓存器TO to 00 03PClPLC : 01 06 06 00 12 34 AD CR LFPLC-PC ”:01 06 06 00 12 34 AD CR LFField Name Example (Hex)Heading 3ASlave Address OlFunction 06附录-11Register TO Address Hi 06Register TO Address Lo OOPreset Data Hi 12Preset Data Lo 34Error Check ( LRC ) ADSwitch ( c)Case 0:T0Q -l 06 0