![Fluke 522A/6 Скачать руководство пользователя страница 181](http://html1.mh-extra.com/html/fluke/522a-6/522a-6_operators-manual_2310337181.webp)
Remote Operations
Checking 5522A Status
5
5-39
Po
w
er on. This
b
it is set to 1 if line po
w
er has
b
een t
u
rned off and on since the last
time the ESR
w
as read.
Command error. The 5522A’s IEEE-4
88
interface enco
u
ntered an incorrectly formed
command. (The command ERR? fetches the earliest error code in the error
qu
e
u
e,
w
hich contains error codes for the first 15 errors that ha
v
e occ
u
rred.)
Exec
u
tion error. An error occ
u
rred
w
hile the 5522A tried to exec
u
te the last command.
This co
u
ld
b
e ca
u
sed, for example,
b
y a parameter
b
eing o
u
t of range. (The command
ERR? fetches the earliest error in the error
qu
e
u
e,
w
hich contains error codes for the
first 15 errors that ha
v
e occ
u
rred.)
De
v
ice-dependent error. An error related to a de
v
ice-dependent command has
occ
u
rred.
Q
u
ery error. The 5522A
w
as addressed to talk
w
hen no response data
w
as a
v
aila
b
le
or appropriate, or
w
hen the controller failed to retrie
v
e data on the o
u
tp
u
t
qu
e
u
e.
Operation complete. All commands pre
v
io
u
s to reception of a *OPC c ommand ha
v
e
b
een exec
u
ted, and the interface is ready to accept another message.
PO
N
CME
EXE
DDE
QYE
OPC
15
14
13
12
11
10
9
8
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
PON
0
CME
EXE
DDE
QYE
0
OPC
gjh048.eps
Figure 5-10. Event Status Register (ESR) and Event Status Enable (ESE)
Programming the ESR and ESE
To read the contents of the ESR, send the remote command,
*ESR?
. The ESR is cleared
(set to 0) every time it is read. To read the contents of the ESE, send the remote
command,
*ESE?
. The ESE is not cleared when it is read. When you read either register,
the Calibrator responds by sending a decimal number that when converted to binary
represents bits 0 through 15. The following sample BASIC program retrieves the contents
of both registers:
10 ! THIS PROGRAM READS THE ESR AND THE ESE REGISTERS
20 PRINT @6, “*ESR?” ! ASK FOR THE ESR CONTENTS
30 INPUT @6, A% ! RETRIEVE THE REGISTER CONTENTS
40 PRINT @6, “*ESE?” ! ASK FOR THE ESE CONTENTS
50 INPUT @6, B% ! RETRIEVE THE REGISTER CONTENTS
60 PRINT “ESR = “;A% ! DISPLAY THE ESR REGISTER CONTENTS VALUE
70 PRINT “ESE = “;B% ! DISPLAY THE ESE REGISTER CONTENTS VALUE
80 END
Convert the contents of variables A and B into binary, and you can read the status of the
registers. For example if A is 32, its binary equivalent is: 00000000 00100000. Therefore,
bit 5 (CME) in the ESR is set (1) and the rest of the bits are reset (0). This means that the
Calibrator tried to execute an incorrectly formed command.
Содержание 522A/6
Страница 4: ......
Страница 14: ...5522A Operators Manual x...
Страница 18: ...5522A Operators Manual xiv...
Страница 22: ...5522A Operators Manual 1 2...
Страница 46: ...5522A Operators Manual 1 26...
Страница 48: ...5522A Operators Manual 2 2...
Страница 54: ...5522A Operators Manual 2 8...
Страница 56: ...5522A Operators Manual 3 2...
Страница 189: ...6 1 Chapter 6 Remote Commands Title Page Introduction 6 3 Command Summary by Function 6 3 Commands 6 10...
Страница 190: ...5522A Operators Manual 6 2...
Страница 240: ...5522A Operators Manual 7 2...
Страница 260: ...5522A Operators Manual 8 2...
Страница 314: ...5522A Operators Manual 9 52...
Страница 370: ...5522A Operators Manual 10 56...
Страница 413: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Страница 414: ...5522A Operators Manual B 2...
Страница 416: ...5522A Operators Manual B 4...