PLC的文件和程序课件.ppt

  1. 1、本文档共30页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PLC的文件和程序课件

将要讨论的内容... ML 1000 Memory Organization ML 1000 Memory Organization 文件0-系统文件 标志和保留文件 用于存储与系统有关的信息. 处理器的型号和配置 通讯参数 I/O 配置 密码 Misc.. 文件1-保留文件 特点 文件2-主程序文件 标志和打开文件 主梯形图文件 典型应用是用户的“主要”存在什么地方 必须有程序逻辑 文件3-故障列行程序 预配置和打开文件 用作故障列行子程序 当有错误被发现时被“扫描” (允许用户清除错误和禁止关闭) 下列错误可能被发现: 保留数据丢失 电源断电起动保护 看门狗超时 文件超出边界 在计时器的累加值或预置值出现负值 外销的 HSC 预置值 可以被用作用户子出现,但不推荐。 文件4-高速计数文件 预配置和打开文件 可用作HSC子程序文件 当HSC中断发生时被 撋钄 HSC 中断在下列情况发生: 计数值达到撛ぶ弥禂时 (高或低) 上溢出或下溢出发生时 可以被用作用户子程序,但不推荐使用 文件5-可选定时中断文件 预配置和打开文件 可用作 STI 子程序 当 STE指令置 (1)时被扫描 间隔时间可调, 10m秒精度 可以用作用户子程序,但不推荐使用。 文件6-15-用户子程序文件 摯蚩獢 文件 典型应用于用户特殊要求. 从文件 2 (主程序文件) 进入,通过特殊的程序标志 JSR 跳到子程序并返回 SBR 子程序标志 RET 返回子程序 允许子程序嵌套 (8 级, 3 级时出错, HSC or或 STI 子程序使能) 梯形图逻辑概念 梯形图逻辑概念 逻辑“与”指令 Logical AND Construction 逻辑“或(或)指令 Logical OR Construction Logical OR Construction 复杂指令 读输入指令 读输入指令 写输出指令 输入,输出整体 地址实例 地址实例 地址实例 继电器逻辑到梯形图逻辑 继电器逻辑到梯形图逻辑 继电器逻辑到梯形图逻辑 Program files are used to execute application specific functions/commands/requirements. Certain program files are dedicated for specific functions Other program files are 揢ser?selectable THIS FILE IS NOT ACCESSIBLE This file is reserved for future functionality. This is the primary file where the user program resides. This file provides a means to clear or set specific Bit抯 or Word抯 within the PLC if a recoverable fault is detected. It is STRONGLY recommended that this file NOT be used as a regular subroutine. This is because if this file is used as a standard subroutine, and a recoverable error is detected, the program resident in this subroutine will be executed. This could cause a problem if the program was not intended to 搑un?at that time. This is the High Speed Counter interrupt subroutine. This subroutine will be scanned whenever a HSC Preset, Overflow or Underflow condition is detected. It is STRONGLY recommended that this file NOT be used as a regular subroutine. This is because if this file is used as a standard subroutine, and a HSC interrupt event is detected, the program resident in this subroutine will be e

文档评论(0)

叮当文档 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档