Before Programming
4-9
IM 760101-11E
4
Using the extended event register
Changes in the condition register are reflected in the
extended event register (page 6-4).
Example
:STATus:FILTer1 FALL;:STATus:EESE 1;
EESR?;*SRE 8\<PMT>
(Read the response to
:STATus:EESR?
)
Loop
(Wait for a service request)
:NUMeric[:NORMal]:VALue?\<PMT>
(Read the response to
:NUMeric[:NORMal]:
VALue?
)
:STATus:EESR?\<PMT>
(Read the response to
:STATus:EESR?
)
(Return to
LOOP
)
The “
STATus:FILTer1 FALL
” command sets the
transition filter such that Bit 0 (FILTer1) of the
Extended Event Register sets to
1
when Bit 0 of the
Condition Register changes from
1
to
0
.
“
STATus:EESE 1
” is a command used only to reflect
the status of bit 0 of the extended event register in the
status byte.
“
STATus:EESR?
” is used to clear the extended event
register.
The “
*SRE 8
” command is used to generate a service
request caused solely by the extended event register.
“
:NUMeric[:NORMal]:VALue?
” will not be executed
until a service request is generated.
Using the COMMunicate:WAIT command
The “
COMMunicate:WAIT
” command halts
communications until a specific event is generated.
Example
:STATus:FILTer1 FALL;:STATus:
EESR?\<PMT>
(Read the response to
:STATus:EESR?
)
Loop
COMMunicate:WAIT 1\<PMT>
:NUMeric[:NORMal]:VALue?\<PMT>
(Read the response to
:NUMeric[:NORMal]:
VALue?
)
:STATus:EESR?\<PMT>
(Read the response to
:STATus:EESR?
)
(Return to
LOOP
)
For a description of “
STATus:FILTer1 FALL
” and
“
STATus:EESR?
”, refer to “Using the extended event
register” on this page.
“
COMMunicate:WAIT 1
” means that communications
is halted until bit 0 of the extended event register is set
to “
1
”.
The “
:NUMeric[:NORMal]:VALue?
” command will
not be executed until bit 0 of the extended event
register is set to “
1
”.
4.5 Synchronization with the Controller
Содержание wt1600
Страница 1: ...Digital Power Meter Communication Interface IM 760101 11E 4th Edition ...
Страница 131: ...7 2 IM 760101 11E 7 2 Sample Program Image ...
Страница 138: ...Sample Program 7 9 IM 760101 11E 7 7 4 Output of Normal Measurement Data ...
Страница 142: ...Sample Program 7 13 IM 760101 11E 7 7 5 Output of Harmonic Measurement Data ...