| OPEN.PORT | |
| Syntax | OPEN.PORT portnumber |
| Explanation | OPEN.PORT opens a serial communications
port for I/O. When the port is successfully opened,
OPEN.PORT returns a channel number which may be assigned
to STANDARD.INPUT and STANDARD.OUTPUT or which
may be supplied as an additional input to
I/O commands like READ or
PRINTQUOTE.
Serial ports are numbered from 1 on. On Windows, 1 is equivalent to COM1, 2 to COM2 etc, while on the Macintosh, port 1 is the serial port, and port 2 is the printer port. Serial ports must be configured for the correct speed, parity bits, settings, etc. Use the CONFIGURE command for this purpose. For the format of this string, see the CONFIGURE command. When Logo opens a port, its uses the following default settings: baud=9600,data=1,parity=n,timeout=5000,handshake=off,binary=n See also CLOSE. |
| Example | OPEN.PORT 1 Result: 2 |