COMOPEN Examples


Example 1:

 

COMF1

COMFILE

 

.

 

 

  

COMOPEN

COMF1,"2,2400,8,N,2"

 

This example opens COM2 at 2400 baud, 8 bits, no parity and 2 stop bits.

 

Example 2:

 

COMF1

COMFILE

 

.

 

 

  

COMOPEN

COMF1,"S,O,130.137.144.4,1080,C"

 

This example opens socket number 1080 using the supplied address in cooked mode.

 

Example 3:

 

COMF1

COMFILE

 

.

 

 

  

COMOPEN

COMF1,"S,C,www.sunbelt-plb.com,220"

 

This example creates socket number 220 using the supplied host name in raw mode.

 

 



PL/B Language Reference COLLECTION Example COMPARE Examples