Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4LabVIEW)  1.26.2
mlpiSystemLib.h
Go to the documentation of this file.
1 #ifndef __MLPISYSTEMLIB_H__
2 #define __MLPISYSTEMLIB_H__
3 
4 // -----------------------------------------------------------------------
5 // MLPI - <mlpiSystemLib.h>
6 // -----------------------------------------------------------------------
7 // Copyright (c) 2013 Bosch Rexroth. All rights reserved.
8 // Redistribution and use in source and binary forms of this MLPI software
9 // (SW) provided to you, with or without modification, are permitted
10 // without prior approval provided that the following conditions are met:
11 //
12 // 1. Redistributions of source code of SW must retain the above copyright
13 // notice, this list of conditions and the following disclaimer.
14 //
15 // 2. Redistributions in binary form of SW must reproduce the above copyright
16 // notice, this list of conditions and the following disclaimer in the
17 // documentation and/or other materials provided with the distribution.
18 //
19 // 3. User recognizes and acknowledges that it acquires no right,
20 // title or interest in or to any of the names or trademarks used in
21 // connection with the SW ("names") by virtue of this License and waives
22 // any right to or interest in the names. User recognizes and acknowledges
23 // that names of companies or names or products of companies displayed
24 // in the documentation of SW to indicate the interoperability of products
25 // with the SW are the names of their respective owners. The use of such
26 // names in the documentation of SW does not imply any sponsorship,
27 // approval, or endorsement by such companies of this product.
28 //
29 // 4. Modified code versions, i.e. any addition to or deletion from
30 // the substance or structure of the original code of the SW running
31 // the MLPI must be plainly marked as such and must not be misrepresented
32 // as being original SW.
33 //
34 // 5. The SW may only be used in connection with a Bosch Rexroth product.
35 //
36 // THIS INFORMATION IS PROVIDED BY BOSCH REXROTH CORPORATION "AS IS"
37 // AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING
38 // (BUT NOTLIMITED TO) ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
39 // FITNESS FOR ANY PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WHILE THE
40 // INFORMATION PROVIDED IS BELIEVED TO BE ACCURATE, IT MAY INCLUDE
41 // ERRORS OR INACCURACIES.
42 // SUBJECT TO COMPULSORY STATUTORY PROVISIONS OF THE GERMAN LAW AS
43 // THE APPLICABLE LAW FOR THIS LICENSE BOSCH REXROTH CORPORATION WILL
44 // NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF
45 // THE SOFTWARE DISTRIBUTED HEREUNDER, INCLUDING BUT NOT LIMITED TO
46 // DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.
47 // -----------------------------------------------------------------------
48 //
58 //
59 // -----------------------------------------------------------------------
60 
61 
75 
81 
89 
96 
300 
305 
306 
307 
308 
309 // -----------------------------------------------------------------------
310 // GLOBAL INCLUDES
311 // -----------------------------------------------------------------------
312 #include "mlpiGlobal.h"
313 
314 
315 
316 // -----------------------------------------------------------------------
317 // GLOBAL CONSTANTS
318 // -----------------------------------------------------------------------
319 
321 static const LONG MLPI_DIAGNOSIS_STRING_LEN = 124;
322 
324 static const WCHAR16 MLPI_VERSION_FIRMWARE[] = {'V','E','R','S','I','O','N','_','F','I','R','M','W','A','R','E','\0'};
325 
327 static const WCHAR16 MLPI_VERSION_HARDWARE[] = {'V','E','R','S','I','O','N','_','H','A','R','D','W','A','R','E','\0'};
328 
330 static const WCHAR16 MLPI_VERSION_LOGIC[] = {'V','E','R','S','I','O','N','_','L','O','G','I','C','\0'};
331 
333 static const WCHAR16 MLPI_VERSION_BSP[] = {'V','E','R','S','I','O','N','_','B','S','P','\0'};
334 
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'};
337 
339 static const LONG MLPI_TRANSMISSION_URL_LEN = 256;
340 
343 
344 
345 // -----------------------------------------------------------------------
346 // GLOBAL ENUMERATIONS
347 // -----------------------------------------------------------------------
348 
351 typedef enum MlpiLanguage
352 {
356 } MlpiLanguage;
357 
363 typedef enum MlpiSystemMode
364 {
372 
375 typedef enum MlpiDiagnosisState
376 {
382 
386 {
394 
424 typedef enum MlpiSpecialPath
425 {
427  MLPI_PATH_OEM = 0x01,
428  MLPI_PATH_USER = 0x02,
445 
449 {
456 
459 typedef enum MlpiLedPattern
460 {
473 
474 
477 typedef enum MlpiSystemLimit
478 {
488 
489 
490 // -----------------------------------------------------------------------
491 // GLOBAL TYPEDEFS
492 // -----------------------------------------------------------------------
493 
494 // message packing follows 8 byte natural alignment
495 #if !defined(TARGET_OS_VXWORKS)
496 #pragma pack(push,8)
497 #endif
498 
518 typedef struct MlpiDiagnosis
519 {
520  ULONG number;
521  MlpiDiagnosisState state;
522  MlpiDateAndTime dateTime;
523  LONG logicalAddress;
524  LONG physicalAddress;
525  MlpiDiagnosisDespatcher despatcher;
526  ULONG index;
529 
541 typedef struct MlpiMemoryInfo
542 {
543  ULLONG totalVolatileBytes;
544  ULLONG totalNonvolatileBytes;
545  ULLONG freeVolatileBytes;
546  ULLONG freeNonvolatileBytes;
548 
557 typedef struct MlpiSpecialPathInfo
558 {
559  ULLONG totalBytes;
560  ULLONG freeBytes;
562 
574 typedef struct MlpiTransmissionStatus
575 {
576  MLPITASKHANDLE handle;
577  MLPIRESULT result;
578  MlpiProcessState state;
579  ULONG totalBytes;
580  ULONG transmittedBytes;
582 
598 typedef struct MlpiTransmissionInfo
599 {
600  MlpiTransmissionStatus status;
602  WCHAR16 destination[MLPI_TRANSMISSION_URL_LEN];
603  WCHAR16 errorMessage[MLPI_TRANSMISSION_ERROR_LEN];
605 
606 
607 
608 #if !defined(TARGET_OS_VXWORKS)
609 #pragma pack(pop)
610 #endif
611 
613 
614 
615 
616 // -----------------------------------------------------------------------
617 // GLOBAL EXPORTS
618 // -----------------------------------------------------------------------
619 #ifdef MLPI_API
620  #undef MLPI_API
621 #endif
622 
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)
628  #else
629  #define MLPI_API
630  #endif
631 #else
632  #if defined(MLPI_EXPORTS)
633  #define MLPI_API __attribute__ ((visibility("default")))
634  #elif defined(MLPI_IMPORTS)
635  #define MLPI_API
636  #else
637  #define MLPI_API
638  #endif
639 #endif
640 
641 
642 #ifdef __cplusplus
643 extern "C" {
644 #endif
645 
670 MLPI_API MLPIRESULT mlpiSystemGetVersionInfo(const MLPIHANDLE connection, const WCHAR16 *component, WCHAR16 *version, const ULONG numElements);
671 
672 
685 MLPI_API MLPIRESULT mlpiSystemGetLanguage(const MLPIHANDLE connection, MlpiLanguage *language);
686 
687 
700 MLPI_API MLPIRESULT mlpiSystemSetLanguage(const MLPIHANDLE connection, const MlpiLanguage language);
701 
702 
716 MLPI_API MLPIRESULT mlpiSystemGetName(const MLPIHANDLE connection, WCHAR16 *name, const ULONG numElements);
717 
718 
731 MLPI_API MLPIRESULT mlpiSystemSetName(const MLPIHANDLE connection, const WCHAR16 *name);
732 
733 
747 MLPI_API MLPIRESULT mlpiSystemGetIpAddress(const MLPIHANDLE connection, WCHAR16 *ipAddress, const ULONG numElements);
748 
749 
763 MLPI_API MLPIRESULT mlpiSystemSetIpAddress(const MLPIHANDLE connection, const WCHAR16 *ipAddress);
764 
765 
779 MLPI_API MLPIRESULT mlpiSystemGetSubnetMask(const MLPIHANDLE connection, WCHAR16 *subnet, const ULONG numElements);
780 
781 
794 MLPI_API MLPIRESULT mlpiSystemSetSubnetMask(const MLPIHANDLE connection, const WCHAR16 *subnet);
795 
796 
810 MLPI_API MLPIRESULT mlpiSystemGetGateway(const MLPIHANDLE connection, WCHAR16 *gateway, const ULONG numElements);
811 
812 
825 MLPI_API MLPIRESULT mlpiSystemSetGateway(const MLPIHANDLE connection, const WCHAR16 *gateway);
826 
827 
840 MLPI_API MLPIRESULT mlpiSystemGetCurrentMode(const MLPIHANDLE connection, MlpiSystemMode *mode);
841 
842 
858 MLPI_API MLPIRESULT mlpiSystemSetTargetMode(const MLPIHANDLE connection, const MlpiSystemMode mode);
859 
860 
873 MLPI_API MLPIRESULT mlpiSystemGetTemperature(const MLPIHANDLE connection, FLOAT *temperature);
874 
875 
888 MLPI_API MLPIRESULT mlpiSystemGetTemperatureMax(const MLPIHANDLE connection, FLOAT *temperature);
889 
890 
901 MLPI_API MLPIRESULT mlpiSystemResetTemperature(const MLPIHANDLE connection);
902 
903 
916 MLPI_API MLPIRESULT mlpiSystemGetTargetId(const MLPIHANDLE connection, LLONG* targetId);
917 
918 
931 MLPI_API MLPIRESULT mlpiSystemGetCpuLoad(const MLPIHANDLE connection, FLOAT *load);
932 
933 
946 MLPI_API MLPIRESULT mlpiSystemGetCpuLoadMax(const MLPIHANDLE connection, FLOAT *load);
947 
948 
959 MLPI_API MLPIRESULT mlpiSystemResetCpuLoad(const MLPIHANDLE connection);
960 
961 
974 MLPI_API MLPIRESULT mlpiSystemGetOperationHours(const MLPIHANDLE connection, ULONG *operatingTime);
975 
976 
993 MLPI_API MLPIRESULT mlpiSystemGetDateAndTimeUtc(const MLPIHANDLE connection, MlpiDateAndTime *dateTime);
994 
995 
1015 MLPI_API MLPIRESULT mlpiSystemSetDateAndTimeUtc(const MLPIHANDLE connection, MlpiDateAndTime dateTime);
1016 
1017 
1033 MLPI_API MLPIRESULT mlpiSystemSetDateAndTimeUtcByNtp(const MLPIHANDLE connection, const ULONG timeout, const WCHAR16* server, const USHORT port=0);
1034 
1035 
1049 MLPI_API MLPIRESULT mlpiSystemGetSerialNumber(const MLPIHANDLE connection, WCHAR16 *serialNumber, const ULONG numElements);
1050 
1051 
1065 MLPI_API MLPIRESULT mlpiSystemGetHardwareDetails(const MLPIHANDLE connection, WCHAR16 *hardwareDetails, const ULONG numElements);
1066 
1067 
1083 MLPI_API MLPIRESULT mlpiSystemGetLocalBusConfiguration(const MLPIHANDLE connection, WCHAR16 *configuration, const ULONG numElements);
1084 
1085 
1101 MLPI_API MLPIRESULT mlpiSystemGetFunctionModulBusConfiguration(const MLPIHANDLE connection, WCHAR16 *configuration, const ULONG numElements);
1102 
1103 
1119 MLPI_API MLPIRESULT mlpiSystemGetFunctionModuleHardwareDetails(const MLPIHANDLE connection, const ULONG functionModuleNum, WCHAR16 *hardwareDetails, const ULONG numElements);
1120 
1121 
1135 MLPI_API MLPIRESULT mlpiSystemGetMacAddress(const MLPIHANDLE connection, WCHAR16 *macAddress, const ULONG numElements);
1136 
1137 
1161 MLPI_API MLPIRESULT mlpiSystemGetMemoryInfo(const MLPIHANDLE connection, MlpiMemoryInfo *memoryInfo);
1162 
1163 
1183 MLPI_API MLPIRESULT mlpiSystemGetSpecialPath(const MLPIHANDLE connection, const MlpiSpecialPath pathIdentifier, WCHAR16 *path, const ULONG numElements);
1184 
1185 
1210 MLPI_API MLPIRESULT mlpiSystemGetSpecialPathInfo(const MLPIHANDLE connection, const MlpiSpecialPath pathIdentifier, MlpiSpecialPathInfo *pathInfo);
1211 
1212 
1232 MLPI_API MLPIRESULT mlpiSystemGetRootPaths(const MLPIHANDLE connection, WCHAR16* paths, const ULONG numElements, ULONG* numElementsRet);
1233 
1234 
1245 MLPI_API MLPIRESULT mlpiSystemClearError(const MLPIHANDLE connection);
1246 
1247 
1259 MLPI_API MLPIRESULT mlpiSystemReboot(const MLPIHANDLE connection);
1260 
1261 
1275 MLPI_API MLPIRESULT mlpiSystemCleanup(const MLPIHANDLE connection);
1276 
1277 
1294 MLPI_API MLPIRESULT mlpiSystemGetLicenseInformation(const MLPIHANDLE connection, WCHAR16 *licenses, const ULONG numElements, ULONG* numElementsRet);
1295 
1296 
1310 MLPI_API MLPIRESULT mlpiSystemGetLimit(const MLPIHANDLE connection, MlpiSystemLimit limit, LLONG *value);
1311 
1312 
1334 MLPI_API MLPIRESULT mlpiSystemGetDisplayedDiagnosis(const MLPIHANDLE connection, MlpiDiagnosis *diagnosis);
1335 
1336 
1353 MLPI_API MLPIRESULT mlpiSystemSetDiagnosis(const MLPIHANDLE connection, const MlpiDiagnosisCategory category, const USHORT number, const WCHAR16 *diagnosisText=0);
1354 
1355 
1370 MLPI_API MLPIRESULT mlpiSystemGetNewestDiagnosisIndex(const MLPIHANDLE connection, ULONG *index);
1371 
1372 
1388 MLPI_API MLPIRESULT mlpiSystemGetOldestDiagnosisIndex(const MLPIHANDLE connection, ULONG *index);
1389 
1390 
1428 MLPI_API MLPIRESULT mlpiSystemGetDiagnosisLog(const MLPIHANDLE connection, const ULONG index, MlpiDiagnosis *diagnosisLog, const ULONG numElements, ULONG *numElementsRet);
1429 
1430 
1455 MLPI_API MLPIRESULT mlpiSystemConvertDiagnosisNumberToText(const MLPIHANDLE connection, const ULONG diagnosisNumber, WCHAR16 *diagnosisText, const ULONG numElements);
1456 
1457 
1480 MLPI_API MLPIRESULT mlpiSystemSetBootLed(const MLPIHANDLE connection, const MlpiLedPattern pattern, const LONG count = -1);
1481 
1482 
1503 MLPI_API MLPIRESULT mlpiSystemClearBootLed(const MLPIHANDLE connection);
1504 
1505 
1529 MLPI_API MLPIRESULT mlpiSystemStartTransmission(const MLPIHANDLE connection, const WCHAR16* source, const WCHAR16* destination, MLPITASKHANDLE* handle);
1530 
1531 
1547 MLPI_API MLPIRESULT mlpiSystemGetTransmissionStatus(const MLPIHANDLE connection, MlpiTransmissionStatus* status, ULONG numElements);
1548 
1549 
1564 MLPI_API MLPIRESULT mlpiSystemGetTransmissionInfo(const MLPIHANDLE connection, const MLPITASKHANDLE handle, MlpiTransmissionInfo* info);
1565 
1566 
1578 MLPI_API MLPIRESULT mlpiSystemTftpSetTimeout(const MLPIHANDLE connection, const USHORT seconds);
1579 
1580 
1593 MLPI_API MLPIRESULT mlpiSystemTftpGetTimeout(const MLPIHANDLE connection, USHORT* seconds);
1594 
1595 
1607 MLPI_API MLPIRESULT mlpiSystemTftpSetRetransmitCount(const MLPIHANDLE connection, const USHORT count);
1608 
1609 
1622 MLPI_API MLPIRESULT mlpiSystemTftpGetRetransmitCount(const MLPIHANDLE connection, USHORT* count);
1623 
1624 
1625 #ifdef __cplusplus
1626 }
1627 #endif
1628 
1629 
1630 
1631 #endif // endof: #ifndef __MLPISYSTEMLIB_H__
1632 
long LONG
4 byte signed integer
Definition: mlpiGlobal.h:167
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
Definition: mlpiGlobal.h:200
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
Definition: mlpiGlobal.h:171
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 &#39;BT&#39; (if available).
static const WCHAR16 MLPI_VERSION_LOGIC[]
This variable defines the value to read the logic version string.
Maximum number of kinematics.
Java VM root path.
MLPIRESULT mlpiSystemSetBootLed(const MLPIHANDLE connection, const MlpiLedPattern pattern, const LONG count=-1)
This function switch on the boot LED &#39;BT&#39; (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
Definition: mlpiGlobal.h:162
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.
Definition: mlpiGlobal.h:254
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.
parameter mode.
diagnosis entry from PLC function block.
MlpiSystemLimit
This enumeration provides different limit defines.
PLC project data path.
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.
SYSTEM path, root.
Path(s) without special assignments.
wchar_t WCHAR16
UTF16 string.
Definition: mlpiGlobal.h:193
Project data path.
Toggle LED green/OFF with 1Hz (1000ms).
C/C++ user bundles path.
unsigned long long MLPITASKHANDLE
MLPI-API handle value used for tasks.
Definition: mlpiGlobal.h:209
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...
Maximum number of PLS.
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.
User path, root.
Toggle LED green/red with 4Hz ( 250ms).
Maximum number of axis.
Protected Java VM bundles path.
Invalid LED pattern.
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).
operation mode.
MLPIRESULT mlpiSystemReboot(const MLPIHANDLE connection)
This function performs a reboot of the complete device. This is only allowed if the device is switche...
OEM path, root.
Maximum number of touch probes.
German language setting.
Toggle LED green/red with 2Hz ( 500ms).
unsigned long ULONG
4 byte unsigned integer
Definition: mlpiGlobal.h:168
long long LLONG
8 byte signed integer
Definition: mlpiGlobal.h:170
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
Definition: mlpiGlobal.h:172
diagnosis entry is reset.
MLPIRESULT mlpiSystemResetTemperature(const MLPIHANDLE connection)
This function reset the temperature values of the device to the current temperature.
Java VM user data path.
MLPIRESULT mlpiSystemGetTransmissionStatus(const MLPIHANDLE connection, MlpiTransmissionStatus *status, ULONG numElements)
This function retrieves the status of one or more transmissions.
Java VM licenses path.
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...
initialization mode.
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.
mode switching active.
unsigned long MLPIHANDLE
common MLPI-API handle value
Definition: mlpiGlobal.h:206
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.