倍福Wince系统存储容量StorageMemory和ProgramMemory设置

本文深入探讨了嵌入式系统中的三种关键内存类型:TwinCAT内存、存储内存和程序内存的功能及管理方式。TwinCAT内存为静态分配,主要用于PLC;存储内存作为临时硬盘,用于系统启动及文件操作;程序内存则类似传统RAM,负责运行中程序的堆栈和堆空间。

蓝色表示可用空间,左边是内核使用,右边是程序可用,内核使用量一般很少

详细的英文说明如下:

  TwinCAT, R3IO Applications and so on will all use the Program Memory. TwinCAT PLC will use it statically (allocates the memory one time at startup), R3IO Applications will use it dynamically (allocates the stack on startup and further memory in the heap with new/delete). 

1.) TwinCAT Memory: 

Because the PLC has no dynamic memory, you have to declare the size of the provided static memory. This static memory is divided into several areas for several use cases. If you define the input memory to 16 kBytes, your input data is able to become up to 16 kBytes. If you have too much variables declared as an input, maybe your memory is not enough and you need to increase the size of input memory. In your case it seems the amount of memory for the internal variables has been exceeded and you need to increase the defined memory size. 

2.) Storage Memory: 

The Storage Memory is something like a temporary hard disk. After boot the operating system would install to this temporary memory. It’s usable with the explorer like a normal hard disk: read, write, create files, manipulate them and so on.  The more storage memory available to the device, the more personal information you will be able to store without resorting to external storage cards.  

2.) Program Memory: 

The Program Memory is mostly similar to the traditionally described RAM. It provides memory for the heap and stack of programms which are running on the system. Every program you run, every task or action or information on the screen, will be store in the program memory. The more Program Memory is available to the system, in general the faster it will perform and the more responsive it will be.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值