Download Magellan Interface Toolkit Manual (Emerald Intelligence)
Transcript
The SERIO Interface Module The serial port can be a valuable interface to external equipment, auxiliary terminals or other computers. The SERIO module permits MAGELLAN to command the reading or writing of data from or to the serial port. In the case of reading data from the serial port, SERIO is quite simpleminded; it reads until there is no more data to be read. In writing to the port it is even simpler: it sends the string to the port, and that's it. In simple cases, this is all that is desired: send a command to another piece of equipment, or wait for a data word from another terminal. To facilitate more advanced use of the serial port, we have included the source code of the SERIO module. It is very simple and does not perform extensive error checking or provide much other useful data. Writing to the Serial Port (PUT) Characters can be sent to the serial port in either ASCII or hexadecimal format. You can transfer hex characters to the serial port via the SERIO interface by entering a combination of hex character equivalents and markers at the command line in a knowledgebase rule clause. A string of hex characters may be needed to set certain flags or characteristics on a device. MAGELLAN INTERFACE TOOLKIT - SERIO MODULE