1 #ifndef __MLPILOGICHELPER_H__ 2 #define __MLPILOGICHELPER_H__ 100 const WCHAR16 MLPI_READ_VAR_DISPLAY_TYPE_DEC[] = {
'D',
'E',
'C',
':',
'\0'};
101 const WCHAR16 MLPI_READ_VAR_DISPLAY_TYPE_HEX[] = {
'H',
'E',
'X',
':',
'\0'};
102 const WCHAR16 MLPI_READ_VAR_DISPLAY_TYPE_BIN[] = {
'B',
'I',
'N',
':',
'\0'};
103 const WCHAR16 MLPI_READ_VAR_DISPLAY_TYPE_BOOLEAN[] = {
'B',
'L',
'N',
':',
'\0'};
154 while(token != NULL) {
155 symbolList.push_back(token);
159 while (node != 0xFFFFFFFF);
164 #if !defined (TARGET_OS_VXWORKS) // no wstringstream support on vxw :-( 191 std::vector<MlpiLogicUserTypeInformation> userTypeInfos(symbolInfo.numElements);
196 for (
ULONG i=0; i<symbolInfo.numElements; i++) {
200 std::wstringstream structSymbol;
201 structSymbol << symbol << L
"." << userTypeInfos.at(i).name;
204 return resultInflate;
214 for (
ULONG a=symbolInfo.range[0].minimum; a<=symbolInfo.range[0].maximum; a++) {
215 for (
ULONG b=symbolInfo.range[1].minimum; b<=symbolInfo.range[1].maximum; b++) {
216 for (
ULONG c=symbolInfo.range[2].minimum; c<=symbolInfo.range[2].maximum; c++) {
217 std::wstringstream arraySymbol;
218 arraySymbol << symbol << L
"[" << a << L
"]";
219 if (symbolInfo.dimension >= 2) arraySymbol << L
"[" << b << L
"]";
220 if (symbolInfo.dimension >= 3) arraySymbol << L
"[" << c << L
"]";
227 symbolList.push_back(arraySymbol.str());
236 symbolList.push_back(symbol);
278 for (SymbolList::iterator iter=symbolListSimple.begin(); iter!=symbolListSimple.end(); iter++) {
MLPIRESULT mlpiLogicWriteVariableBySymbolUlong(const MLPIHANDLE connection, const WCHAR16 *symbol, const ULONG data)
This function writes a given 32-bit unsigned value (DWORD, UDINT, TIME, DATE, DATE_AND_TIME, ..., MlpiLogicType) to a variable by symbolic access.
MLPIRESULT mlpiLogicWriteVariableBySymbolString(const MLPIHANDLE connection, const WCHAR16 *symbol, const WCHAR16 *data)
This function writes a given character string value (STRING, MlpiLogicType) to a variable by symbolic...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayUshort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const USHORT *data, const ULONG numElements)
This function writes an array of 16-bit unsigned data values (WORD, UINT, MlpiLogicType) to the memor...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayShort(const MLPIHANDLE connection, const WCHAR16 *symbol, SHORT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 16-bit signed values (INT, MlpiLogicType) from a variable by symbolic...
MLPIRESULT mlpiLogicWriteVariableBySymbolDouble(const MLPIHANDLE connection, const WCHAR16 *symbol, const DOUBLE data)
This function writes a given 64-bit floating point value (double precision, LREAL, MlpiLogicType) to a variable by symbolic access.
#define MLPI_S_OK
Return code "everything okay".
MLPIRESULT mlpiLogicReadVariableBySymbolArrayLong(const MLPIHANDLE connection, const WCHAR16 *symbol, LONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit signed values (DINT, MlpiLogicType) from a variable by symboli...
unsigned char UCHAR
1 byte unsigned integer
MLPIRESULT mlpiLogicReadMemoryAreaArrayUshort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, USHORT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 16-bit unsigned data values (WORD, UINT, MlpiLogicType) from the memo...
MLPIRESULT mlpiLogicReadMemoryAreaChar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, CHAR *data)
This function reads the 8-bit signed data value (SINT, MlpiLogicType) from the memory area (MlpiAppli...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayUchar(const MLPIHANDLE connection, const WCHAR16 *symbol, UCHAR *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 8-bit unsigned values (BYTE, USINT, MlpiLogicType) from a variable by...
MLPIRESULT mlpiLogicReadVariableBySymbolDouble(const MLPIHANDLE connection, const WCHAR16 *symbol, DOUBLE *data)
This function reads a 64-bit floating point value (double precision, LREAL, MlpiLogicType) from a var...
struct MlpiLogicSymbolInformation MlpiLogicSymbolInformation
This structure defines the information about a symbol using mlpiLogicGetInformationOfSymbol.
MLPIRESULT mlpiLogicReadMemoryAreaArrayChar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, CHAR *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 8-bit signed data values (SINT, MlpiLogicType) from the memory area (...
MLPIRESULT mlpiLogicReadVariableBySymbolUlong(const MLPIHANDLE connection, const WCHAR16 *symbol, ULONG *data)
This function reads a 32-bit unsigned value (DWORD, UDINT, TIME, DATE, DATE_AND_TIME, ..., MlpiLogicType) from a variable by symbolic access.
MLPIRESULT mlpiLogicWriteVariableBySymbolUchar(const MLPIHANDLE connection, const WCHAR16 *symbol, const UCHAR data)
This function writes a given 8-bit unsigned value (BYTE, USINT, MlpiLogicType) to a variable by symbo...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayUlong(const MLPIHANDLE connection, const WCHAR16 *symbol, const ULONG *data, const ULONG numElements)
This function writes an array of 32-bit unsigned values (DWORD, UDINT, TIME, DATE, DATE_AND_TIME, ..., MlpiLogicType) to a variable by symbolic access.
MLPIRESULT mlpiLogicWriteVariableBySymbolFloat(const MLPIHANDLE connection, const WCHAR16 *symbol, const FLOAT data)
This function writes a given 32-bit floating point value (single precision, REAL, MlpiLogicType) to a...
unsigned long long ULLONG
8 byte unsigned integer
int LONG
4 byte signed integer
MLPIRESULT utilLogicGetSymbolList(MLPIHANDLE connection, const std::wstring &application, SymbolList &symbolList)
This functions reads the list of variables of a given application and returns it as as a SymbolList c...
MLPIRESULT mlpiLogicReadVariableBySymbolFloat(const MLPIHANDLE connection, const WCHAR16 *symbol, FLOAT *data)
This function reads a 32-bit floating point value (single precision, REAL, MlpiLogicType) from a vari...
Array (use element type, base types or VOID in case of complex type)
char CHAR
1 byte signed integer
MLPIRESULT mlpiLogicWriteVariableBySymbolLlong(const MLPIHANDLE connection, const WCHAR16 *symbol, const LLONG data)
This function writes a given 64-bit signed value (LINT, MlpiLogicType) to a variable by symbolic acce...
signed char BOOL8
1 byte boolean
unsigned short USHORT
2 byte unsigned integer
MLPIRESULT mlpiLogicWriteMemoryAreaArrayLong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LONG *data, const ULONG numElements)
This function writes an array of 32-bit signed data values (DINT, MlpiLogicType) to the memory area (...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayDouble(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const DOUBLE *data, const ULONG numElements)
This function writes an array of 64-bit floating point data values (double precision, LREAL, MlpiLogicType) to the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicReadVariableBySymbolLlong(const MLPIHANDLE connection, const WCHAR16 *symbol, LLONG *data)
This function reads a 64-bit signed value (LINT, MlpiLogicType) from a variable by symbolic access...
MLPIRESULT mlpiLogicWriteMemoryAreaLlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LLONG data)
This function writes the 64-bit signed data value (LINT, MlpiLogicType) to the memory area (MlpiAppli...
MLPIRESULT mlpiLogicReadMemoryAreaArrayUchar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, UCHAR *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 8-bit unsigned data values (BYTE, USINT, MlpiLogicType) from the memo...
MLPIRESULT mlpiLogicWriteMemoryAreaFloat(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const FLOAT data)
This function writes the 32-bit floating point data value (single precision, REAL, MlpiLogicType) to the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicReadMemoryAreaArrayLlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LLONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit signed data values (LINT, MlpiLogicType) from the memory area ...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayLlong(const MLPIHANDLE connection, const WCHAR16 *symbol, LLONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit signed values (LINT, MlpiLogicType) from a variable by symboli...
MLPIRESULT mlpiLogicReadMemoryAreaShort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, SHORT *data)
This function reads the 16-bit signed data value (INT, MlpiLogicType) from the memory area (MlpiAppli...
MLPIRESULT mlpiLogicReadVariableBySymbolUllong(const MLPIHANDLE connection, const WCHAR16 *symbol, ULLONG *data)
This function reads a 64-bit unsigned value (LWORD, ULINT, MlpiLogicType) from a variable by symbolic...
MLPIRESULT mlpiLogicReadVariableBySymbolUshort(const MLPIHANDLE connection, const WCHAR16 *symbol, USHORT *data)
This function reads a 16-bit unsigned value (WORD, UINT, MlpiLogicType) from a variable by symbolic a...
MLPIRESULT mlpiLogicWriteVariableBySymbolLong(const MLPIHANDLE connection, const WCHAR16 *symbol, const LONG data)
This function writes a given 32-bit signed value (DINT, MlpiLogicType) to a variable by symbolic acce...
MLPIRESULT mlpiLogicWriteVariableBySymbolShort(const MLPIHANDLE connection, const WCHAR16 *symbol, const SHORT data)
This function writes a given 16-bit signed value (INT, MlpiLogicType) to a variable by symbolic acces...
MLPIRESULT mlpiLogicReadVariableBySymbolUchar(const MLPIHANDLE connection, const WCHAR16 *symbol, UCHAR *data)
This function reads an 8-bit unsigned value (BYTE, USINT, MlpiLogicType) from a variable by symbolic ...
short SHORT
2 byte signed integer
MLPIRESULT mlpiLogicGetInformationOfSymbol(const MLPIHANDLE connection, const WCHAR16 *symbol, MlpiLogicSymbolInformation *info)
This function reads the types, size, number of elements, array information and access rights of a sym...
MLPIRESULT mlpiLogicReadMemoryAreaUllong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULLONG *data)
This function reads the 64-bit unsigned data value (LWORD, ULINT, MlpiLogicType) from the memory area...
MLPIRESULT mlpiLogicWriteVariableBySymbolUshort(const MLPIHANDLE connection, const WCHAR16 *symbol, const USHORT data)
This function writes a given 16-bit unsigned value (WORD, UINT, MlpiLogicType) to a variable by symbo...
MLPIRESULT mlpiLogicReadMemoryAreaArrayFloat(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, FLOAT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit floating point data values (single precision, REAL, MlpiLogicType) from the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicWriteMemoryAreaArrayLlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LLONG *data, const ULONG numElements)
This function writes an array of 64-bit signed data values (LINT, MlpiLogicType) to the memory area (...
MLPIRESULT mlpiLogicReadVariableBySymbolString(const MLPIHANDLE connection, const WCHAR16 *symbol, WCHAR16 *data, const ULONG numElements)
This function reads a character string value (STRING, MlpiLogicType) from a variable by symbolic acce...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayDouble(const MLPIHANDLE connection, const WCHAR16 *symbol, const DOUBLE *data, const ULONG numElements)
This function writes an array of 64-bit floating point values (double precision, LREAL, MlpiLogicType) to a variable by symbolic access.
MLPIRESULT mlpiLogicReadVariableBySymbolChar(const MLPIHANDLE connection, const WCHAR16 *symbol, CHAR *data)
This function reads an 8 bit signed value (SINT, MlpiLogicType) from a variable by symbolic access...
MLPIRESULT mlpiLogicWriteVariableBySymbolUllong(const MLPIHANDLE connection, const WCHAR16 *symbol, const ULLONG data)
This function writes a given 64-bit unsigned value (LWORD, ULINT, MlpiLogicType) to a variable by sym...
MLPIRESULT mlpiLogicReadMemoryAreaDouble(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, DOUBLE *data)
This function reads the 64-bit floating point data value (double precision, LREAL, MlpiLogicType) from the memory area (MlpiApplicationMemoryArea).
wchar_t WCHAR16
UTF16 string.
unsigned int ULONG
4 byte unsigned integer
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayUllong(const MLPIHANDLE connection, const WCHAR16 *symbol, const ULLONG *data, const ULONG numElements)
This function writes an array of 64-bit unsigned values (LWORD, ULINT, MlpiLogicType) to a variable b...
MLPIRESULT mlpiLogicWriteMemoryAreaUllong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULLONG data)
This function writes the 64-bit unsigned data value (LWORD, ULINT, MlpiLogicType) to the memory area ...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayDouble(const MLPIHANDLE connection, const WCHAR16 *symbol, DOUBLE *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit floating point values (double precision, LREAL, MlpiLogicType) from a variable by symbolic access.
Symbolic access unsupported.
MLPIRESULT mlpiLogicWriteMemoryAreaArrayUchar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const UCHAR *data, const ULONG numElements)
This function writes an array of 8-bit unsigned data values (BYTE, USINT, MlpiLogicType) to the memor...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayChar(const MLPIHANDLE connection, const WCHAR16 *symbol, CHAR *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 8-bit signed values (SINT, MlpiLogicType) from a variable by symbolic...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayUshort(const MLPIHANDLE connection, const WCHAR16 *symbol, const USHORT *data, const ULONG numElements)
This function writes an array of 16-bit unsigned values (WORD, UINT, MlpiLogicType) to a variable by ...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayUchar(const MLPIHANDLE connection, const WCHAR16 *symbol, const UCHAR *data, const ULONG numElements)
This function writes an array of 8-bit unsigned values (BYTE, USINT, MlpiLogicType) to a variable by ...
MLPIRESULT mlpiLogicWriteMemoryAreaLong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LONG data)
This function writes the 32-bit signed data value (DINT, MlpiLogicType) to the memory area (MlpiAppli...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayChar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const CHAR *data, const ULONG numElements)
This function writes an array of 8-bit signed data values (SINT, MlpiLogicType) to the memory area (M...
MLPIRESULT mlpiLogicGetInformationOfUserType(const MLPIHANDLE connection, const WCHAR16 *symbol, MlpiLogicUserTypeInformation *info, const ULONG numElements, ULONG *numElementsRet=0)
This function reads names and information of variables (MlpiLogicSymbolInformation) of a symbol varia...
MLPIRESULT mlpiLogicReadMemoryAreaLong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LONG *data)
This function reads the 32-bit signed data value (DINT, MlpiLogicType) from the memory area (MlpiAppl...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayLlong(const MLPIHANDLE connection, const WCHAR16 *symbol, const LLONG *data, const ULONG numElements)
This function writes an array of 64-bit signed values (LINT, MlpiLogicType) to a variable by symbolic...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayFloat(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const FLOAT *data, const ULONG numElements)
This function writes an array of 32-bit floating point data values (single precision, REAL, MlpiLogicType) to the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicReadMemoryAreaFloat(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, FLOAT *data)
This function reads the 32-bit floating point data value (single precision, REAL, MlpiLogicType) from...
MLPIRESULT mlpiLogicWriteMemoryAreaUshort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const USHORT data)
This function writes the 16-bit unsigned data value (WORD, UINT, MlpiLogicType) to the memory area (M...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayShort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const SHORT *data, const ULONG numElements)
This function writes an array of 16-bit signed data values (INT, MlpiLogicType) to the memory area (M...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayFloat(const MLPIHANDLE connection, const WCHAR16 *symbol, FLOAT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit floating point values (single precision, REAL, MlpiLogicType) from a variable by symbolic access.
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayFloat(const MLPIHANDLE connection, const WCHAR16 *symbol, const FLOAT *data, const ULONG numElements)
This function writes an array of 32-bit floating point values (single precision, REAL, MlpiLogicType) to a variable by symbolic access.
std::vector< std::wstring > SymbolList
MLPIRESULT mlpiLogicWriteMemoryAreaDouble(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const DOUBLE data)
This function writes the 64-bit floating point data value (double precision, LREAL, MlpiLogicType) to the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicGetSymbolsOfApplication(const MLPIHANDLE connection, const WCHAR16 *application, PROCESSHANDLE *node, WCHAR16 *symbols, const ULONG numElements)
This function will read all symbols of an application. The symbols themselves are separated from each...
MLPIRESULT mlpiLogicReadMemoryAreaArrayLong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit signed data values (DINT, MlpiLogicType) from the memory area ...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayShort(const MLPIHANDLE connection, const WCHAR16 *symbol, const SHORT *data, const ULONG numElements)
This function writes an array of 16-bit signed values (INT, MlpiLogicType) to a variable by symbolic ...
MLPIRESULT mlpiLogicReadMemoryAreaArrayUlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit unsigned data values (DWORD, UDINT, MlpiLogicType) from the me...
WCHAR16 * wcstok_r16(WCHAR16 *s1, const WCHAR16 *s2, WCHAR16 **context)
Function to disassemble a WCHAR16 string for certain WCHAR16 characters. A sequence of calls to this ...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayChar(const MLPIHANDLE connection, const WCHAR16 *symbol, const CHAR *data, const ULONG numElements)
This function writes an array of 8-bit signed values (SINT, MlpiLogicType) to a variable by symbolic ...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayBool8(const MLPIHANDLE connection, const WCHAR16 *symbol, const BOOL8 *data, const ULONG numElements)
This function writes an array of Boolean values (BOOL, MlpiLogicType) to a variable by symbolic acces...
MLPIRESULT mlpiLogicReadMemoryAreaUshort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, USHORT *data)
This function reads the 16-bit unsigned data value (WORD, UINT, MlpiLogicType) from the memory area (...
MLPIRESULT mlpiLogicReadVariableBySymbolLong(const MLPIHANDLE connection, const WCHAR16 *symbol, LONG *data)
This function reads a 32-bit signed value (DINT, MlpiLogicType) from a variable by symbolic access...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayUshort(const MLPIHANDLE connection, const WCHAR16 *symbol, USHORT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 16-bit unsigned values (WORD, UINT, MlpiLogicType) from a variable by...
MLPIRESULT utilLogicInflateSymbol(MLPIHANDLE connection, const std::wstring &symbol, SymbolList &symbolList, MlpiLogicSymbolInformation &symbolInfo)
Recursive function which checks if a symbol is an array or user defined structure and adds all array ...
MLPIRESULT mlpiLogicReadMemoryAreaUlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULONG *data)
This function reads the 32-bit unsigned data value (DWORD, UDINT, MlpiLogicType) from the memory area...
MLPIRESULT mlpiLogicWriteMemoryAreaUlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULONG data)
This function writes the 32-bit unsigned data value (DWORD, UDINT, MlpiLogicType) to the memory area ...
#define MLPI_FAILED(hr)
Returns true if given error code was not successful.
MLPIRESULT mlpiLogicWriteMemoryAreaBool8(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG bitOffset, const BOOL8 data)
This function writes a Boolean value e.g. a bit (BOOL8, MlpiLogicType) to the memory area (MlpiApplic...
MLPIRESULT mlpiLogicWriteMemoryAreaUchar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const UCHAR data)
This function writes the 8-bit unsigned data value (BYTE, USINT, MlpiLogicType) to the memory area (M...
MLPIRESULT mlpiLogicReadMemoryAreaArrayUllong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULLONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit unsigned data values (LWORD, ULINT, MlpiLogicType) from the me...
long long LLONG
8 byte signed integer
MLPIRESULT mlpiLogicReadVariableBySymbolArrayBool8(const MLPIHANDLE connection, const WCHAR16 *symbol, BOOL8 *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of Boolean values (BOOL, MlpiLogicType) from a variable by symbolic acce...
MLPIRESULT mlpiLogicWriteVariableBySymbolArrayLong(const MLPIHANDLE connection, const WCHAR16 *symbol, const LONG *data, const ULONG numElements)
This function writes an array of 32-bit signed values (DINT, MlpiLogicType) to a variable by symbolic...
float FLOAT
4 byte floating point
MLPIRESULT mlpiLogicReadMemoryAreaUchar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, UCHAR *data)
This function reads the 8-bit unsigned data value (BYTE, USINT, MlpiLogicType) from the memory area (...
MLPIRESULT mlpiLogicReadMemoryAreaLlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LLONG *data)
This function reads the 64-bit signed data value (LINT, MlpiLogicType) from the memory area (MlpiAppl...
MLPIRESULT mlpiLogicReadMemoryAreaBool8(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG bitOffset, BOOL8 *data)
This function reads a bit as a BOOL8 (BOOL8, MlpiLogicType) from the memory area (MlpiApplicationMemo...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayUlong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULONG *data, const ULONG numElements)
This function writes an array of 32-bit unsigned data values (DWORD, UDINT, MlpiLogicType) to the mem...
double DOUBLE
8 byte floating point
MLPIRESULT mlpiLogicReadVariableBySymbolShort(const MLPIHANDLE connection, const WCHAR16 *symbol, SHORT *data)
This function reads a 16-bit signed value (INT, MlpiLogicType) from a variable by symbolic access...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayUlong(const MLPIHANDLE connection, const WCHAR16 *symbol, ULONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 32-bit unsigned values (DWORD, UDINT, TIME, DATE, DATE_AND_TIME...
MLPIRESULT mlpiLogicWriteMemoryAreaArrayUllong(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULLONG *data, const ULONG numElements)
This function writes an array of 64-bit unsigned data values (LWORD, ULINT, MlpiLogicType) to the mem...
MLPIRESULT mlpiLogicWriteVariableBySymbolChar(const MLPIHANDLE connection, const WCHAR16 *symbol, const CHAR data)
This function writes a given 8-bit signed value (SINT, MlpiLogicType) to a variable by symbolic acces...
unsigned long MLPIHANDLE
common MLPI-API handle value
MLPIRESULT mlpiLogicReadVariableBySymbolBool8(const MLPIHANDLE connection, const WCHAR16 *symbol, BOOL8 *data)
This function reads a boolean value (BOOL, MlpiLogicType) from a variable by symbolic access...
MLPIRESULT mlpiLogicWriteMemoryAreaChar(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const CHAR data)
This function writes the 8-bit signed data value (SINT, MlpiLogicType) to the memory area (MlpiApplic...
MlpiApplicationMemoryArea
This enumeration defines the memory areas 'Ix' (Input), 'Qx' (Output) and 'Mx' (Marker) of an applica...
MLPIRESULT mlpiLogicWriteVariableBySymbolBool8(const MLPIHANDLE connection, const WCHAR16 *symbol, const BOOL8 data)
This function writes a given Boolean value (BOOL, MlpiLogicType) to a variable by symbolic access...
MLPIRESULT mlpiLogicReadVariableBySymbolArrayUllong(const MLPIHANDLE connection, const WCHAR16 *symbol, ULLONG *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit unsigned values (LWORD, ULINT, MlpiLogicType) from a variable ...
int MLPIRESULT
common MLPI-API return value
MLPIRESULT mlpiLogicWriteMemoryAreaShort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const SHORT data)
This function writes the 16-bit signed data value (INT, MlpiLogicType) to the memory area (MlpiApplic...
MLPIRESULT utilLogicGetSymbolListExtended(MLPIHANDLE connection, const std::wstring &application, SymbolList &symbolList)
This functions reads the extended list of variables of a given application and returns it as as a Sym...
MLPIRESULT mlpiLogicReadMemoryAreaArrayDouble(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, DOUBLE *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 64-bit floating point data values (double precision, LREAL, MlpiLogicType) from the memory area (MlpiApplicationMemoryArea).
MLPIRESULT mlpiLogicReadMemoryAreaArrayShort(const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, SHORT *data, const ULONG numElements, ULONG *numElementsRet)
This function reads an array of 16-bit signed data values (INT, MlpiLogicType) from the memory area (...