Page 39
12.2.4 Interface Management Commands
LOCAL
Go to local. Any subsequent command will restore the remote state.
IFLOCK
<
NRF
>
Set or Clear the lock requiring the instrument to respond only to this
interface, where <
NRF
> has the meaning: 0 = clear and 1 = set the lock.
It is an Execution Error (number 200) if the request is denied either because
of conflict with a lock on this or another interface, or the user has disabled
this interface from taking control using the web interface.
IFLOCK?
Query the status of the interface lock.
The response is: <
NR
1><
RMT
> where <
NR
1> is
= 0 if there is no active lock,
= 1 if this interface instance owns the lock or
= -1 if the lock is unavailable either because it is in use by another interface
or the user has disabled this interface from taking control (via the web
interface).
ADDRESS?
Returns the GPIB bus Address. The response is <
NR
1><
RMT
>.
IPADDR?
Returns the present IP address of the LAN interface, provided it is
connected.
If it is not connected, the response will be the static IP if configured to
always use that static IP, otherwise it will be 0.0.0.0 if waiting for DHCP or
Auto-IP.
The response is nnn.nnn.nnn.nnn<
RMT
>, where each nnn is 0 to 255.
NETMASK?
Returns the present netmask of the LAN interface, provided it is connected.
The response is nnn.nnn.nnn.nnn<
RMT
>, where each nnn is 0 to 255.
NETCONFIG? Returns the first means by which an IP address will be sought.
The response is <
CRD
><
RMT
> where <
CRD
> is DHCP, AUTO or STATIC.
The following commands specify the parameters to be used by the LAN interface.
Note:
a
power cycle is required after these commands are sent before the new settings are used (or
returned in response to the queries listed above). The instrument does not attempt to check the
validity of the IP address or netmask in any way other than checking that each part fits in 8 bits.
The rear panel LAN RESET switch will override these commands and restore the defaults as
described earlier.
NETCONFIG
<
CPD
>
Specifies the first means by which an IP address will be sought.
<
CPD
> must be one of DHCP, AUTO or STATIC.
IPADDR
<QUAD>
Sets the potential static IP address of the LAN interface (as on the
webpage).
The parameter must be strictly a dotted quad for the IP address, with each
address part an <
NR
1> in the range 0 to 255, (e.g. 192.168.1.101).
NETMASK
<QUAD>
Sets the netmask to accompany the static IP address of the LAN interface.
The parameter must be strictly a dotted quad for the netmask, with each
part an <
NR
1> in the range 0 to 255, (e.g. 255.255.255.0).