59
CHAPTER 5: Command Descriptions
The next example is an abbreviated form of the previous. Although not as clear, it would require less user-
heap memory if there were more being done in the Macro.
10
PRINT#1,"MA20"
Create Macro # 20
20
PRINT#1,"EN"
30
PRINT#1,"ON L DO20"
Re-enable for the next MLA
40
PRINT#1,"ENDM"
50
PRINT#1,"ON L DO20"
Enable it for Listen
OUTPUT (Controller mode) Command
The OUTPUT command sends data to the IEEE bus. The Remote Enable line is first asserted if the 488
Controller is the System Controller. If device addresses are specified, those devices will then be addressed to
listen. If addresses are not specified, the 488 Controller must already be configured to send data, either as a
result of an immediately preceding OUTPUT command or as the result of a SEND command.
If the character count,
count
, is specified, then exactly that number of characters will be sent to the bus
devices. Otherwise, OUTPUT terminates data transfer upon detection of a serial CR of LF terminator from
the serial input. The serial input terminator(s) are replaced with the bus output terminator(s) before being
sent to the bus devices.
The number of characters that can be set to a bus device is limited by the available user heap. The exception
to this is OUTPUT #count, in which the number of bytes is limited to 65,535.
The IEEE bus output terminators can be modified with the TERM command. Refer to this command
description for complete information.
SYNTAX
OUTPUT[addr[,addr]][#count];data
or
OU[addr[,addr]][#count];data
addr
is a bus-device address. Up to 15 addresses may be specified.
count
is the number of characters to OUTPUT.
data
is a string of characters to OUTPUT terminated by the serial terminator(s).
(unless
count
is specified, in which case no terminator is needed).
RESPONSE
None
MODE
CA
BUS STATES
REN (if SC), *ATN, data (without
addr
)
REN (if SC), ATNMTA, UNL, LAG, *ATN, data (with
addr
)
EXAMPLES:
PRINT#1,"OUTPUT 22;R0C0T1X" Send "R0C0T1X" to device 22.
PRINT#1,"OUTPUT 06,12;ABC"
Send "ABC" to devices 6 and 12.
PRINT#1,"OUTPUT;XYZ"
And send them "XYZ".
PRINT#1,"OUTPUT 0602;DEF"
Send "DEF" to device 6, sec addr 2.
PRINT#1,"OUTPUT06#26;abcdefghijklmnopqrstuvwxyz"
Send the 26 letters of the alphabet terminators to device 6.
Содержание 488 Controller
Страница 94: ...488 CONTROLLER 92 9 2 Board Layout Figure 9 1 The 488 Controller s motherboard...
Страница 95: ...93 CHAPTER 9 Theory of Operation Board Layout Figure 9 2 The interface converter s serial I O board...
Страница 102: ...488 CONTROLLER 100 How To Read the Chart Hexadecimal Decimal Equivalent Equivalent ASCII Character Address or Command...