Moxa ioPAC 8020-5-M12-C-T [11/66] Mx_di_filter_get

Moxa ioPAC 8020-9-RJ45-C-T [11/66] Mx_di_filter_get
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-3
Digital Input
Status query and mode settings can be done with the following functions. Note that if a DIO channel is
configured as a DO, all DI Setand Getoperations will be ignored, and will not generate a response or return.
MX_DI_Mode_Get
UINT32 MX_DI_Mode_Get(UINT32 slot, UINT32 start, UINT32 count, UINT32 *buf);
Reads a given DI channel mode. The channel mode will be written to the buf parameter.
Input Parameters
slot
start
count
Output Parameters
buf
Return Value
Result of the call
Notes
Applies only to the ioLogik W5348-C series.
MX_DI_Value_Get
UINT32 MX_DI_Value_Get(UINT32 slot, UINT32 start, UINT32 count, UINT32 *buf);
Read a given DI channel value. The channel value will be written to the buf parameter.
Input Parameters
slot
start
count
Output Parameters
buf
Return Value
Result of the call
MX_DI_Filter_Get
UINT32 MX_DI_Filter_Get(UINT32 slot, UINT32 start, UINT32 count, UINT32 *buf);
Reads a given DI channel filter. The channel filter will be written to the buf parameter. The default filter is 1
(per 10 milliseconds).
Input Parameters
slot
start
count
Output Parameters
buf
Return Value
Result of the call
Notes
ioLogik W5348-C series only

Содержание

Скачать