Kramer Electronics Ltd.
PA-240Z - Protocol 3000
44
Communication Commands
Command
Description
ETH-PORT
Set/get Ethernet port protocol
NET-DHCP
Set/get DHCP mode
NET-GATE
Set/get gateway IP
NET-IP
Set/get IP address
NET-MAC
Get MAC address
NET-MASK
Set/get subnet mask
ETH-PORT
Functions
Permission
Transparency
Set:
ETH-PORT
Administrator
Public
Get:
ETH-PORT?
End User
Public
Description
Syntax
Set:
Set Ethernet port protocol
#
ETH-PORT
SPportType,ETHPortCR
Get:
Get Ethernet port protocol
#
ETH-PORT?
SPportTypeCR
Response
~nn@
ETH-PORT
SPportType,ETHPortCR LF
Parameters
portType
–
0
(TCP),
1
(UDP)
ETHPort
–
0-65534
(TCP / UDP port number)
Notes
If the port number you enter is already in use, an error is returned.
The port number must be within the following range: 2000-(2^16-1).
UDP port 50001 and TCP port 5001 are reserved for internal use.
K-Config Example
Set the Ethernet port protocol for TCP to port 12457:
“#ETH-PORT 0,12457”,0x0D
NET-DHCP
Functions
Permission
Transparency
Set:
NET-DHCP
Administrator
Public
Get:
NET-DHCP?
End User
Public
Description
Syntax
Set:
Set DHCP mode
#
NET-DHCP
SPmodeCR
Get:
Get DHCP mode
#
NET-DHCP?
CR
Response
~nn@
NET-DHCP
SPmodeCR LF
Parameters
mode
–
0
(do not use DHCP. Use the IP address set by the factory or the
NET-IP
command),
1
(try to use
DHCP. If unavailable, use the IP address set by the factory or the
NET-IP
command)
Notes
Connecting Ethernet to devices with DHCP may take more time in some networks.
To connect with a randomly assigned IP by DHCP, specify the device DNS name (if available) using the
NAME
command. You can also get an assigned IP by direct connection to USB or RS-232 protocol port if
available. Consult your network administrator for correct settings.
K-Config Example
Enable DHCP mode, if available:
“#NET-DHCP 1”,0x0D