Argox PA-20 Basic Programming Manual Manual de usuario Pagina 91

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 143
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 90
PT-Basic Programming Manual Ver. 1.00 90/143
WRITE_COM
Purpose
To send a string to the host through a specified COM port.
Syntax
WRITE_COM(N%, A$)
Example
CLS
PRINT "===COM TEST==="
PRINT "ENT TO WRITE"
SET_COM(1,1,1,2,1)
OPEN_COM(1)
WHILE INKEY$<>CHR$(13)
WEND
STR1$="Hello!!"
WHILE GET_CTS(1)=0
WEND
WRITE_COM(1,STR1$)
CLOSE_COM(1)
END
Description
N% is an integer variable indicating which COM port the
data is to be sent to (now we only can choose 1).
A$ is a string variable indicating the string to be sent.
GET_CTS
Purpose
To get CTS level.
Syntax
A% = GET_CTS(N%)
Example
PRINT “CTS Status:”,GET_CTS(1)
Description
A% is an integer variable to be assigned to the result.
A%
Meaning
0
Negated (Space)
1
Asserted (Mark)
N% is an integer variable indicating which COM port to get
CTS level (now we only can choose 1).
Vista de pagina 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 142 143

Comentarios a estos manuales

Sin comentarios