Functions | |
MLPIRESULT | mlpiLogicReadMemoryAreaBool8 (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG bitOffset, BOOL8 *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaChar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, CHAR *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaUchar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, UCHAR *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaShort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, SHORT *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaUshort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, USHORT *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaLong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LONG *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaUlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULONG *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaLlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LLONG *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaUllong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULLONG *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaFloat (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, FLOAT *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaDouble (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, DOUBLE *data) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayChar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, CHAR *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayUchar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, UCHAR *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayShort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, SHORT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayUshort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, USHORT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayLong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayUlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayLlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, LLONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayUllong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, ULLONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayFloat (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, FLOAT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiLogicReadMemoryAreaArrayDouble (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, DOUBLE *data, const ULONG numElements, ULONG *numElementsRet) |
These functions read the following memory areas: "%Ix" (Input), "%Qx" (Output) and "%Mx" (Marker)
The table shows the PLC data types within the IEC61131 environment 'IndraLogic' and the corresponding data types within the C/C++ environment (e.g. 'Workbench OEM') of the MLPI. On reading from memory areas, on default, you use the functions below named after the MLPI data type like mlpiLogicReadMemoryAreaShort. If you include the header mlpiLogicHelper.h, you can also use the equivalent functions named after the IEC61131 data types like mlpiLogicReadMemoryAreaWord or like mlpiLogicReadMemoryAreaInt.
Number of Bits | Data types of PLC | Data types of MLPI |
---|---|---|
8 | BOOL | BOOL8 |
8 | SINT | CHAR |
16 | INT | SHORT |
32 | DINT | LONG |
64 | LINT | LLONG |
8 | USINT | UCHAR |
16 | UINT | USHORT |
32 | UDINT | ULONG |
64 | ULINT | ULLONG |
8 | BYTE | UCHAR |
16 | WORD | USHORT |
32 | DWORD | ULONG |
64 | LWORD | ULLONG |
32 | REAL | FLOAT |
64 | LREAL | DOUBLE |
8n | STRING | WCHAR16 |
16n | WSTRING | WCHAR16 |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | bitOffset | Bit offset based on zero (e.g. IX0.0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 the memory area (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the value will be stored. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of CHAR elements in 'data' available to read. |
[out] | numElementsRet | Number of elements used. |
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 memory area (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of UCHAR elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of SHORT elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 memory area (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of USHORT elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of LONG elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 memory area (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of ULONG elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of LLONG elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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 memory area (MlpiApplicationMemoryArea).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of ULLONG elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of FLOAT elements in data available to read. |
[out] | numElementsRet | Number of elements used. |
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).
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[in] | area | Memory area of access (MlpiApplicationMemoryArea). |
[in] | byteOffset | Byte offset based on zero (e.g. IB0). |
[out] | data | Pointer to variable where the values will be stored. |
[in] | numElements | Number of DOUBLE elements in data available to read. |
[out] | numElementsRet | Number of elements used. |