Moxa ioPAC 8500-5-RJ45-C-T [58/66] Misc api

Moxa ioPAC 8500-2-M12-C-T [58/66] Misc api
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-50
MX_Ras_UpdateHeartbeat
INT32 MX_Ras_UpdateHeartbeat(UINT32 sHandle, UINT32 heartbeatS, UINT32 timeoutMs);
This function updates the heartbeat interval to the Active OPC (RAS) server.
Input Parameters
sHandle
The opened connection handle
heartbeatS
Heartbeat interval in seconds (0: disabled)
timeoutMs
The timeout value in milliseconds
Output Parameters
None
Return Value
RAS_ERR_OK
RAS_ERR_LIB_INIT
RAS_ERR_PARAM
RAS_ERR_NO_TAG
RAS_ERR_NO_MEMORY
RAS_ERR_NO_QUEUE
RAS_ERR_SERVER_ERROR
Misc API
Device nodes are located at /dev/mxmisc, /dev/rtc, and /dev/swtd. Users must include libmoxa_pgm.h.
Returned values of MISC API are shown below; they can also be found at libmoxa_pgm.h. Note that
/dev/mxmisc and /dev/rtc cannot both be opened again if they are in use.
#define MISC_SUCCESS 0
#define MISC_ERR_DEVICE -1
#define MISC_ERR_ARGUMENT -2
#define MISC_ERR_RW -3
#define MISC_ERR_ACTION -4
MX_Signal_LED_Get
UINT32 MX_Signal_LED_Get(UINT32 num, UINT32 *state);
Gets the signal LED status. The state will be written to the state parameter.
Input Parameters
num
0: Signal 0
1: Signal 1
2: Signal 2
Output Parameters
state
Return Value
Result of the call
Notes
ioLogik W5348-C series only

Содержание

Скачать