
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Get485type()
Description:
Get the type of COM Port, if it is RS485 (2 wires / 4 wires).
(Not supported for GW21x-MAXI, but for GW21L&E)
Include:
DAPAPI.H
Usage:
ushort Get485type(void )
Input Parameters:
None
Return Value:
unsigned short
Example:
get_485type = Get485type(),
bit 0: 1st port
Remarks:
Get RS-485/RS-422.
Bit 0
Com Port 1
0 RS-422
1 RS-485
Getporttype()
Description:
Get the type of COM (RS-232/RS-485)
(Not supported for GW21x-MAXI, but for GW21L&E)
Include:
DAPAPI.H
Usage:
ushort Getporttype(void )
Input Parameters:
None
Return Value:
unsigned short.
Example:
get_porttype = Getporttype();
bit 0 : for 1st port
Remarks:
Get RS-232/RS-485.
Bit 0
Com Port 1
0 RS-485
1 RS-232
GetConsoleSta
Description:
Get the state of a jumper. It is used as console mode.
Include:
DAPAPI.H
Usage:
ushort
GetConsoleSta
( void);
Input Parameters:
None
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.