GlobalStrings Parameter

Default Value: 32

Minimum Value: 0

Maximum Value: 8192

Units: Strings

Type: int

The GlobalStrings parameter specifies the total number of global string variables ($sglobal[]) that are available to, and shared by, all tasks on the controller. You can use these variables to share strings between tasks.

Each global string variable uses 256 bytes of available memory. This string must be null-terminated, which makes 255 bytes of memory available for string characters. Each multi-byte Unicode character that you use will also consume multiple bytes of the 255-byte buffer.

When this parameter has a nonzero value, controller memory is allocated for each global variable.