
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Example:
Enable TX mode of the 1st serial port.
EnableRS485tx( 0 )
Remarks:
Set the RS-485 transceiver to TX mode only of the specific serial port. This
function has no effect to RS-232 port. RS-485 transceiver can be set RX &
TX mode at the same time.
SerialIntrEOI()
Description:
Terminate the H/W interrupt.
Include:
DAPAPI.H
Usage:
void SerialIntrEOI (ushort
port
)
Input Parameters:
port:
serial port number of Serial Server, 0: 1st port
Return Value:
None
Example:
Issue EOI command of 1st port.
SerialIntrEOI( 1 )
Remarks:
Issue H/W End Of Interrupt (EOI) command before terminating the ISR
(Interrupt Service Routine).
Set485type()
Description:
Set Com Port to RS-422(4 wire) / RS-485(2 wire).
(Not supported for GW21x-MAXI, but for GW21L&E)
Include:
DAPAPI.H
Usage:
void Set485type( uchar
Set_485type
)
Input Parameters:
Set_485type:
bit 0 : for 1st port ,bit 1: 2nd port
Return Value:
None
Example:
Set485type(0x01)
Remarks:
Select RS-485 /RS-422.
Bit 1
Bit 0
Com Port 2
Com Port 1
0 0 RS-422
RS-422
0 1 RS-422
RS-485
1 0 RS-485
RS-422
1 1 RS-485
RS-485
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.