![adstec OPC9000 Series Скачать руководство пользователя страница 35](http://html.mh-extra.com/html/adstec/opc9000-series/opc9000-series_instruction-manual_3047686035.webp)
OPC9000 series
−
Instruction manual v1.2
35
© ads-tec Industrial IT GmbH • Heinrich-Hertz-Str. 1 • 72622 Nürtingen • Germany
7.9 RS232
Hardware configuration
(figure shows socket in the device)
Seen from the IPC9:
Pin 2
RxD
Receive Data
Input
Pin 3
TxD
Transmit Data
Output
Pin 5
GND
Ground – Reference potential
Configuration of the driver “WhlHsUart”
The following IOCTLs are implemented in the driver for the RS232 interface as of 12/2021:
−
IOCTL_UARTTESTTOOL_OPEN
−
IOCTL_UARTTESTTOOL_CLOSE
−
IOCTL_SERIAL_SET_BAUD_RATE
−
IOCTL_SERIAL_GET_BAUD_RATE
−
IOCTL_SERIAL_SET_MODEM_CONTROL
−
IOCTL_SERIAL_GET_MODEM_CONTROL
−
IOCTL_SERIAL_SET_LINE_CONTROL
−
IOCTL_SERIAL_GET_LINE_CONTROL
−
IOCTL_SERIAL_SET_CHARS
−
IOCTL_SERIAL_GET_CHARS
−
IOCTL_SERIAL_SET_HANDFLOW
−
IOCTL_SERIAL_GET_HANDFLOW
−
IOCTL_SERIAL_GET_MODEMSTATUS
−
IOCTL_SERIAL_GET_DTRRTS
−
IOCTL_SERIAL_GET_MODEMSTATUS
−
IOCTL_SERIAL_GET_COMMSTATUS
−
IOCTL_SERIAL_GET_PROPERTIES
−
IOCTL_SERIAL_SET_FIFO_CONTROL
−
IOCTL_SERIAL_GET_STATS
−
IOCTL_SERIAL_CLEAR_STATS
−
IOCTL_SERIAL_PURGE
−
IOCTL_SERIAL_SET_TIMEOUTS
Since the IOCTL´s
IOCTL_SERIAL_SET_WAIT_MASK
and
IOCTL_SERIAL_ WAIT_MASK
are not
implemented in this version, the
events
(such as RXCHAR, RXFLAG, TXEMPTY, CTS, DSR, RLSD,
BREAK, ERR, RING, PERR) will not be generated by the driver.
Applications should not wait for an event. Instead, they can directly
poll
or receive the data via Read
operations.
Detailed instructions for the "WhlHsUart" driver are available on request from
ADS-TEC support.