DevWordRead

Outline

Read from shared memory.

Supplement

None

VC++ .NET VC# .NET VB .NET


VC++ .NET

DevWordRead
Calling Method BOOL DevWordRead(int iAddress, int *iData);
Return Value
TRUE : Normal
FALSE : Error
Argument int iAddress Address (0 - 255)
int *iData Data(0 - 65535)
Example int ret, iData;
ret = DevWordRead(0, &iData);
Necessary Condition
Header : smonras.h
Library : smonras.lib

Top of Page

VC# .NET

DevWordRead
Calling Method [DllImport("smonras.dll")] static extern int DevWordRead(int iAddress, ref int iData);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iAddress Address (0 - 255)
ref int iData Data(0 - 65535)
Example int ret, iData;
ret = DevWordRead(0, ref iData);

Top of Page

VB .NET

DevWordRead
Calling Method Declare Function DevWordRead Lib "smonras.dll"(ByVal iAddress As Integer, ByRef iData As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument ByVal iAddress As Integer Address (0 - 255)
ByRef iData As Integer Data(0 - 65535)
Example Dim ret As Integer
Dim iData As Integer
ret = DevWordRead(0, iData)

Top of Page