Chapter 13— Configuration/Control Commands
140
ip.lpd.enable
Type: getvar; setvar
This parameter refers to the LPD protocol setting.
You should direct LPD communications from the host to port 515.
getvar result
Returns the LPD protocol status (on or off).
Example
Description
Syntax
Result
setvar choices
on, off. Default = on
Example
Description
Syntax
Result
ip.netmask
Type: getvar; setvar
This parameter refers to the subnet mask address. This value is ignored if
DHCP is enabled.
getvar result
Returns the printer's subnet mask.
Example
Description
Syntax
Result
setvar choices
Any valid netmask. Default = "255.255.255.0"
Example
Description
Syntax
Result
ip.ping_remote
Type: do
This parameter directs the printer to ping a specified address x number of
times. The address to be pinged is set by setvar ip.remote.
do parameters
ip address; number of times to ping
Example
Description
Syntax
Result
EasyCoder PL-Series Printer Programmer's Reference Manual
Get the LPD value.
! U1 getvar "ip.lpd.enable"
"on"
Enable the LPD protocol.
! U1 setvar "ip.lpd.enable" "on"
Turns on the LPD protocol upon turning the printer
off and on or issuing the device.reset.
Get the subnet mask.
! U1 getvar "ip.netmask"
"255.255.255.0"
Set the subnet mask to 255.255.0.0.
! U1 setvar "ip.netmask" "255.255.0.0"
Sets the subnet mask to 255.255.0.0 upon turning the
printer off and on or issuing the device.reset.
Ping address 10.14.4.162 ten times.
! U1 do "ip.ping_remote" "10.14.4.162"
"10"
Printer creates a report similar to the following:
Pinging 10.14.4.162 10 times
Results: 10 of 10 succeeded
Min:20 Max:40 Avg:22
(min/max times in mSec.)