Moxa V2426A-C2-W7E [57/88] Epm 3438 programming guide

Moxa V2426A-C7-T [57/88] Epm 3438 programming guide
V2400A Series Expansion Modules Software Installation and Programming Guide
4-37
7. The system should find the new hardware and install the driver automatically. Check the Windows Device
Manager to verify.
EPM-3438: Programming Guide
Some operations can be configured through programming; the following “DIO” example can be found on the
software DVD at \examples\ExpansionCard\EPM-3438.
Moxa functions for DI/DO
Function HANDLE mxdgio_epm3438_open(int HWIndex);
Description This function opens access to the DIO device.
Input <HWIndex> The first or second EPM-3438 board.
Output None
Return When successful, this function returns an access to the DIO device; otherwise, an error.
Function void mxdgio_close(HANDLE fd);
Description This function closes the access to the DIO device.
Input <fd> The access to the device.
Output None
Return None
Function int mxdgio_get_input_signal(HANDLE fd, int port);
Description This function gets the signal state of a digital input channel.
Input <fd> The access to the device.
<port> port #
Output <state> DIO_HIGH (1) for high, DIO_LOW (0) for low
Return Returns 1 for a high signal or 0 for a low signal, if successful. Otherwise, it returns a value of -1.

Содержание

Похожие устройства

Скачать