omron — Related Keywords

STACK monitor command The STACK command allows users to explicitly allocate storage space to the stack for each program task. Thus, to optimize the use of system memory the amount of stack space can be tuned for a particular application. Stacks can be made arbitrarily large, limited only by the amount of memory available in your system. If a STACK command cannot allocate the amount of storage requested, it will fail with the error message *Not enough storage area* In that case, you should try the following: 1. Reduce the sizes of other program task stacks if possible. 2. Issue a ZERO command to delete all programs in memory, issue the desired STACK command, and then reload your programs.

This sequence compacts the program storage area and may permit a larger stack to be allocated. If a program task runs out of stack space, it will stop with the error message "*Not enough program stack space*". If this happens, use the STACK monitor command to increase the stack size, and then issue the RETRY command to continue program execution. All the other program tasks must be stopped as well. The STATUS monitor command can be used to display the stack statistics for a single program task. The "maximum" stack value indicates how much stack space was requested by the task that generated the error. Examples STACK 0 = 64 Reserves 64 kilobytes of memory for the stack for task 0.

Related Keywords AUTO program instruction STATUS monitor command eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 162