
Model 8210A-2-5
IM-377
Aeroflex / Weinschel
39
7-20. Base Protocol Commands
DEVICE RESET
Function:
Sends a Reset msg to the device
Syntax:
DEVICE RESET addr
Argument(s):
Arguaddr
integer
address
Remarks:
This function is used to send a Reset
msg
to the
speci
Return Value:
none
Example(s):
DEVICE RESET 4
DEVICE? PRESENCECHECK
Function:
Sends a PresenceCheck request to a device
Syntax:
DEVICE? PRESENCECHECK
addr
Argument(s):
addr
addr
integer address
Remarks:
This function is used to send a PresenceCheck
msg
to the specified
address. It returns a ’1’ if the specified device responds, otherwise the function returns ’0’.
Return Value:
status
integer
Example(s):
DEVICE? PRESENCECHECK 4 returns ’1’
DEVICE? GETID
Function:
Sends a GetID request to a device.
Syntax:
DEVICE? GETID
addr
Argument(s):
addr
integer
address
Remarks:
This function is used to send a GetID
msg
to the specified address.
ID structure, consisting of the following fields:
Protocol Rev char
Module Version 7 bytes
Manufacturer 8 bytes
Module Name 8 bytes
ID 32-bit integer
Example(s):
DEVICE? GETID 4 returns ’B, V1.00A, Weinshel, 150T-70, 0x67000000’
DEVICE? GETCAP
Function:
Sends a GetCap request to a device.
Syntax:
DEVICE? GETCAP
addr
Argument(s):
addr
integer
address
Remarks:
This function is used to send a GetCap
msg
to the specified address
Return Value:
Capabilities
string
Example(s):
DEVICE? GETCAP 4
returns ’( (prot(attn) type(step)
model(150T-70 ) attn( 70.00)
stepsize( 10.00) )’
DEVICE ENAREPORT
Function:
Sends an EnableAppReport msg to a device.
Syntax:
DEVICE ENAREPORT
addr
stat
Argument(s):
addr
integer
address stat integer enable/disable reporting
Remarks:
This function is used to send an EnaAppReport
msg
to the specified
address.
Return Value:
none
Example(s):
DEVICE ENAREPORT 4 1
DEVICE ASSIGNADDR
Function:
Sends an AssignAddr msg to a device.
Syntax:
DEVICE ASSIGNADDR addr newaddr
Argument(s):
addr
integer
address
newaddr
integer
new address
Remarks:
This function is used to send an AssignAddress msg to the specified
address.
Return Value:
none
Example(s):
DEVICE ASSIGNADDR 4 2
Содержание 8210A-2-5
Страница 52: ......