Moxa ioPAC 8500-9-RJ45-C-T [26/66] Digital input alarm

Moxa ioPAC 8500-2-M12-C-T [26/66] Digital input alarm
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-18
Digital Input Alarm
MX_DI_Alarm_Register
int MX_DI_Alarm_Register(int slot, int channel, int len, int trigger);
Registers a DI channel for monitoring. If the condition is matched, the event will be recorded with status and
time. In addition, each channel can only be registered once.
Input Parameters
slot
channel
len
Buffer Size: 5 to 20 records
trigger
Return Value
Result of the call or a handle.
MX_DI_Alarm_Unregister
int MX_DI_Alarm_Unregister(int handle);
Unregisters a DI channel for monitoring and clears the buffer.
Input Parameters
handle
Return Value
Result of the call
MX_DI_Alarm_Get
int MX_DI_Alarm_Get(int handle, struct IO_Alarm_Data *data);
Reads alarm data of the DI channel. This alarm data will be written to the data parameter.
Input Parameters
handle
Output Parameters
data
Return Value
Result of the call
MX_DI_Alarm_Set_Trigger
int MX_DI_Alarm_Set_Trigger(int handle, int trigger);
Set the condition for the DI channel.
Input Parameters
handle
trigger
Return Value
Result of the call

Содержание

Скачать