1 / 20

使用时间功能去控制和监控系统与机器的运行过程。 在 B&R PCC 提供的功能库中的时间功能函数分为:

3.11 时间功能函数. 使用时间功能去控制和监控系统与机器的运行过程。 在 B&R PCC 提供的功能库中的时间功能函数分为:. 3.11 时间功能函数. ( 1 )时间元素。 TOF() :延时关; TON() :延时开; TP() :脉冲产生。. 3.11 时间功能函数. ( 2 )时间标志。 RTC_gettime() 读取实时时钟; RTC_settime() 设置实时时钟。. ( 3 )时间测量 TIM_musec() 读取  s 定时器; TIM_ticks() 读取 10msec 定时器。. 3.11 时间功能函数.

elisa
Download Presentation

使用时间功能去控制和监控系统与机器的运行过程。 在 B&R PCC 提供的功能库中的时间功能函数分为:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3.11 时间功能函数 使用时间功能去控制和监控系统与机器的运行过程。 在 B&R PCC提供的功能库中的时间功能函数分为:

  2. 3.11 时间功能函数 (1)时间元素。 TOF():延时关; TON():延时开; TP():脉冲产生。

  3. 3.11 时间功能函数 (2)时间标志。 RTC_gettime() 读取实时时钟; RTC_settime() 设置实时时钟。

  4. (3)时间测量 TIM_musec() 读取s定时器; TIM_ticks() 读取10msec定时器。 3.11 时间功能函数

  5. 3.11 时间功能函数

  6. 3.11 时间功能函数 参数: IN :输入信息。 PT:预先设定的延时时间。 Q :输出信息。

  7. 3.11 时间功能函数

  8. 3.11 时间功能函数 (2)延时开(输入延时) TON(IN,PT,Q,ET) 此功能块在输入信号IN变为1(上升沿)时开始计时,当设定(PT的值)的时间结束时,输出Q被置1。

  9. 3.11 时间功能函数

  10. 3.11 时间功能函数 (3)延时关(输出延时) TOF(IN,PT,Q,ET) 此功能块在输入信号IN变为0(下降沿)时开始计时,当设定(PT的值)的时间结束时,输出Q变为0(复位)。

  11. 3.11 时间功能函数

  12. 3.11 时间功能函数 每个HMI或过程控制均需要实时时钟去控制和显示过程。

  13. 实时时钟功能由SYS_LIB功能库提供的功能块来完成 RTC_gettime() RTC_settime() 3.11 时间功能函数

  14. 3.11 时间功能函数 实时钟功能块参数表

  15. 3.11 时间功能函数 时间结构元素表

  16. 3.11 时间功能函数 时间测量在过程监控中是非常必要的。 有些硬件模块(触发点设置的)可以在μs或10ms时间内进行时间测量,也可以通过软件功能来完成时间测量的任务。

  17. STANDARD功能库中的如下功能块可以完成时间测量功能 TIM_musec() TIM_ticks() 3.11 时间功能函数

  18. 3.11 时间功能函数 时间测量参数数表

  19. 3.11 时间功能函数 续表

  20. 利用时间功能函数编制的 控制任务动画演示 3.11 时间功能函数

More Related