S7200 编程求助! 点击:412 | 回复:3



一将

    
  • 精华:0帖
  • 求助:1帖
  • 帖子:4帖 | 61回
  • 年度积分:0
  • 历史总积分:11
  • 注册:2003年7月16日
发表于:2015-07-20 21:57:03
楼主

老外要求不能使用已有定时器,用当按钮按下计时运行3.5s,其间灯泡是亮的。以下是原文,求思路!


Please also write another program for a timer that has a “done” pulse when it times out and a running output while the timer is running. You cannot use any exiting timers, you have to make your own timer. Your timer should start with a pulse from a pushbutton and run for 3.5 seconds. While the timer is counting a lamp should be illuminated with an output at Q0.0





柳红岩

  • 精华:1帖
  • 求助:7帖
  • 帖子:16帖 | 664回
  • 年度积分:841
  • 历史总积分:16817
  • 注册:2009年8月05日
发表于:2015-07-21 08:10:34
1楼

理解错意思了吧?不使用现有定时器,是不使用程序中已经用的吧?

如果实在憋不过去,那就使用系统特殊继电器计数延时

xiaoyuwww2005

  • 精华:2帖
  • 求助:3帖
  • 帖子:251帖 | 1561回
  • 年度积分:4
  • 历史总积分:3432
  • 注册:2009年8月11日
发表于:2015-07-21 08:40:32
2楼

   不用系统定时器??   难道要你开发PLC程序 ? 

拐子奔

  • 精华:0帖
  • 求助:1帖
  • 帖子:1帖 | 5回
  • 年度积分:0
  • 历史总积分:29
  • 注册:2015年7月20日
发表于:2015-07-22 22:07:24
3楼

   应该不会这样要求吧,是不是不能用已用的定时器?

   如果不能用系统自带定时器,也没问题,用时钟脉冲SM0.5(该脉冲在1秒钟的周期时间内off(关闭)0.5秒,ON(打开)0.5秒),配合计数器做个定时器,应该也不难。


热门招聘
相关主题

官方公众号

智造工程师