.

Controller.MemoryPointer

Returns the controller pointer to the memory location represented by the address string argument.

Version History

Introduced in MPX 2.0.

Result

UInt32

Arguments

 
Argument Type Description
address String The string representing the memory location whose controller pointer is to be returned.

Common Exceptions

 
Error Occurs when...
Argument The address argument string does not represent a valid address.

Visual Basic

Syntax

Function MemoryPtr(address As String) As UInt32

Sample Code

 
' Map.UserBuffer enumeration takes 1 additional index,
' the index of the user buffer
Dim addressString As String = controller.Map.StringGet(Mpx.Map.UserBuffer, 0)

Dim hexAddress As UInt32 = controller.MemoryPtr(addressString)


Sample Application

 

C#

Syntax

uint MemoryPtr(string address);

Sample Code

 
string strAdd;

//Map.UserBuffer enumeration takes 1 additional index.
//The index of the user buffer
strAdd = controller.Map.StringGet(Mpx.Map.UserBuffer, 0);

uint x = controller.MemoryPtr(strAdd);

 

 

See Also

MemoryGet
MemorySet

 

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering