Functions | |
MLPIRESULT | mlpiIoReadFieldbusIoBool8 (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG bitOffset, BOOL8 *data) |
MLPIRESULT | mlpiIoReadFieldbusIoChar (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, CHAR *data) |
MLPIRESULT | mlpiIoReadFieldbusIoUchar (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, UCHAR *data) |
MLPIRESULT | mlpiIoReadFieldbusIoShort (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, SHORT *data) |
MLPIRESULT | mlpiIoReadFieldbusIoUshort (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, USHORT *data) |
MLPIRESULT | mlpiIoReadFieldbusIoLong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, LONG *data) |
MLPIRESULT | mlpiIoReadFieldbusIoUlong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, ULONG *data) |
MLPIRESULT | mlpiIoReadFieldbusIoLlong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, LLONG *data) |
MLPIRESULT | mlpiIoReadFieldbusIoUllong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, ULLONG *data) |
MLPIRESULT | mlpiIoReadFieldbusIoFloat (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, FLOAT *data) |
MLPIRESULT | mlpiIoReadFieldbusIoDouble (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, DOUBLE *data) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayChar (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, CHAR *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayUchar (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, UCHAR *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayShort (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, SHORT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayUshort (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, USHORT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayLong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, LONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayUlong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, ULONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayLlong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, LLONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayUllong (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, ULLONG *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayFloat (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, FLOAT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiIoReadFieldbusIoArrayDouble (const MLPIHANDLE connection, const WCHAR16 *masterName, const WCHAR16 *slaveAddress, const MlpiIoFieldbusArea area, const ULONG byteOffset, DOUBLE *data, const ULONG numElements, ULONG *numElementsRet) |
These functions read from fieldbus I/Os.
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 fieldbus I/Os, on default, you use the functions below named after the MLPI data type like mlpiIoReadFieldbusIoUlong. If you include the header mlpiIoHelper.h, you can furthermore use the equivalent functions named after the IEC61131 data types like mlpiIoReadFieldbusIoDword or like mlpiIoReadFieldbusIoUdint.
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 mlpiIoReadFieldbusIoBool8 | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | bitOffset, | ||
BOOL8 * | data | ||
) |
This function reads a bit from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | bitOffset | Bit offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoChar | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
CHAR * | data | ||
) |
This function reads the 8-bit signed data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoUchar | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
UCHAR * | data | ||
) |
This function reads the 8-bit unsigned data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoShort | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
SHORT * | data | ||
) |
This function reads the 16-bit signed data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoUshort | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
USHORT * | data | ||
) |
This function reads the 16-bit unsigned data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data, where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoLong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
LONG * | data | ||
) |
This function reads the 32-bit signed data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data, where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoUlong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
ULONG * | data | ||
) |
This function reads the 32-bit unsigned data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoLlong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
LLONG * | data | ||
) |
This function reads the 64-bit signed data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoUllong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
ULLONG * | data | ||
) |
This function reads the 64-bit unsigned data value from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoFloat | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
FLOAT * | data | ||
) |
This function reads the 32-bit floating point data value (single precision) from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoDouble | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
DOUBLE * | data | ||
) |
This function reads the 64-bit floating point data value (double precision) from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayChar | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
CHAR * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 8-bit signed data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayUchar | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
UCHAR * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 8-bit unsigned data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayShort | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
SHORT * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 16-bit signed data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayUshort | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
USHORT * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 16-bit unsigned data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayLong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
LONG * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 32-bit signed data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayUlong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
ULONG * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 32-bit unsigned data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayLlong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
LLONG * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 64-bit signed data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[out] | data | Pointer to data where the value will be stored. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayUllong | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | area, | ||
const ULONG | byteOffset, | ||
ULLONG * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads an array of 64-bit unsigned data values from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayFloat | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | 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) from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
[out] | data | Pointer to data where the value will be stored. |
MLPIRESULT mlpiIoReadFieldbusIoArrayDouble | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | masterName, | ||
const WCHAR16 * | slaveAddress, | ||
const MlpiIoFieldbusArea | 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) from a fieldbus I/O.
[in] | connection | Handle for multiple connections. |
[in] | masterName | Name of fieldbus master. The name of the fieldbus master is the name of the regarding master node in your IndraWorks project. You can also retrieve the list of configured master names by using the function mlpiIoReadFieldbusMasterList. |
[in] | slaveAddress | Address of fieldbus slave. |
[in] | area | I/O area of access (0==MLPI_IO_AREA_INPUT, 1==MLPI_IO_AREA_OUTPUT). |
[in] | byteOffset | Byte offset within the I/O range of the fieldbus slave. |
[in] | numElements | Number of elements in data available to read. |
[out] | numElementsRet | Pointer to data where number of elements in complete data will be stored. |
[out] | data | Pointer to data where the value will be stored. |