Moxa UC-8418-CE [46/48] Uc 8400 wince application development with the sdk and software libraries

Moxa UC-8416-CE [46/48] Uc 8400 wince application development with the sdk and software libraries
UC-8400 WinCE Application Development with the SDK and Software Libraries
B-9
DIO
Method
bool Open();
Description Open the DIO
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DO0~DO3 (from 0 to 11 mapping to
DO0-DO11, for
UC-8418 only)
<data> 1 : HIGH, 0 : LOW
Return true on success, false, the function fails
Remarks
Method
void Close();
Description Close the DIO
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DI0~DI3 (from 0-11 mapping to DI0
to DI11 for UC-8418)
Return 1 indicates HIGH, 0 indicates LOW.
Remarks
Method
int GetInputSignal(int port);
Description Get the DI value
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DI0~DI3 (from 0-11 mapping to DI0
to DI11 for UC-8418)
Return
1 indicates HIGH, 0 indicates LOW.
Remarks
Method
int GetOutputSignal(int port);
Description Get the DO value
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DO0~DO3 (from 0 to 11 mapping to
DO0-DO11, for UC-8418 only)
Return 1 indicates HIGH, 0 indicates LOW.
Remarks
Method
bool SetOutputHigh(int port);
Description Set the DO value to High
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DO0~DO3 (from 0 to 11 mapping to
DO0-DO11, for UC-8418 only)
Return True indicates success, otherwise the function fails.
Remarks
Method
bool SetOutputLow(int port);
Description Set the DO value to Low
Class Name: DIO
Input <port> the port index, from 0 to 3 mapping to DO0~DO3 (from 0 to 11 mapping to
DO0-DO11, for UC-8418 only)
Return True indicates success, otherwise the function fails
Remarks

Содержание

Скачать