Mode of operation of S7-1500 CPUs

Basics of the operating modes of S7-CPUs

Operating modes describe the states of the CPU. The following operating modes are possible:
● STARTUP
● RUN
● STOP
● HOLD
In these operating modes, the CPU can communicate via the PN/IE interface, for example.

If the CPU is not ready for operation, it is in one of following two operating modes:
● Off-voltage, in other words, line power is switched off.
● Defective, which means that an internal error has occurred.

Operating mode transitions

① POWER ON → STARTUP

After switching on, the CPU goes to "STARTUP" mode if "Warm restart" startup type is set, and the hardware configuration and the program blocks are consistent.
Non-retentive memory is cleared and the contents of non-retentive DBs are reset to the initial values of the load memory. Retentive memory and retentive DB contents are retained.

② POWER ON → STOP

When startup type "No startup" is set, the CPU goes to "STOP" mode after the supply voltage is switched on.
Non-retentive memory is cleared and the contents of non-retentive DBs are reset to the initial values of the load memory. Retentive memory and retentive DB contents are retained.

③ STOP → STARTUP

The CPU switches to "STARTUP" mode if CPU is set to "RUN" from the programming device, and the hardware configuration and the program blocks are consistent.

④ STARTUP → STOP

The CPU returns to the "STOP" mode in the following situations:
● Error detected during startup.
● The CPU is set to "STOP" from the programming device.
● A STOP command is processed in the STARTUP OB.

⑤ STARTUP → RUN

If the STARTUP is successful, the CPU switches to "RUN".

⑥ RUN → STOP

The CPU returns to the "STOP" mode in the following situations:
● An error is detected that prevents continued processing.
● The CPU is set to "STOP" from the programming device.
● A STOP command is processed in the user program.

⑦ STARTUP → HOLD

Breakpoint in the start-up routine reached.

⑧ HOLD → STARTUP

Breakpoint in the start-up routine exited by setting to "RUN" from the programming device.

⑨ RUN → HOLD

Breakpoint reached.

⑩ HOLD → RUN

Breakpoint exited by setting to "RUN" from the programming device.

⑪ HOLD → STOP

Operation switch/display or setting the programming device to "STOP".

"STARTUP" operating mode

After turning on the CPU, it executes a startup program before starting to execute the cyclic user program.
By suitably programming startup OBs, you can specify certain initialization variables for your cyclic program in the startup program.

There is no rule in terms of the number of startup OBs. That is, you can set up one or several startup OBs in your program or none at all.

Parameter settings for startup characteristics

You can specify whether the CPU remains in "STOP" mode or whether a warm restart is performed. You can also set the response during startup ("RUN" or previous mode) in the "Startup" group of the CPU properties.

to be continued...

"RUN" operating mode

In "RUN" mode, the cyclic, time-driven and interrupt-driven program sections execute.

Addresses that are in the "Automatic Update" process image are automatically updated in each program cycle.
● The process image output is read out.
● The process image input table is read.
● The user program is executed.

Active data exchange between S7-1200 CPUs by means of Open User Communication is only possible in "RUN" mode.

"STOP" operating mode

In "STOP" mode, the user program is not executed.

All outputs are disabled or react according to the parameter settings: They provide a substitute value as set in the parameters or retain the last value output and bring the controlled process to a safe status.

"HOLD" operating mode

The "HOLD" operating mode is reached through a breakpoint in a block that you are testing in single step mode. The single step mode test function is available in the STL and SCL programming languages.

In "HOLD" operating mode, events are not initiated and the user program is not executed.

All outputs are disabled or react according to the parameter settings: Outputs supply a configured substitute value or keep the last value output and bring the controlled process to a safe operating state.

Timers and watchdogs are stopped. The timers for time-driven events are stopped.

In HOLD operating state, hardware interrupt OBs are not started by external interrupt triggers(e.g. hardware interrupt input).

 


 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值