技术论坛

 回复:在S7-300中,如何实现S7-200中SM0.3的功能:即开机后进入RUN状态,ON一个扫描周期,请各位赐教.

返回主题列表
作者 主题
xu111
新手

经验值:25
发帖数:10
精华帖:0
楼主    2003-09-22 09:29:10
主题:在S7-300中,如何实现S7-200中SM0.3的功能:即开机后进入RUN状态,ON一个扫描周期,请各位赐教.
东方红一红
版主

经验值:16855
发帖数:6779
精华帖:50
    2003-09-23 12:41:12
精华帖  主题:回复:在S7-300中,如何实现S7-200中SM0.3的功能:即开机后进入RUN状态,ON一个扫描周期,请各位赐教.
你必须在OB100中调用SFB21 “RESUME”,原理及注意事项如下。

If there is a rising edge at control input REQ, SFB 21 "RESUME" activates a hot restart on the remote device selected with the ID.
The following conditions must be met if the remote device is a CPU:

1、The CPU must be in the STOP mode.

2、The key switch of the CPU must be set to "RUN" or "RUN-P."

3、When you created the configuration with STEP 7, you allowed for a manual hot restart.

4、There must be no condition preventing a hot restart.

Once the hot restart has been completed, the device changes to the RUN mode and sends a positive execution acknowledgement. When the positive acknowledgement is evaluated, the status parameter DONE is set to 1. Any errors that occurred are indicated in the status parameters ERROR and STATUS.

A restart can only be activated again in the same remote device after the previous hot restart has been completed.
你的明白?更多解释请查看ONLINE HELP。
知其道,用其妙!
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。