Topic: DMD0006

Help File Version: 2.9.4.37

MEMCLEAR - Clear Memory


The Clear Memory (MEMCLEAR) instruction is used to clear a range of structures or numeric memory elements. The memory associated with each of the specified elements will be cleared, then, for memory types that require it, the memory will be initialized.

 

 


Parameters:

Note: Use the F9 key to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

Start Struct / Numeric - specifies the first element in the range of structures or numeric memory elements to clear. This can be any structure or any writable numeric location.

 

Number of Elements - specifies the number of contiguous structures or numeric memory elements to clear. This can be any positive constant value or any readable numeric location.

 


Status Display:

 

The status display for the Clear Memory instruction will show the beginning and ending elements of the range of locations that will be cleared.

 


See Also:

ISCLEAR - Is Structure Cleared

 

INIT - Initialize Data

 

MAPIO - Map Inputs and Outputs

 

MEMCLEAR - Clear Memory Range

 

MEMCOPY - Copy Memory Range

 

MOVE - Move Value

 

MOVEBIT - Move Single Bit

 

MOVER - Move Range of Values

 

REFWRITE - Write Value Indirectly

 

RSTR - Reset Range

 

SETNUMR - Set Numeric Range

 

SETR - Set Range

 

STRCOPY - Copy String

 

STRCOPYR - Copy a Range of Strings

 


Rung Example: