SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Return Value:
0: console mode disable
1: console mode enable
Example:
ushort console_mode ;
console_mode = GetConsoleSta();
Remarks:
Getnewporttype
Description:
Get the type of COM Port (RS232/RS422/RS485).
Include:
DAPAPI.H
Usage:
ushort
Getnewporttype
( void);
Input Parameters:
None
Return Value:
0: RS232
1: RS485 (2 wires)
2: RS422 (4 wires)
3: Console mode
4: RS422/RS485
5:Unknown
Example:
ushort port_type ;
port_type = Genewporttype();
Remarks:
GetTotalPort
Description:
Get the count of serial ports.
Include:
DAPAPI.H
Usage:
ushort
GetTotalPort
( void);
Input Parameters:
None
Return Value:
>=0: count of serial ports
Example:
ushort port_count ;
port_count =
GetTotalPort
();
Remarks:
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.