Chapter 13— Configuration/Control Commands
Networking Parameters
138
Any changes made using the setvar command do not take effect until you
turn the printer off and on or issue the device.reset command.
card.mac_addr
Type: getvar
This parameter refers to the MAC address of the network card.
getvar result
Returns the MAC address of the printer.
Example
Description
Syntax
Result
ip.addr
Type: getvar; setvar
This parameter refers to the IP address of the printer. To change the
printer's IP address, you must turn off DHCP.
getvar result
Returns the printer's IP address.
Example
Description
Syntax
Result
setvar choices
Any valid IP address. Default = 0.0.0.0
Example
Description
Syntax
Result
ip.dhcp.enable
Type: getvar; setvar
This parameter refers to the DHCP setting. Before you can set a static IP
address, you must turn off DHCP.
getvar result
Returns the printer's DHCP status (on or off).
Example
Description
Syntax
Result
setvar choices
on, off. Default = on
Example
Description
Syntax
Result
EasyCoder PL-Series Printer Programmer's Reference Manual
Get the MAC address.
! U1 getvar "card.mac_addr"
"00A0F83AA589"
Get the current IP address
! U1 getvar "ip.addr"
"10.14.4.159"
Set the IP address to 10.14.4.235.
! U1 setvar "ip.addr" "10.14.4.235"
The IP address changes to 10.14.4.235 upon turning
the printer off and on or issuing the device.reset.
Get the DHCP setting.
! U1 getvar "ip.dhcp.enable"
"on"
Disable DHCP.
! U1 setvar "ip.dhcp.enable" "off"
The printer's DHCP status is off upon turning the
printer off and on or issuing the device.reset.