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
the above instruction is executed during a program, the
INPUT # 1
and
the PRINT# 1 instructions inputs/outputs signals through the X-721.
Let's consider a cableless communication between two X-07s. Create the
following programs.
Transmitting X-07
10
INIT#1, "OPT:"
20
INPUT A$
30
PRINT# 1 , A$
40
GOTO 20
91
Summary of Contents for X-07
Page 1: ......
Page 2: ......
Page 8: ...1 Learning how to operate the X 07 2 Special functions and peripheral devices 3 Reference m ...
Page 10: ...Learmng how to operate the X 07 ...
Page 11: ...2 ...
Page 63: ......
Page 64: ......
Page 107: ...00 ...
Page 108: ......
Page 145: ...136 Instructions Others BEEP MOTOR REM Functions ABS FIX HEX INT SGN START TAB ...
Page 146: ......
Page 147: ......
Page 149: ......