Advantech ADAM-5511 Manual page 271

Table of Contents

Advertisement

Set Port Baud Rate
Set the baud rate of specified port
void port_set_speed(int portno, long speed)
portno
long speed
None
void main ()
{
//here we install port1, 2
port_install(1);
port_install(2);
//select working port1, and set the communication rate to 38400bps
port_select(1);
port_speed(1, 38400L)
//select working port2, and set the communication rate to 9600bps
port_select(2);
port_speed(2, 9600L)
}
The specified port number
4800L, 9600L, 19200L, 38400L, 115200L

Advertisement

Table of Contents
loading

Table of Contents