Inherits IDispatch.
Classes | |
struct | DateAndTime |
struct | Diagnosis |
struct | MemoryInfo |
struct | SpecialPathInfo |
Public Types |
Public Member Functions | |
HRESULT | GetName ([out, retval] BSTR *name) |
HRESULT | SetName ([in] BSTR name) |
HRESULT | GetTemperature ([out, retval] FLOAT *temperature) |
HRESULT | GetTemperatureMax ([out, retval] FLOAT *temperature) |
HRESULT | GetIpAddress ([out, retval] BSTR *address) |
HRESULT | SetIpAddress ([in] BSTR address) |
HRESULT | GetSubnetMask ([out, retval] BSTR *address) |
HRESULT | SetSubnetMask ([in] BSTR address) |
HRESULT | GetGateway ([out, retval] BSTR *address) |
HRESULT | SetGateway ([in] BSTR address) |
HRESULT | GetCurrentMode ([out, retval] SystemMode *mode) |
HRESULT | SetTargetMode ([in] SystemMode mode) |
HRESULT | GetCpuLoad ([out, retval] FLOAT *cpuLoad) |
HRESULT | GetCpuLoadMax ([out, retval] FLOAT *cpuLoad) |
HRESULT | GetDisplayedDiagnosis ([out, retval] struct Diagnosis *diagnosis) |
HRESULT | GetNewestDiagnosisIndex ([out, retval] LONG *index) |
HRESULT | GetOldestDiagnosisIndex ([out, retval] LONG *index) |
HRESULT | GetDiagnosisLog ([in] LONG startIndex, [in] LONG numToRead, [out, retval] SAFEARRAY(struct Diagnosis)*diagnosis) |
HRESULT | ConvertDiagnosisNumberToText ([in] VARIANT diagnosisNumber, [out, retval] BSTR *diagnosis) |
HRESULT | GetOperationHours ([out, retval] LONG *hours) |
HRESULT | GetVersionInfo ([in] BSTR component, [out, retval] BSTR *version) |
HRESULT | GetSerialNumber ([out, retval] BSTR *serial) |
HRESULT | GetMacAddress ([out, retval] BSTR *address) |
HRESULT | ClearError (void) |
HRESULT | Reboot (void) |
HRESULT | Cleanup (void) |
HRESULT | GetLanguage ([out, retval] Language *language) |
HRESULT | SetLanguage ([in] Language language) |
HRESULT | GetHardwareDetails ([out, retval] BSTR *hardwareDetails) |
HRESULT | GetMemoryInfo ([out, retval] struct MemoryInfo *memory) |
HRESULT | GetDateAndTimeUtc ([out, retval] struct DateAndTime *dateTime) |
HRESULT | GetSpecialPath ([in] SpecialPath pathIdentifier, [out, retval] BSTR *path) |
HRESULT | GetSpecialPathInfo ([in] SpecialPath path, [out, retval] struct SpecialPathInfo *pathInfo) |
HRESULT | SetDiagnosis ([in] DiagnosisCategory category, [in] LONG number, BSTR diagnosisText) |
Public Attributes | |
const BSTR | VERSION_FIRMWARE = "VERSION_FIRMWARE" |
const BSTR | VERSION_HARDWARE = "VERSION_HARDWARE" |
const BSTR | VERSION_LOGIC = "VERSION_LOGIC" |
const BSTR | VERSION_BSP = "VERSION_BSP" |
const BSTR | VERSION_MLPI_SERVER_CORE = "VERSION_MLPI_SERVER_CORE" |
Definition of the ISystem interface which contains various system settings of the connected MLPI Device.
The ISystem interface contains various methods of reading or writing system-relevant settings of the connected MLPI Device. This includes the diagnosis logbook, Ethernet settings, health status and much more.
Definition at line 72 of file ISystem.idl.
enum ISystem::Language |
This enumeration must be used when accessing language settings in the device.
Enumerator | |
---|---|
LANGUAGE_GERMAN |
device language German |
LANGUAGE_ENGLISH |
device language English |
Definition at line 87 of file ISystem.idl.
enum ISystem::SystemMode |
This enumeration must be used when accessing the mode settings in the device. The mode can only be set to initialization mode (MLPI_SYSTEMMODE_P0), parameter mode (MLPI_SYSTEMMODE_P2) or operation mode (MLPI_SYSTEMMODE_BB). Also in case of an error during a mode transition, the read only modes can be displayed.
Definition at line 99 of file ISystem.idl.
This enumeration must be used when accessing the diagnostic details in the device.
Enumerator | |
---|---|
DIAGNOSIS_PASSIVE |
Passive. |
DIAGNOSIS_ACTIVE |
Active. |
DIAGNOSIS_RESET |
Reset. |
DIAGNOSIS_UNKNOWN |
Unknown. |
Definition at line 111 of file ISystem.idl.
This enumeration must be used when accessing the diagnostic details in the device.
Enumerator | |
---|---|
DESPATCHER_CONTROL |
Control. |
DESPATCHER_DRIVE |
Drive. |
DESPATCHER_LOGIC |
PLC FB. |
DESPATCHER_AXIS |
Axis. |
DESPATCHER_KINEMATIC |
Kinematic. |
DESPATCHER_PCI |
PCI. |
Definition at line 121 of file ISystem.idl.
enum ISystem::SpecialPath |
This enumeration contains different logical paths on the device. Use GetSpecialPath to retrieve absolute path information on a specific device.
Definition at line 134 of file ISystem.idl.
This enumeration contains different diagnosis categories on the device.
Definition at line 157 of file ISystem.idl.
HRESULT ISystem::GetName | ( | [out, retval] BSTR * | name | ) |
This method reads the device name.
[out] | name | Returns the name of the device. |
mlpiSystemGetName
, where you can find further documentation. HRESULT ISystem::SetName | ( | [in] BSTR | name | ) |
This method sets the device name.
[in] | name | Writes the name of the device. |
mlpiSystemSetName
, where you can find further documentation. HRESULT ISystem::GetTemperature | ( | [out, retval] FLOAT * | temperature | ) |
This method reads the device temperature.
[out] | temperature | Returns the temperature of the device. |
mlpiSystemGetTemperature
, where you can find further documentation. HRESULT ISystem::GetTemperatureMax | ( | [out, retval] FLOAT * | temperature | ) |
This method reads the device maximum temperature.
[out] | temperature | Returns the maximum temperature of the device. |
mlpiSystemGetTemperatureMax
, where you can find further documentation. HRESULT ISystem::GetIpAddress | ( | [out, retval] BSTR * | address | ) |
This method reads the IP address of the device. Value is a UTF16 string in dot format "XXX.XXX.XXX.XXX".
[out] | address | Returns the the IP address of the device as string. |
mlpiSystemGetIpAddress
, where you can find further documentation. HRESULT ISystem::SetIpAddress | ( | [in] BSTR | address | ) |
This method writes the IP address of the device. Value is a string in dot format "XXX.XXX.XXX.XXX". Reboot necessary for the new IP address to become active.
[in] | address | String holding the new IP address to be set for the device. |
mlpiSystemSetIpAddress
, where you can find further documentation. HRESULT ISystem::GetSubnetMask | ( | [out, retval] BSTR * | address | ) |
This method reads the Subnet mask of the device. Value is a UTF16 string in dot format "XXX.XXX.XXX.XXX".
[out] | address | Returns the subnet mask of the device. |
mlpiSystemGetSubnetMax
, where you can find further documentation. HRESULT ISystem::SetSubnetMask | ( | [in] BSTR | address | ) |
This method writes the Subnet mask of the device. Value is a UTF16 string in dot format "XXX.XXX.XXX.XXX".
[in] | address | String containing the new subnet mask. |
mlpiSystemSetSubnetMask
, where you can find further documentation. HRESULT ISystem::GetGateway | ( | [out, retval] BSTR * | address | ) |
This method reads the Gateway address of the device. Value is a UTF16 string in dot format "XXX.XXX.XXX.XXX".
[out] | address | Returns the current gateway address of the device. |
mlpiSystemGetGateway
, where you can find further documentation. HRESULT ISystem::SetGateway | ( | [in] BSTR | address | ) |
This method writes the Gateway address of the device. Value is a UTF16 string in dot format "XXX.XXX.XXX.XXX".
[in] | address | String containing the new gateway address. |
mlpiSystemSetGateway
, where you can find further documentation. HRESULT ISystem::GetCurrentMode | ( | [out, retval] SystemMode * | mode | ) |
This method reads the device mode.
[out] | mode | Returns the current system mode of the device. |
mlpiSystemGetCurrentMode
, where you can find further documentation. HRESULT ISystem::SetTargetMode | ( | [in] SystemMode | mode | ) |
This function writes the control mode. After writing the mode, the control 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] | mode | The commanded target mode for the device to switch to. |
mlpiSystemSetTargetMode
, where you can find further documentation. HRESULT ISystem::GetCpuLoad | ( | [out, retval] FLOAT * | cpuLoad | ) |
This method reads the device CPU load.
[out] | cpuLoad | Returns the current CPU load of the device. |
mlpiSystemGetCpuLoad
, where you can find further documentation. HRESULT ISystem::GetCpuLoadMax | ( | [out, retval] FLOAT * | cpuLoad | ) |
This method reads the device maximum CPU Load.
[out] | cpuLoad | Returns the maximum CPU load of the device. |
mlpiSystemGetCpuLoadMax
, where you can find further documentation. HRESULT ISystem::GetDisplayedDiagnosis | ( | [out, retval] struct Diagnosis * | diagnosis | ) |
This function reads the displayed diagnostic message of the device. The diagnosis displayed is the diagnosis with the highest severity of all currently active diagnoses. This means that the displayed diagnostic message can differ from the newest or most recently inserted diagnostic message.
[out] | diagnosis | Returns structure with information about the diagnosis. |
mlpiSystemGetDisplayedDiagnosis
, where you can find further documentation. HRESULT ISystem::GetNewestDiagnosisIndex | ( | [out, retval] LONG * | index | ) |
To each new diagnosis in the diagnosis logbook, a unique incremented diagnosis index is assigned. This method returns the index of the newest and therefore most recently inserted diagnosis. This index can be used as a parameter with the function mlpiSystemGetDiagnosisLog to read the complete logbook of the newest diagnostic messages.
[out] | index | Receives the current index of the newest diagnosis as integer. |
mlpiSystemGetNewestDiagnosisIndex
, where you can find further documentation. HRESULT ISystem::GetOldestDiagnosisIndex | ( | [out, retval] LONG * | index | ) |
As the memory of the device is limited, it is not possible to hold all diagnostic messages in the logbook from the start of power up. Because of this, older diagnostic messages are first swapped to disk and then discarded. Use this function to get the index of the oldest diagnostic message that is still stored in memory and can be returned by the function mlpiSystemGetDiagnosisLog.
[out] | index | Receives the index of the oldest available diagnosis as integer. |
mlpiSystemGetOldestDiagnosisIndex
, where you can find further documentation. HRESULT ISystem::GetDiagnosisLog | ( | [in] LONG | startIndex, |
[in] LONG | numToRead, | ||
[out, retval] SAFEARRAY(struct Diagnosis)* | diagnosis | ||
) |
This method reads and returns the device diagnosis log. The method returns an array of diagnostic messages from the newest to the oldest diagnostic message. Each diagnosis in the diagnosis logbook has a unique incrementing diagnosis index. You need to specify from which index you want to start reading the diagnosis logbook. To get the index of the newest and therefore most recently inserted diagnosis, you can use the method GetNewestDiagnosisIndex. As the memory of the device is limited, it is not possible to hold all diagnostic messages in the logbook from the start of power up. Because of this, older diagnostic messages are first swapped to disk and then discarded. Use the function GetOldestDiagnosisIndex to get the oldest available diagnosis to read. Diagnostic messages which are not located between the newest and oldest diagnosis index can no longer be read using this method. This function will not return an error if the number of diagnoses you want to read is larger than the number of diagnoses available.
[in] | startIndex | Index of the first diagnosis index to start reading. This is the newest(highest) index. |
[in] | numToRead | Number of diagnostic messages to read. |
[out] | diagnosis | Returns an array of diagnosis structs. Each element for a diagnosis in the log. |
mlpiSystemGetDiagnosisLog
, where you can find further documentation. HRESULT ISystem::ConvertDiagnosisNumberToText | ( | [in] VARIANT | diagnosisNumber, |
[out, retval] BSTR * | diagnosis | ||
) |
This function tries to retrieve a textual description for a given diagnosis number. Please note that this is not possible for every diagnosis number that is returned from the system. This includes user-specific diagnosis numbers or diagnosis numbers which represent a group of error conditions. In case no match was found the string "No entry found in data base" is returned.
[in] | diagnosisNumber | Diagnosis number to be translated into text. |
[out] | diagnosis | Returns the diagnosis text as string. |
mlpiSystemConvertDiagnosisNumberToText
, where you can find further documentation. HRESULT ISystem::GetOperationHours | ( | [out, retval] LONG * | hours | ) |
This method reads the device operational hours.
[out] | hours | Returns the number of operation hours of the device as integer. |
mlpiSystemGetOperationHours
, where you can find further documentation. HRESULT ISystem::GetVersionInfo | ( | [in] BSTR | component, |
[out, retval] BSTR * | version | ||
) |
This method reads the hardware version.
[in] | component | String which specifies the component the version of which you want to read. |
[out] | version | Returns a version struct containing version information about the component. |
mlpiSystemGetVersionInfo
, where you can find further documentation. HRESULT ISystem::GetSerialNumber | ( | [out, retval] BSTR * | serial | ) |
This method reads the serial number of the device.
[out] | serial | Returns the serial number of the device as string. |
mlpiSystemGetSerialNumber
, where you can find further documentation. HRESULT ISystem::GetMacAddress | ( | [out, retval] BSTR * | address | ) |
This method reads the MAC address of the device. Value is a UTF16 string in format "00:00:00:00:00:00".
[out] | address | Returns the MAC address of the man connection of the device as string. |
mlpiSystemGetMacAddress
, where you can find further documentation. HRESULT ISystem::ClearError | ( | void | ) |
This function clears pending errors.
mlpiSystemClearError
, where you can find further documentation. HRESULT ISystem::Reboot | ( | void | ) |
This function performs a reboot of the complete device. This is only allowed if the device is switched to P0 (SYSTEMMODE_P0) beforehand.
mlpiSystemReboot
, where you can find further documentation. HRESULT ISystem::Cleanup | ( | void | ) |
This function performs a reboot and total clean up of the complete device. This is only allowed if the device is switched to P0 (SYSTEMMODE_P0) beforehand. Please note that the device reboots immediately and that all project data are deleted during the next boot up.
mlpiSystemCleanup
, where you can find further documentation. HRESULT ISystem::GetLanguage | ( | [out, retval] Language * | language | ) |
This method reads the system language of the device.
[out] | language | Returns the current language setting of the device. |
mlpiSystemGetLanguage
, where you can find further documentation. HRESULT ISystem::SetLanguage | ( | [in] Language | language | ) |
This method writes the system language of the device. The language setting will affect the messages shown in the device display for example.
[in] | language | The new language to switch to. |
mlpiSystemSetLanguage
, where you can find further documentation. HRESULT ISystem::GetHardwareDetails | ( | [out, retval] BSTR * | hardwareDetails | ) |
This method reads the hardware details of the device.
[out] | hardwareDetails | Returns a hardware information string. |
mlpiSystemGetHardwareDetails
, where you can find further documentation. HRESULT ISystem::GetMemoryInfo | ( | [out, retval] struct MemoryInfo * | memory | ) |
This method retrieves information about the RAM which is currently free on the device. The function can be used to trace the total system performance of the device.
[out] | memory | Returns the current memory information of the device. |
mlpiSystemGetMemoryInfo
, where you can find further documentation. HRESULT ISystem::GetDateAndTimeUtc | ( | [out, retval] struct DateAndTime * | dateTime | ) |
This method reads the device system time.
[out] | dateTime | Returns a structure with detailed time information of the on-board clock of the device. |
mlpiSystemGetDateAndTimeUtc
, where you can find further documentation. HRESULT ISystem::GetSpecialPath | ( | [in] SpecialPath | pathIdentifier, |
[out, retval] BSTR * | path | ||
) |
This function returns the platform-specific absolute path of the given symbolic path. 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 on different operating systems or storage devices.
[in] | pathIdentifier | Enumeration that identifies the path to query. |
[out] | path | String where the special path will be stored. Starts and ends with path delimiter ("/"). |
mlpiSystemGetSpecialPath
, where you can find further documentation. HRESULT ISystem::GetSpecialPathInfo | ( | [in] SpecialPath | path, |
[out, retval] struct SpecialPathInfo * | pathInfo | ||
) |
This method retrieves information about the currently free spaces of special paths on the device.
[in] | path | Root path which identifies the volume from which to retrieve the free disk space. |
[out] | pathInfo | Returns the current path information about the device. |
mlpiSystemGetSpecialPathInfo
, where you can find further documentation. HRESULT ISystem::SetDiagnosis | ( | [in] DiagnosisCategory | category, |
[in] LONG | number, | ||
BSTR | diagnosisText | ||
) |
This function writes a diagnosis with message to the diagnosis system of the device.
[in] | category | Diagnosis category (DiagnosisCategory). |
[in] | number | User-specific diagnosis number. (Maximum 4 hexadecimal characters!) |
[in] | diagnosisText | Diagnosis text. |
mlpiSystemSetDiagnosis
, where you can find further documentation. const BSTR ISystem::VERSION_FIRMWARE = "VERSION_FIRMWARE" |
This variable defines the value to read the firmware version string.
Definition at line 75 of file ISystem.idl.
const BSTR ISystem::VERSION_HARDWARE = "VERSION_HARDWARE" |
This variable defines the value to read the hardware version string.
Definition at line 77 of file ISystem.idl.
const BSTR ISystem::VERSION_LOGIC = "VERSION_LOGIC" |
This variable defines the value to read the logic version string.
Definition at line 79 of file ISystem.idl.
const BSTR ISystem::VERSION_BSP = "VERSION_BSP" |
This variable defines the value to read the board support version string.
Definition at line 81 of file ISystem.idl.
const BSTR ISystem::VERSION_MLPI_SERVER_CORE = "VERSION_MLPI_SERVER_CORE" |
This variable defines the value to read the MLPI server core version string.
Definition at line 83 of file ISystem.idl.