- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
S7-200 自由口通讯程序 方式C(国外英文资料)
S7-200 自由口通讯程序 方式C
Explains that the PLC program of this example is also borrowed from elsewhere, I just repaired it properly, and then wrote the code section of VB. One to think PLC program written well, because the program is too long, please heart looked.
//^^^^^^^^^^^^^^^^^^^^^^//
PLC program section
TITLE= program notes
//PLC performs initialization routines during the first scan and initializes the ports and the RCV instructions. When initialization is complete, the RCV command is run and the port is in the accepted state.
//RCV saves the instruction at the end of the g with G to the receive buffer and generates the receive completion interrupt at the same time.
//RCVcomplete interrupt service program for processing and receiving complete interrupt event, it will receive buffer of sixteen hexadecimal ASCII code reduction to save the data, and the trigger condition Verify subroutine (M0.1).
The trigger condition / / Verify subroutine itself to prevent the first reset subroutine is invoked repeatedly, and then calculated BCC checksum instruction in the receive buffer and BCC check code instructions for comparison. If the flag is set equal to BCC code check the correct position (M0.0) is 1; if the instruction format is correct (instruction marks the end in a receive buffer specific location VB133) and the BCC code is not equal, is sent on behalf of the BCC checksum error feedback; if the instruction format is not correct (marked the end of VB133 not instruction), the feedback information is returned on behalf of instruction format error.
/ / trigger condition Read subroutine: instruction in the station address and the station address match, the type of instruction for reading instruction, BCC test code correctly. When the condition is satisfied, the Read subroutine is executed. The Read subroutine first prohibits RCV, then converts the data to be read into sixteen hexadecimal ASCII code, writes it to the transmit buffer, calculates the BCC test code, and finally
您可能关注的文档
- 30-物理量 单位 公式(国外英文资料).doc
- 31液压动力爬模施工工艺标准(国外英文资料).doc
- 346_228-发背对口治诀论(国外英文资料).doc
- 37wan英雄神殿攻略(国外英文资料).doc
- 2热化学(国外英文资料).doc
- 3dmax材质详细解析(国外英文资料).doc
- 3D参数(国外英文资料).doc
- 3水 准 测 量(国外英文资料).doc
- 3血液 生理(国外英文资料).doc
- 4.25联考申论高分宝典(国外英文资料).doc
- 2025中国电信股份有限公司涡阳分公司外包人员招聘1人笔试题库附答案.docx
- 2025中国农业科学院农业信息研究所第二批招聘5人笔试备考题库附答案.docx
- 2025中国地质科学院招聘科研助理2人笔试题库附答案.docx
- 2025安徽中共宿州市纪委、中共宿州市委巡察办所属事业单位选调工作人员8人备考题库附答案.docx
- 2025年11月广东深圳市大鹏新区科技和工业信息化局招聘编外人员1人笔试参考题库附答案.docx
- 2025国务院国资委委属事业单位招聘5人笔试题库附答案.docx
- 2025南方电网玉溪供电局项目制用工招聘备考题库(38人)附答案.docx
- 2025中新天津生态城教育系统招聘教职人员参考题库(297人)附答案.docx
- 2025中国移动校园招聘即将启动笔试参考题库附答案.docx
- 2025北京市化工职业病防治院退役大学生士兵定向招聘笔试参考题库附答案.docx
原创力文档


文档评论(0)