P14-38 Mobile Printer CPCLProgramming Manual
Networking Parameters
The following parameter names can be used only with
the network application versions 40 and above. Any
changes made using the setvar command will not take
effect until the printer’s power has been cycled or the
device.reset command is issued.
card.mac_addr
type: getvar
This parameter refers to the MAC address of the network
card.
getvar result MAC address of the printer
Example Description This parameter instructs the printer
to respond with the MAC address.
Syntax ! U1 getvar “card.mac_addr”
Result “00A0F83AA589”
ip.addr
type: getvar; setvar
This parameter refers to the IP address of the printer. The
DHCP setting (“ip.dhcp.enable” parameter) must be “off”
to change the printer’s IP address.
getvar result The printer’s IP address
Example Description Instructs the printer
to respond with its current IP
address
Syntax ! U1 getvar “ip.addr”
Result “10.14.4.159”
setvar choices Any valid IP address
Default 0.0.0.0
Example Description Instructs the printer to change its
IP address to 10.14.4.235.
Syntax ! U1 setvar “ip.addr” “10.14.4.235”
Result The IP address will
change to 10.14.4.235 upon
cycling the power or issuing the
device.reset
continued on next page