登录
首页 PLC论坛 西门子SIEMENS
回帖 发帖
正文

主题:[求助]PLC的时钟扫描问题。

点击:2629 回复:12

查了一下西门子的资料:
Process-Image Input/Output Tables
If the input (I) and output (Q) address areas are accessed in the user program, the program does not scan the signal states on the digital signal modules but accesses a memory area in the system memory of the CPU and distributed I/Os. This memory area is known as the process image.
Updating the Process Image
The following figure shows the processing steps within a scan cycle.

One of the internal tasks of the operating system (OS) is to read the status of inputs into the process image input table (PII). Once this step is complete, the user program is executed with all blocks that are called in it. The cycle ends with writing the process image output table (PIQ) to the outputs for the modules. Reading in the process image input table and writing the process image output table to the outputs for the modules is all independently controlled by the operating system.

One of the internal tasks of the operating system (OS) is to write the process image output table (PIQ) to the outputs for the modules and to read in the status of inputs into the process image input table (PII). Once this step is complete, the user program is executed with all blocks that are called in it. Writing the process image output table to the outputs for the modules and reading in the process image input table is all independently controlled by the operating system.
Advantages of the Process Image
Compared with direct access to the input/output modules, the main advantage of accessing the process image is that the CPU has a consistent image of the process signals for the duration of one program cycle. If a signal state on an input module changes while the program is being executed, the signal state in the process image is retained until the process image is updated again in the next cycle. The process of repeatedly scanning an input signal within a user program ensures that consistent input information is always available.
Access to the process image also requires far less time than direct access to the signal modules since the process image is located in the internal memory of the CPU.
Part Process Images (Process-Image Partitions)
In addition to having the process image (process-image input table, PII, and process-image output table, PIQ) automatically updated by the operating system, you can assign parameters to a maximum of 15 partial process images for an S7-400 CPU (CPU-specific, no. 1 to no. 15, see the S7-400, M7-400 Programmable Controllers Module Specifications Reference Manual). This means that you can update sections of the process-image table, when necessary, independently of the cyclic updating of the process image table.
Each input/output address that you assign with STEP 7 to a process-image partition no longer belongs to the OB1 process-image input/output tables. Input and output address can only be assigned once through the OB 1 process image and all process-image partitions.
You define process-image partition with STEP 7 when you assign addresses (which input/output addresses of the modules are listed in which process-image partition). The process-image partition is updated either by the user with SFCs or automatically by the system by connecting to an OB.
Exception: Process image partitions for synchronous cycle interrupt OBs are not updated on the system side, even though they are linked to an OB (OB 61 to OB 64).
07-09-12 13:15
怎么缺了图!!
反正意思是西门子的PLC在98年10月前是先更新输入映象区--》用户程序--》更新输出映象区。
98年10月以后 更新输出映象区--》更新输入映象区--》用户程序
07-09-12 13:21
无论PLC还是PC一个时间点只能处理1个任务~~~微观上根本就不存在多任务(除非多核心).多任务操作只是利用执行空闲时间来交叉进行而已.1个扫描周期是要扫描所有输入输出和用户程序的.不然怎么程序越大扫描周期越长呢?
07-09-13 09:34

上一页 上一页

工控新闻

更多新闻资讯