!!
"INCLUDE" File - Elterm24.inc
'Elterm24.INC - Include file for use with Elterm 24 Operator Interface.
'The include file replaces the control commands that the Elterm24
' understands with easier to use SEBASIC commands that the MCPI
'software will understand.
'*****************************************************************************
' NOTE1: To use the "Include" file in your project, use the '#INCLUDE'
' include directive followed by a complete path and file name. The include
' file directive must appear in the task before any references to the
' defined functions can be used. example 'C:\MCPI\Elterm24.INC'
' NOTE2: The semicolon (;) is used extensively through out this file. The
' semicolon is used to supress the carriage return and line feed that the
' controller automatically appends to a PRINT command. The semicolon
' is also used to structure the various codes sent to the Elterm 24 panel.
'*****************************************************************************
' The MX2000, TDC, DXi, and PCi have two com ports for serial communica-
' tion with external devices. Port #1 is the host port and used for program
' development. 'Port #2 is the aux. port which is typically used with an
' operator interface panel.
' COM - Select which of the two com ports are to be used with
' the following statements
#DEFINE COM 2
'Aux. serial port
' #DEFINE COM 1
'Host serial port
'*****************************************************************************
' FLUSH_RX_BUFFER Read and dump any characters that might be in the
' receive buffer.
#DEFINE FLUSH_RX_BUFFER DO : KEYPRESS=INCHAR(COM) : LOOP
UNTIL KEYPRESS=0
'*****************************************************************************
' The cursor indicates where the next displayed character appears. The
' cursor is a flashing block. To display the cursor
' the cursor must be enabled.
' CURSOR_ON
Make cursor visible.
' CURSOR_OFF
Make cursor invisible.
#DEFINE CURSOR_ON
PRINT#COM,CHR$(27)+"e";
#DEFINE CURSOR_OFF
PRINT#COM,CHR$(27)+"f";
StockCheck.com