1 #ifndef __MLPISYSTEMLIB_H__ 2 #define __MLPISYSTEMLIB_H__ 324 static const WCHAR16 MLPI_VERSION_FIRMWARE[] = {
'V',
'E',
'R',
'S',
'I',
'O',
'N',
'_',
'F',
'I',
'R',
'M',
'W',
'A',
'R',
'E',
'\0'};
327 static const WCHAR16 MLPI_VERSION_HARDWARE[] = {
'V',
'E',
'R',
'S',
'I',
'O',
'N',
'_',
'H',
'A',
'R',
'D',
'W',
'A',
'R',
'E',
'\0'};
330 static const WCHAR16 MLPI_VERSION_LOGIC[] = {
'V',
'E',
'R',
'S',
'I',
'O',
'N',
'_',
'L',
'O',
'G',
'I',
'C',
'\0'};
333 static const WCHAR16 MLPI_VERSION_BSP[] = {
'V',
'E',
'R',
'S',
'I',
'O',
'N',
'_',
'B',
'S',
'P',
'\0'};
336 static const WCHAR16 MLPI_VERSION_MLPI_SERVER_CORE[] = {
'V',
'E',
'R',
'S',
'I',
'O',
'N',
'_',
'M',
'L',
'P',
'I',
'_',
'S',
'E',
'R',
'V',
'E',
'R',
'_',
'C',
'O',
'R',
'E',
'\0'};
495 #if !defined(TARGET_OS_VXWORKS) 524 LONG physicalAddress;
543 ULLONG totalVolatileBytes;
544 ULLONG totalNonvolatileBytes;
546 ULLONG freeNonvolatileBytes;
580 ULONG transmittedBytes;
608 #if !defined(TARGET_OS_VXWORKS) 623 #if defined(TARGET_OS_WINNT) 624 #if defined(MLPI_EXPORTS) 625 #define MLPI_API __declspec(dllexport) 626 #elif defined(MLPI_IMPORTS) 627 #define MLPI_API __declspec(dllimport) 632 #if defined(MLPI_EXPORTS) 633 #define MLPI_API __attribute__ ((visibility("default"))) 634 #elif defined(MLPI_IMPORTS) 1631 #endif // endof: #ifndef __MLPISYSTEMLIB_H__ long LONG
4 byte signed integer
MLPIRESULT mlpiSystemClearError(const MLPIHANDLE connection)
This function clears pending errors of the device.
Maximum number of oscilloscope channels.
Temporary project data path.
Switch on LED permanently green.
MLPIRESULT mlpiSystemGetCpuLoad(const MLPIHANDLE connection, FLOAT *load)
This function reads the current CPU load device in percent.
MLPIRESULT mlpiSystemGetNewestDiagnosisIndex(const MLPIHANDLE connection, ULONG *index)
Each new diagnosis in the diagnosis logbook gets a unique incremented diagnosis index. This function returns the index of the latest and therefore most recently inserted diagnosis. This index can be used as a parameter using the function mlpiSystemGetDiagnosisLog to read the complete logbook of the newest diagnostic messages.
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.
diagnosis entry is active.
MLPIRESULT mlpiSystemConvertDiagnosisNumberToText(const MLPIHANDLE connection, const ULONG diagnosisNumber, WCHAR16 *diagnosisText, const ULONG numElements)
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.
long MLPIRESULT
common MLPI-API return value
MLPIRESULT mlpiSystemSetDiagnosis(const MLPIHANDLE connection, const MlpiDiagnosisCategory category, const USHORT number, const WCHAR16 *diagnosisText=0)
This function writes a diagnosis with message to the diagnosis system of the device. The diagnostic group is set to 0x3F automatically.
MLPIRESULT mlpiSystemSetDateAndTimeUtc(const MLPIHANDLE connection, MlpiDateAndTime dateTime)
This function writes the system date and time (broken down time, UTC) of the device.
English language setting.
unsigned long long ULLONG
8 byte unsigned integer
Protected project data path.
Toggle LED green/orange with 4Hz ( 250ms).
static const LONG MLPI_TRANSMISSION_ERROR_LEN
The variable defines the maximum length of an error message.
MLPIRESULT mlpiSystemClearBootLed(const MLPIHANDLE connection)
This function switch off the boot LED 'BT' (if available).
static const WCHAR16 MLPI_VERSION_LOGIC[]
This variable defines the value to read the logic version string.
Maximum number of kinematics.
MLPIRESULT mlpiSystemSetBootLed(const MLPIHANDLE connection, const MlpiLedPattern pattern, const LONG count=-1)
This function switch on the boot LED 'BT' (if available) regarding the selected MlpiLedPattern patter...
MlpiLedPattern
This enumeration provides different LED status resp. diagnosis pattern.
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 d...
unsigned short USHORT
2 byte unsigned integer
MLPIRESULT mlpiSystemSetLanguage(const MLPIHANDLE connection, const MlpiLanguage language)
This function writes the system language of the device (MlpiLanguage).
static const WCHAR16 MLPI_VERSION_FIRMWARE[]
This variable defines the value to read the firmware version string.
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 ...
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.
MlpiProcessState
This enumeration defines the state of a process.
MLPIRESULT mlpiSystemTftpSetTimeout(const MLPIHANDLE connection, const USHORT seconds)
This function sets the timeout of future TFTP transmissions.
MLPIRESULT mlpiSystemGetSerialNumber(const MLPIHANDLE connection, WCHAR16 *serialNumber, const ULONG numElements)
This function reads the serial number of the device.
diagnosis entry from drive.
MLPIRESULT mlpiSystemStartTransmission(const MLPIHANDLE connection, const WCHAR16 *source, const WCHAR16 *destination, MLPITASKHANDLE *handle)
This function starts a transmission between control and a remote device. A source and destination mus...
Protected C/C++ user bundles path.
Toggle LED green/OFF with 2Hz ( 500ms).
MlpiSystemMode
This enumeration must be used when accessing the mode settings in the device. The mode can only be se...
MlpiLanguage
This enumeration must be used when accessing language settings in the device.
MLPIRESULT mlpiSystemGetCpuLoadMax(const MLPIHANDLE connection, FLOAT *load)
This function reads the maximum CPU load of the device in percent.
Maximum number of application.
MlpiSpecialPath
This enumeration contains different logical paths on the device.
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...
MLPIRESULT mlpiSystemGetTransmissionInfo(const MLPIHANDLE connection, const MLPITASKHANDLE handle, MlpiTransmissionInfo *info)
This function retrieves detailed information of a transmission.
Protected Java VM user data path.
diagnosis entry state is unknown.
Maximum number of controls.
Toggle LED green/OFF with 4Hz ( 250ms).
static const LONG MLPI_DIAGNOSIS_STRING_LEN
The variable defines the maximum text length to be returned in a diagnosis from the device...
MLPIRESULT mlpiSystemGetName(const MLPIHANDLE connection, WCHAR16 *name, const ULONG numElements)
This function reads the device name.
MLPIRESULT mlpiSystemGetHardwareDetails(const MLPIHANDLE connection, WCHAR16 *hardwareDetails, const ULONG numElements)
This function reads the hardware details of the device.
diagnosis entry from PLC function block.
MlpiSystemLimit
This enumeration provides different limit defines.
MLPIRESULT mlpiSystemSetName(const MLPIHANDLE connection, const WCHAR16 *name)
This function writes the device name.
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 separat...
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".
MLPIRESULT mlpiSystemTftpSetRetransmitCount(const MLPIHANDLE connection, const USHORT count)
This function sets the maximum retransmit count of future TFTP transmissions.
MLPIRESULT mlpiSystemGetDiagnosisLog(const MLPIHANDLE connection, const ULONG index, MlpiDiagnosis *diagnosisLog, const ULONG numElements, ULONG *numElementsRet)
This function reads the device diagnosis log. The function returns an array of diagnostic messages st...
Protected Java VM licenses path.
Toggle LED green/orange with 1Hz (1000ms).
diagnosis entry from kinematic.
MLPIRESULT mlpiSystemGetTemperatureMax(const MLPIHANDLE connection, FLOAT *temperature)
This function reads the maximum temperature of the device.
Path(s) without special assignments.
wchar_t WCHAR16
UTF16 string.
Toggle LED green/OFF with 1Hz (1000ms).
unsigned long long MLPITASKHANDLE
MLPI-API handle value used for tasks.
struct MlpiTransmissionInfo MlpiTransmissionInfo
This structure defines the information returned when accessing information of a transmission.
transition state from parameter mode to operation mode.
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 ...
MLPIRESULT mlpiSystemGetLicenseInformation(const MLPIHANDLE connection, WCHAR16 *licenses, const ULONG numElements, ULONG *numElementsRet)
This function reads the license information of the device (raw format).
transition state from initialization mode to parameter mode.
diagnosis entry from PCI device.
MlpiDiagnosisCategory
This enumeration contains different diagnosis categories on the device.
static const LONG MLPI_TRANSMISSION_URL_LEN
The variable defines the maximum length of a URL.
MlpiDiagnosisState
This enumeration must be used when accessing the diagnostic details in the device.
MlpiDiagnosisDespatcher
This enumeration must be used when accessing the diagnostic details in the device.
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 f...
diagnosis entry from axis.
MLPIRESULT mlpiSystemGetOldestDiagnosisIndex(const MLPIHANDLE connection, ULONG *index)
As the device is limited in memory resources, it is not possible to hold all diagnostic messages in t...
Non-fatal error, all axes are disengaged the best possible.
MLPIRESULT mlpiSystemGetDisplayedDiagnosis(const MLPIHANDLE connection, MlpiDiagnosis *diagnosis)
This function reads the displayed diagnostic message of the device. The displayed diagnosis is the di...
Protected Java VM root path.
MLPIRESULT mlpiSystemTftpGetTimeout(const MLPIHANDLE connection, USHORT *seconds)
This function gets the timeout of future TFTP transmissions.
struct MlpiDateAndTime MlpiDateAndTime
This structure defines the broken date and time information.
Non-fatal error, no error reaction.
static const WCHAR16 MLPI_VERSION_MLPI_SERVER_CORE[]
This variable defines the value to read the MLPI server core version string.
diagnosis entry from control.
MLPIRESULT mlpiSystemGetOperationHours(const MLPIHANDLE connection, ULONG *operatingTime)
This function reads the operating time in industrial minutes of the device.
MLPIRESULT mlpiSystemResetCpuLoad(const MLPIHANDLE connection)
This function reset the CPU load values of the device to the current CPU load.
MLPIRESULT mlpiSystemGetTargetId(const MLPIHANDLE connection, LLONG *targetId)
This function reads the target ID of the device.
Toggle LED green/red with 4Hz ( 250ms).
Protected Java VM bundles path.
Fatal error, error reaction in motion system.
MLPIRESULT mlpiSystemSetTargetMode(const MLPIHANDLE connection, const MlpiSystemMode mode)
This function writes the device mode (MlpiSystemMode). After writing the mode, the device will NOT be...
MLPIRESULT mlpiSystemGetTemperature(const MLPIHANDLE connection, FLOAT *temperature)
This function reads the current temperature of the device.
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.
Toggle LED green/orange with 2Hz ( 500ms).
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.
Toggle LED green/red with 1Hz (1000ms).
MLPIRESULT mlpiSystemReboot(const MLPIHANDLE connection)
This function performs a reboot of the complete device. This is only allowed if the device is switche...
Maximum number of touch probes.
Toggle LED green/red with 2Hz ( 500ms).
unsigned long ULONG
4 byte unsigned integer
long long LLONG
8 byte signed integer
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 ...
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.
struct MlpiTransmissionStatus MlpiTransmissionStatus
This structure defines the information returned when accessing status of a transmission.
MLPIRESULT mlpiSystemGetCurrentMode(const MLPIHANDLE connection, MlpiSystemMode *mode)
This function reads the current device mode (MlpiSystemMode).
MLPIRESULT mlpiSystemGetLanguage(const MLPIHANDLE connection, MlpiLanguage *language)
This function reads the current system language of the device (MlpiLanguage).
float FLOAT
4 byte floating point
diagnosis entry is reset.
MLPIRESULT mlpiSystemResetTemperature(const MLPIHANDLE connection)
This function reset the temperature values of the device to the current temperature.
MLPIRESULT mlpiSystemGetTransmissionStatus(const MLPIHANDLE connection, MlpiTransmissionStatus *status, ULONG numElements)
This function retrieves the status of one or more transmissions.
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 semicol...
Load language data from user defined xml file.
static const WCHAR16 MLPI_VERSION_BSP[]
This variable defines the value to read the board support version string.
unsigned long MLPIHANDLE
common MLPI-API handle value
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:
MLPIRESULT mlpiSystemCleanup(const MLPIHANDLE connection)
This function performs a reboot and total clean up of the complete device. This is only allowed if th...
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...
MLPIRESULT mlpiSystemTftpGetRetransmitCount(const MLPIHANDLE connection, USHORT *count)
This function gets the maximum retransmit count of future TFTP transmissions.
static const WCHAR16 MLPI_VERSION_HARDWARE[]
This variable defines the value to read the hardware version string.
MLPIRESULT mlpiSystemGetDateAndTimeUtc(const MLPIHANDLE connection, MlpiDateAndTime *dateTime)
This function reads the system date and time (broken down time, UTC) of the device.
struct MlpiDiagnosis MlpiDiagnosis
This structure defines the information returned when accessing the diagnosis. A diagnosis is either a...
struct MlpiSpecialPathInfo MlpiSpecialPathInfo
This structure defines the special path information.
struct MlpiMemoryInfo MlpiMemoryInfo
This structure defines the memory information.
MLPIRESULT mlpiSystemGetLimit(const MLPIHANDLE connection, MlpiSystemLimit limit, LLONG *value)
This function reads a limit (e.g. maximum number of applications) of the device (MlpiSystemLimit).
diagnosis entry is passive.