Moxa Technologies NPort 1240, NPort 1220 user manual Technical Reference

Page 31

 

 

Technical Reference

Windows 2000/XP

 

 

 

 

 

 

 

Test function

Test Flag

 

 

 

 

 

 

1. PurgeComm

PURGE_TXABORT

 

 

 

PURGE_RXABORT

 

 

 

PURGE_TXCLEAR

 

 

2. ClearCommBreak()

 

 

 

3. SetCommBreak()

 

 

 

4. ClearCommError

CE_BREAK

 

 

 

CE_RXPARITY

 

 

 

CE_FRAME

 

 

 

CE_RXOVER

 

 

 

fCtsHold

 

 

 

fDsrHold

 

 

 

fXoffHold

 

 

 

cbInQue

 

 

 

cbOutQue

 

 

5. EscapeCommFunction

SETDTR

 

 

 

SETRTS

 

 

 

SETXON

 

 

 

SETXOFF

 

 

 

SETBREAK,CLRBREAK

 

 

6. GetCommMask

 

 

 

 

EV_CTS

 

 

 

EV_DSR

 

 

 

EV_RING

 

 

 

EV_RLSD

 

 

 

EV_RXCHAR

 

 

 

EV_RXFLAG

 

 

 

EV_TXEMPTY

 

 

8. GetCommModemStatus()

 

 

 

9. SetCommMask

EV_CTS

 

 

 

EV_DSR

 

 

 

EV_RLSD

 

 

 

EV_RXCHAR

 

 

 

EV_RXFLAG

 

 

 

EV_TXEMPTY

 

 

 

EV_TXEMPTY

 

 

10. SetCommState

BaudRate

 

 

 

Parity, ByteSize, StopBits,fParity

 

 

 

ErrorChar,fErrorChar

 

 

 

fNull

 

 

 

fRtsControl=RTS_CONTROL_DISABLE

 

 

 

fRtsControl=RTS_CONTROL_ENABLE

 

 

 

fDtrControl=DTR_CONTROL_DISABLE

 

 

 

fDtrControl=DTR_CONTROL_ENABLE

 

 

 

FDsrSensitivity=TRUE

 

NPort 1220/1240 USB-to-Serial Hub User’s Manual A-3

Image 31
Contents NPort 1220/1240 USB-to-Serial Hub User’s Manual Copyright Notice Page Table of Contents Introduction Product Features Package ChecklistOverview NPort Product SpecificationsGross Weight 215 ±5 g 0.48 lb Panel Layout DIP Switch Settings DimensionsWire RS-422/485 Page Driver Installation Installing the Driver Driver Installation Select klsibus.inf, and then click Open Click OK to continue Driver Installation NPort 1220/1240 USB-to-Serial Hub User’s Manual Driver Installation Instructions below Checking the Installation Windows Configuring the PortsWindows 2000/XP Uninstalling the Driver Serial Programming Tools PComm Programming Library PComm InstallationUtilities Monitor for Moxa boards under Windows NT Only Diagnostic for Moxa boards onlyTerminal Emulator Technical Reference Test function Test Flag Win32 API Function Compatible ListTechnical Reference Question General Technical ReferenceService Information Following services are provided Moxa Internet ServicesMoxa NPort 1220/1240 Problem Report FormProduct Return Procedure Revision History