Functions | |
MLPIRESULT | mlpiLogicWriteMemoryAreaBool8 (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG bitOffset, const BOOL8 data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaChar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const CHAR data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaUchar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const UCHAR data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaShort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const SHORT data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaUshort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const USHORT data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaLong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LONG data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaUlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULONG data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaLlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LLONG data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaUllong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULLONG data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaFloat (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const FLOAT data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaDouble (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const DOUBLE data) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayChar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const CHAR *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayUchar (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const UCHAR *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayShort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const SHORT *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayUshort (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const USHORT *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayLong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LONG *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayUlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULONG *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayLlong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const LLONG *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayUllong (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const ULLONG *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayFloat (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const FLOAT *data, const ULONG numElements) |
MLPIRESULT | mlpiLogicWriteMemoryAreaArrayDouble (const MLPIHANDLE connection, const WCHAR16 *application, const MlpiApplicationMemoryArea area, const ULONG byteOffset, const DOUBLE *data, const ULONG numElements) |
These functions write 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 writing to memory areas, on default, you use the functions below named after the MLPI data type like mlpiLogicWriteMemoryAreaUllong. If you include the header mlpiLogicHelper.h, you can also use the equivalent functions named after the IEC61131 data types like mlpiLogicWriteMemoryAreaLword or like mlpiLogicWriteMemoryAreaUlint.
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 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 (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. QX0.0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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).
[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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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).
[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. QB0). |
[in] | data | Variable which contains the value that should be written. |
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 (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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of CHAR elements in 'data*' available to write. |
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 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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of UCHAR elements in 'data' available to write. |
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 (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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of SHORT elements in 'data' available to write. |
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 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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of USHORT elements in 'data' available to write. |
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 (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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of LONG elements in 'data' available to write. |
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 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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of ULONG elements in 'data' available to write. |
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 (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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of LLONG elements in 'data' available to write. |
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 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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of ULLONG elements in 'data' available to write. |
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).
[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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of FLOAT elements in 'data' available to write. |
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).
[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. QB0). |
[in] | data | Pointer to variable which contains the values that should be written. |
[in] | numElements | Number of DOUBLE elements in 'data' available to write. |