Contains functions used to read different information of the target device.
MLPIRESULT mlpiSystemGetVersionInfo | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | component, | ||
WCHAR16 * | version, | ||
const ULONG | numElements | ||
) |
This function returns the version information of different components of the device. The component name has to be given as string. The following constants are already defined by the MLPI:
[in] | connection | Handle for multiple connections. |
[in] | component | String that identifies the component for which version string was read (see global constants e.g. MLPI_VERSION_FIRMWARE). |
[out] | version | String where the version information will be stored. Note that the format of the version information string may differ depending on the selected component. |
[in] | numElements | Number of WCHAR16 elements in 'version' available to read. |
MLPIRESULT mlpiSystemGetLanguage | ( | const MLPIHANDLE | connection, |
MlpiLanguage * | language | ||
) |
This function reads the current system language of the device (MlpiLanguage).
[in] | connection | Handle for multiple connections. |
[out] | language | Pointer to variable where the currently selected system language will be stored. |
MLPIRESULT mlpiSystemSetLanguage | ( | const MLPIHANDLE | connection, |
const MlpiLanguage | language | ||
) |
This function writes the system language of the device (MlpiLanguage).
[in] | connection | Handle for multiple connections. |
[in] | language | System language of the device to which it has to be switched. |
MLPIRESULT mlpiSystemGetName | ( | const MLPIHANDLE | connection, |
WCHAR16 * | name, | ||
const ULONG | numElements | ||
) |
This function reads the device name.
[in] | connection | Handle for multiple connections. |
[out] | name | String where the device name will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'name' available to read. |
MLPIRESULT mlpiSystemSetName | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | name | ||
) |
This function writes the device name.
[in] | connection | Handle for multiple connections. |
[in] | name | String which to be written to the device name. |
MLPIRESULT mlpiSystemGetIpAddress | ( | const MLPIHANDLE | connection, |
WCHAR16 * | ipAddress, | ||
const ULONG | numElements | ||
) |
This function reads the IP address of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "192.168.001.001" (IPv4).
[in] | connection | Handle for multiple connections. |
[out] | ipAddress | String where the IP address will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'ipAddress' available to read. |
MLPIRESULT mlpiSystemSetIpAddress | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | ipAddress | ||
) |
This function writes the IP address of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "192.168.001.001" (IPv4). A reboot is necessary for the new IP address to become active.
[in] | connection | Handle for multiple connections. |
[in] | ipAddress | String to be written to the IP address. |
MLPIRESULT mlpiSystemGetSubnetMask | ( | const MLPIHANDLE | connection, |
WCHAR16 * | subnet, | ||
const ULONG | numElements | ||
) |
This function reads the subnet mask of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "255.255.255.000" (IPv4).
[in] | connection | Handle for multiple connections. |
[out] | subnet | String where the subnet mask will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'subnet' available to read. |
MLPIRESULT mlpiSystemSetSubnetMask | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | subnet | ||
) |
This function writes the subnet mask of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "255.255.255.000" (IPv4).
[in] | connection | Handle for multiple connections. |
[in] | subnet | String to be written to the subnet mask. |
MLPIRESULT mlpiSystemGetGateway | ( | const MLPIHANDLE | connection, |
WCHAR16 * | gateway, | ||
const ULONG | numElements | ||
) |
This function reads the gateway address of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "192.168.001.001" (IPv4).
[in] | connection | Handle for multiple connections. |
[out] | gateway | String where the gateway address will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'gateway' available to read. |
MLPIRESULT mlpiSystemSetGateway | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | gateway | ||
) |
This function writes the gateway address of the device. Value is a string in quad-dotted notation of four decimal integers, e.g. "192.168.001.001" (IPv4).
[in] | connection | Handle for multiple connections. |
[in] | gateway | String to be written to the gateway address. |
MLPIRESULT mlpiSystemGetCurrentMode | ( | const MLPIHANDLE | connection, |
MlpiSystemMode * | mode | ||
) |
This function reads the current device mode (MlpiSystemMode).
[in] | connection | Handle for multiple connections. |
[out] | mode | Pointer to variable where the current mode of the device will be stored. |
MLPIRESULT mlpiSystemSetTargetMode | ( | const MLPIHANDLE | connection, |
const MlpiSystemMode | mode | ||
) |
This function writes the device mode (MlpiSystemMode). After writing the mode, the device will NOT be in this mode. It will be in the process of switching to this mode. In order to switch to a certain mode and perform an action while in this mode, you have to set the mode then read it back until the desired mode is reached.
[in] | connection | Handle for multiple connections. |
[in] | mode | Mode of the device to which it has to be switched. |
MLPIRESULT mlpiSystemGetTemperature | ( | const MLPIHANDLE | connection, |
FLOAT * | temperature | ||
) |
This function reads the current temperature of the device.
[in] | connection | Handle for multiple connections. |
[out] | temperature | Pointer to variable where the current temperature of the device will be stored. |
MLPIRESULT mlpiSystemGetTemperatureMax | ( | const MLPIHANDLE | connection, |
FLOAT * | temperature | ||
) |
This function reads the maximum temperature of the device.
[in] | connection | Handle for multiple connections. |
[out] | temperature | Pointer to variable where the maximum temperature of the device will be stored. |
MLPIRESULT mlpiSystemResetTemperature | ( | const MLPIHANDLE | connection | ) |
This function reset the temperature values of the device to the current temperature.
[in] | connection | Handle for multiple connections. |
MLPIRESULT mlpiSystemGetTargetId | ( | const MLPIHANDLE | connection, |
LLONG * | targetId | ||
) |
This function reads the target ID of the device.
[in] | connection | Handle for multiple connections. |
[out] | targetId | Pointer to variable where the target ID of the device will be stored. |
MLPIRESULT mlpiSystemGetCpuLoad | ( | const MLPIHANDLE | connection, |
FLOAT * | load | ||
) |
This function reads the current CPU load device in percent.
[in] | connection | Handle for multiple connections. |
[out] | load | Pointer to variable where the current cpu load of the device will be stored. |
MLPIRESULT mlpiSystemGetCpuLoadMax | ( | const MLPIHANDLE | connection, |
FLOAT * | load | ||
) |
This function reads the maximum CPU load of the device in percent.
[in] | connection | Handle for multiple connections. |
[out] | load | Pointer to variable where the maximum cpu load of the device will be stored. |
MLPIRESULT mlpiSystemResetCpuLoad | ( | const MLPIHANDLE | connection | ) |
This function reset the CPU load values of the device to the current CPU load.
[in] | connection | Handle for multiple connections. |
MLPIRESULT mlpiSystemGetOperationHours | ( | const MLPIHANDLE | connection, |
ULONG * | operatingTime | ||
) |
This function reads the operating time in industrial minutes of the device.
[in] | connection | Handle for multiple connections. |
[out] | operatingTime | Pointer to variable where the operating time of the device will be stored. |
MLPIRESULT mlpiSystemGetDateAndTimeUtc | ( | const MLPIHANDLE | connection, |
MlpiDateAndTime * | dateTime | ||
) |
This function reads the system date and time (broken down time, UTC) of the device.
[in] | connection | Handle for multiple connections. |
[out] | dateTime | Pointer to structure where the date and time of the device will be stored. |
MLPIRESULT mlpiSystemSetDateAndTimeUtc | ( | const MLPIHANDLE | connection, |
MlpiDateAndTime | dateTime | ||
) |
This function writes the system date and time (broken down time, UTC) of the device.
[in] | connection | Handle for multiple connections. |
[in] | dateTime | Structure to be written to the date and time of the device. |
MLPIRESULT mlpiSystemSetDateAndTimeUtcByNtp | ( | const MLPIHANDLE | connection, |
const ULONG | timeout, | ||
const WCHAR16 * | server, | ||
const USHORT | port = 0 |
||
) |
This function writes the system date and time of the device by a NTP server.
[in] | connection | Handle for multiple connections. |
[in] | timeout | Timeout until NTP server response. |
[in] | server | NTP server URI. |
[in] | port | Port of NTP server (optional). |
MLPIRESULT mlpiSystemGetSerialNumber | ( | const MLPIHANDLE | connection, |
WCHAR16 * | serialNumber, | ||
const ULONG | numElements | ||
) |
This function reads the serial number of the device.
[in] | connection | Handle for multiple connections. |
[out] | serialNumber | String where the serial number will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'serialNumber' available to read. |
MLPIRESULT mlpiSystemGetHardwareDetails | ( | const MLPIHANDLE | connection, |
WCHAR16 * | hardwareDetails, | ||
const ULONG | numElements | ||
) |
This function reads the hardware details of the device.
[in] | connection | Handle for multiple connections. |
[out] | hardwareDetails | String where the hardware details will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'hardwareDetails' available to read. |
MLPIRESULT mlpiSystemGetLocalBusConfiguration | ( | const MLPIHANDLE | connection, |
WCHAR16 * | configuration, | ||
const ULONG | numElements | ||
) |
This function reads the local bus configuration of the device. Value is a string in semicolon separated format like "A005: netX (0x0100);A006: Sercos III PCI-BusMaster (0x000E);A007: n/a (0x0000);A254: SRAM (0x0013)". Each separated segment contains the address, the name and an identification code (hex format).
[in] | connection | Handle for multiple connections. |
[out] | configuration | String where the local bus configuration will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'configuration' available to read. |
MLPIRESULT mlpiSystemGetFunctionModulBusConfiguration | ( | const MLPIHANDLE | connection, |
WCHAR16 * | configuration, | ||
const ULONG | numElements | ||
) |
This function reads the function module bus configuration of the device. Value is a string in semicolon separated format like "A001: SERCOS III (0x002B);A002: n/a (0x0000);A003: n/a (0x0000);A004: n/a (0x0000)". Each separated segment contains the address, the name and the identification code (hex format).
[in] | connection | Handle for multiple connections. |
[out] | configuration | String where the function module bus configuration will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'configuration' available to read. |
MLPIRESULT mlpiSystemGetFunctionModuleHardwareDetails | ( | const MLPIHANDLE | connection, |
const ULONG | functionModuleNum, | ||
WCHAR16 * | hardwareDetails, | ||
const ULONG | numElements | ||
) |
This function reads the hardware details of the function modules on the device.
[in] | connection | Handle for multiple connections. |
[in] | functionModuleNum | Value indicating the number of the function module. Valid values are 1 to 4. |
[out] | hardwareDetails | String where the hardware details will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'hardwareDetails' available to read. |
MLPIRESULT mlpiSystemGetMacAddress | ( | const MLPIHANDLE | connection, |
WCHAR16 * | macAddress, | ||
const ULONG | numElements | ||
) |
This function reads the MAC address of the device. Value is a string of format "00:00:00:00:00:00".
[in] | connection | Handle for multiple connections. |
[out] | macAddress | String where the MAC address will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'macAddress' available to read. |
MLPIRESULT mlpiSystemGetMemoryInfo | ( | const MLPIHANDLE | connection, |
MlpiMemoryInfo * | memoryInfo | ||
) |
This function retrieves some information about the current free RAM on the device. The figures are given in Bytes. The function can be used to trace the total system performance of the device.
[in] | connection | Handle for multiple connections. |
[out] | memoryInfo | Pointer to structure where the memory information will be stored. |
MLPIRESULT mlpiSystemGetSpecialPath | ( | const MLPIHANDLE | connection, |
const MlpiSpecialPath | pathIdentifier, | ||
WCHAR16 * | path, | ||
const ULONG | numElements | ||
) |
This function returns the platform specific absolute path of given symbolic path (MlpiSpecialPath). For example, it is possible to retrieve the absolute path of the system path on the connected device. This information can then be used to access files via ftp on the given path. This function is necessary because it is not guaranteed that the system path always has the same absolute path. Those special paths can vary in different operating systems or on storage devices.
[in] | connection | Handle for multiple connections. |
[in] | pathIdentifier | Enumeration that identifies the path to query for. |
[out] | path | String where the special path will be stored. Starts and ends with path delimiter ("/"). |
[in] | numElements | Number of WCHAR16 elements in 'path' available to read. |
MLPIRESULT mlpiSystemGetSpecialPathInfo | ( | const MLPIHANDLE | connection, |
const MlpiSpecialPath | pathIdentifier, | ||
MlpiSpecialPathInfo * | pathInfo | ||
) |
This function retrieves some information about the current spaces of special paths on the device. The figures are given in Bytes.
[in] | connection | Handle for multiple connections. |
[in] | pathIdentifier | Variable that identifies the path to query for. |
[out] | pathInfo | Pointer to structure where the path information will be stored. |
MLPIRESULT mlpiSystemGetRootPaths | ( | const MLPIHANDLE | connection, |
WCHAR16 * | paths, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function returns all available platform specific root paths (e.g. "/ata0a/;/ata0b;..."). The root paths are separated by a semicolon (;). The information about the root paths can be used to access files via ftp. This function is necessary because it is not guaranteed that the root path always has the same absolute path, meaning the root paths can varies in different operating systems or on storage devices.
[in] | connection | Handle for multiple connections. |
[out] | paths | String where all available root paths will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'paths' available to read. |
[out] | numElementsRet | Number of elements used. |
MLPIRESULT mlpiSystemClearError | ( | const MLPIHANDLE | connection | ) |
MLPIRESULT mlpiSystemReboot | ( | const MLPIHANDLE | connection | ) |
This function performs a reboot of the complete device. This is only allowed if the device is switched to initialization mode (MLPI_SYSTEMMODE_P0 using mlpiSystemSetTargetMode) before.
[in] | connection | Handle for multiple connections. |
MLPIRESULT mlpiSystemCleanup | ( | const MLPIHANDLE | connection | ) |
This function performs a reboot and total clean up of the complete device. This is only allowed if the device is switched to initialization mode (MLPI_SYSTEMMODE_P0 using mlpiSystemSetTargetMode) before. Please note that the device reboots immediately and that all project data is deleted during the next boot up.
[in] | connection | Handle for multiple connections. |
MLPIRESULT mlpiSystemGetLicenseInformation | ( | const MLPIHANDLE | connection, |
WCHAR16 * | licenses, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads the license information of the device (raw format).
[in] | connection | Handle for multiple connections. |
[out] | licenses | String where the licence information will be stored. |
[in] | numElements | Number of WCHAR16 elements in 'licenses' available to read. |
[in] | numElementsRet | Number of elements used. |
MLPIRESULT mlpiSystemGetLimit | ( | const MLPIHANDLE | connection, |
MlpiSystemLimit | limit, | ||
LLONG * | value | ||
) |
This function reads a limit (e.g. maximum number of applications) of the device (MlpiSystemLimit).
[in] | connection | Handle for multiple connections. |
[out] | limit | Limit selector. |
[out] | value | Limit value. |