On <event> domacro – Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 118

Section 5
Command Descriptions
5.48
ON <event> DOMACRO
The ON <event> DOMACRO command allows the Micro488/EX to automatically
execute a Macro when one or more of the specified events occur. The events are polled
between commands and when one of the events is detected as true, its assigned Macro
is executed. Once executed, the event is disabled from further execution and must be
re-enabled with another ON <event> DOMACRO command.
There are two types of events, level sensitive and edge sensitive. Level sensitive
events, such as SRQ, will cause Macro execution if they are enabled while the event
condition persists. Usually, some action must be taken (eg SPOLL) to clear the
condition prior to re-issuing the ON <event> DOMACRO command. Edge sensitive
events, such as TRIGGER, are cleared when the Macro executes.
Regardless of the event sensitivity, the ON <event> DOMACRO command must
be re-sent after the Macro executes to re-activate the event condition. The optional
events include…
SRQ
This event is level sensitive. If the condition exists at the time the ON
SRQ
DOMACRO command is issued, the Micro488/EX will execute
the assigned Macro immediately.
PERIPHERAL
This event occurs when the Micro488/EX is force from the Controller
Active State (*SC•CA) to the Peripheral State (*SC•*CA) by receipt
of IFC from the System Controller. This can be useful in detecting
receipt of IFC when in the *SC•CA state. This event is edge sensitive.
CONTROLLER
This event occurs when the Micro488/EX receives control of the bus
and transitions from the Peripheral State (*SC•*CA) to the Controller
Active State (*SC•CA). This occurs when the Take Control interface
message is received by the Micro488/EX. This event is edge
sensitive.
TRIGGER
This event occurs when the Micro488/EX, as a Peripheral (*CA),
receives a Group Execute Trigger (GET) command from the Active
Controller. This event is edge sensitive. When the Macro is executed,
the internal status, as read by the STATUS 1 command, is cleared.