TxbManager
Description
This function block is used for managing the memory allocated for text buffers. It takes care of releasing the corresponding memory when the application stops, and can be used for tracking memory leaks.
|
There must be one and only one instance of this block declared in the IEC application in order to use any other Txb... function. |
Outputs
Output |
Data type |
Description |
bOK |
BOOL |
TRUE if the text buffers memory system is correctly initialized. |
nBuffers |
DINT |
Number of text buffers currently allocated in memory. |
|
Memory management / Miscellaneous TxbManager: Main gatherer of text buffer data in memory. TxbLastError: Get detailed error report about last call. Allocation / exchange with files TxbNew: Allocate a new empty buffer. TxbNewString: Allocate a new buffer initialized with string. TxbFree: Release a text buffer. TxbReadFile: Allocate a new buffer from file. TxbWriteFile: Store a text buffer to file. TxbGetLength: Get length of a text buffer. TxbGetData: Store text contents to an array of characters. TxbGetString: Store text contents to a string. TxbSetData: Store an array of characters to a text buffer. TxbSetString: Store string to text buffer. TxbClear: Empty a text buffer. TxbCopy: Copy a text buffer. TxbRewind: Rewind sequential reading. TxbGetLine: Sequential read line by line. TxbAppend: Append variable value. TxbAppendLine: Append a text line. TxbAppendEol: Append end of line characters. TxbAppendTxb: Append contents of another buffer. TxbAnsiToUtf8: Convert a text buffer to UNICODE. TxbUtf8ToAnsi: Convert a text buffer to ANSI. |
TxbManager |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > Text buffers manipulation > Memory management / Miscellaneous > TxbManager |
Created with the Personal Edition of HelpNDoc: Transform your help documentation into a stunning website