回复:S7-1200在中断内输出脉冲的问题

伊默

西门子1847工业学习平台

  • 帖子

    4259
  • 精华

    118
  • 被关注

    220

论坛等级:至圣

注册时间:2003-10-24

白金 白金 如何晋级?

发布于 2010-06-03 13:28:31

1楼

以下是从英文文档里摘下来的,好像是可以从中断内发生脉冲。
1.11.3 Tracking tasks from higher priority classes (execution levels)
Depending on the application, it may be necessary to start motion control tasks (for example,
interrupt-controlled) in a higher priority class (execution level). Because the motion control
task cannot be tracked, or only inadequately tracked, in the higher priority class, the option
exists to perform tracking in the program cycle OB. For every start of the motion control task,
an instance data block that is not currently being utilized must be available. Refer to the
following flow chart to see how you start motion control tasks in a higher priority class
(for example, hardware interrupt OB) and continue tracking in the program cycle OB:

Depending on the frequency of the motion control tasks you want to start, you will have to
generate a sufficient number of instance data blocks. Users determine which instance data
block is used at the moment in the "DBx_used" tags.
Start of motion control task in the hardware interrupt OB
Binary queries of the "DBx_used" tags (orange) are used to find an instance data block
that is currently not in use. If such an instance data block is found, the motion control
task is started with this instance data block and the utilized instance data block is
marked as "used" (green).
Any other program sections of the hardware interrupt OB are then executed, followed by a
return to the program cycle OB.
I can do it
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-1200系列

共有15100条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。