Name hostname, Ipaddr ip address – Laser beta lasermike LS8000-3 User Manual

Page 152

Advertising
background image

LaserSpeed 8000-3 Instruction Handbook

RS-232/RS-422 Communication

Part No. 93463 / Drawing No. 0921-01561

Page 152 of 221

Revision A (Sep 2007)

*NAME

Hostname

*NAME?<CR>

Read

Response

Format:

*NAME=<NAME><CR>

*NAME=<NAME><CR>

Set

<NAME>

is a user-selectable name that you can assign to the LS8000-3, and can be up to 30

characters long. When the DHCP option is enabled, the LS8000-3 will advertise its name
with the DHCP server. The DHCP server can then register the name with the local DNS
server. If the network supports this feature, the gauge will then become addressable by this
name.

For compatibility with networking systems, the host names should conform to the restrictions
described in RFC-1035: "They must start with a letter, end with a letter or digit, and have as
interior characters only letters, digits, and hyphen." Host names are not case-sensitive.

This feature allows you to connect an LS8000-3 to a network, and then address it by a text
name instead of having to know the IP Address.

For example, the LS8000-3 is connected to a network with DHCP enabled, and the
Hostname is set to "line42-laser". You should be able to go to a command prompt and
type: "ping line42-laser", and see responses from the LS8000-3. Or, you can type "telnet
line42-laser

", then type commands just as you would over the RS-232 or RS-422 port.

Note: Changing this setting after an address has been acquired using DHCP may confuse
the DHCP/DNS server. The server's DNS cache may have to be reset to clear the error.

*IPADDR

IP Address

*IPADDR?<CR>

Read

Response

Format:

*IPADDR=<N><CR>

*IPADDR=<XXX.XXX.XXX.XXX><CR>

Set

Where <XXX.XXX.XXX.XXX> is an IP Address, such as "192.168.10.246". This
command can be used manually set the IP Address, or to read back the IP Address
assigned by the DHCP server.

If the DHCP option is enabled, the value stored for this setting is ignored, and the IP Address
read from the DHCP server is returned. If there was an error contacting the DHCP server,
then the IP Address is returned as 0.0.0.0.

If DHCP is disabled, then this command is used to manually set the IP Address.

Example: (DHCP disabled)

To set the IP Address:

Command: *IPADDR=192.168.0.213<CR>

…and then read it back

Command: *IPADDR?<CR>

Advertising