Enter (controller mode) – Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 100
Section 5
Command Descriptions
5.30
ENTER (Controller mode)
The ENTER command reads data from the IEEE bus. If a device address (with
optional secondary address) is specified, that device will be addressed to talk. If no
address is specified, the Micro488/EX must already be configured to receive data,
either as a result of an immediately preceding ENTER command, or as a result of a
SEND
sub-command. A time-out error will occur (if enabled) if the Micro488/EX does
not receive a data byte within the time out period after issuing the ENTER command.
If the character count, count, is specified, then exactly that number of characters
will be read from the device with the serial output terminators appended. Otherwise,
ENTER
terminates reception on detection of the line feed (LF) character, which may be
overridden by specifying the terminator in the ENTER command.
If a terminator, term, option is specified, all CR and LF characters in the input
data are unconditionally discarded. When the specified terminator is detected, it is
discarded and replaced with the serial terminator(s) before being returned to the serial
host. The optional terminator applies ONLY to the ENTER command it is sent with.
The terminator returns to a Line Feed on subsequent ENTER commands.
If the EOI option is specified, all characters are returned to the host until the EOI
line is detected. The character sent with EOI asserted is also returned followed by the
serial output terminator(s).
SYNTAX
ENTER[addr][#count|term|EOI|;count|;term|;EOI]
or
EN[addr][#count|term|EOI|;count|;term|;EOI]
addr
is the IEEE bus device address.
count
is the number of characters to ENTER.
term
and EOI override the normal IEEE bus input LF terminator.
RESPONSE
Device-dependent data. If count is specified, then count characters
will be returned followed by the serial output terminators. Otherwise
the response ends when the IEEE bus input terminator is detected and
the serial output terminators are appended to the returned data.