Memory allocation

SUMMARY

This document gives information to Memory Allocation for SoftPlc7.

CONTENTS

  1. Memory allocation for huge S7-Programs

Memory allocation for huge S7-Programs

The default Memory allocation for SoftPLC7 is 256MB.
For huge programs that might not be enough; in case the error message "out of Memory" appears the Memory allocation for SoftPLC7 has to be increased.

The SoftPLC7 tries to read the environment variable "SOFTPLC7_ALLOCMEM". If there is a value, it is interpreted as number of Megabytes to be allocated; If the environment variable "SOFTPLC7_ALLOCMEM" does not exist, or is empty the default of 256MB is allocated for the SoftPLC7.