Canon X-07 User Manual page 100

Table of Contents

Advertisement

To output signals through the X-721, the following instructions are used in a
program.
INIT
#
Defines the file number of the X-721.
INPUT#
Inputs signals through the X-721.
{
PRINT#
Outputs signals through the X-721.
INP (#)
OUT#
SNS(#)
The INIT # instruction specifies which file number ( # 1 to # 5) is assigned to
which I/O device. For example, to set the X-721 to file number # 1, type
INIT#1, "OPT:", 2400, "A"
"# 1" means that file number 1 is defined. "OPT:" is the device name for op­
tical coupler. "2400" means that the transmission rate (baud rate) is 2400
baud (bits/second). "A" is the ACIA transmission mode. Please refer to
Chapter 3 Reference for deatils on baud rates and transmission modes.
The INIT# instruction assigns the file number # 1 to the X-721, and also sets
the rule for communicating with the X-721.
If th e above instruction i s executed during a program, the INPUT # 1 and
the PRINT# 1 instructions inputs/outputs signals through the X-721.
following programs.
Transmitting X-07
10
INIT#1, "OPT:"
20
INPUT A$
PRINT# 1 , A$
30
40
GOTO 20
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents