![API 8512 Series Скачать руководство пользователя страница 26](http://html.mh-extra.com/html/api/8512-series/8512-series_operation-and-installation-manual_2953475026.webp)
MANUAL IM635
Command Operation
Page 26
SET NETMASK
Function:
Sets the network IP address subnet mask
Syntax:
SET NETMASK
ipmask
Argument(s):
ipmask
subnet mask, in the form DDD.DDD.DDD.DDD
Remarks:
This function sets the default IP subnet mask used when static IP addressing is selected. The
default value is 255.255.255.0
Return Value: none
Example(s):
SET NETMASK 255.255.255.0
SET GATEWAY
Function:
Sets the network Gateway IP address
Syntax:
SET GATEWAY
ipaddr
Argument(s):
ipaddr
IP address, in the form DDD.DDD.DDD.DDD
Remarks:
This function sets the default gateway/router IP address. Network packets that have a
destination not reachable by the current IP configuration are sent to this address. The default
value is 0.0.0.0, which disables the gateway function.
Return Value: none
Example(s):
SET GATEWAY 10.0.0.100
SET TCP CONNECT
Function:
Sets the number of TCP server connections
Syntax:
SET TCP CONNECT
numconnect
Argument(s):
numconnect
max number of connections, 1-4
Remarks:
This function sets the maximum number of allowed simultaneous connections (users) that are
supported by the TCP server. The default is 1, allowing a single user.
Return Value: none
Example(s):
SET TCP CONNECT 4
// sets the server to allow up to 4 users
SET TCP SERVER
Function:
Sets the TCP server port number
Syntax:
SET TCP SERVER
portno
Argument(s):
portno
initial server port, 1024-65530
Remarks:
This function sets the port number used to communicate with the internal TCP server(s). If
multiple servers are installed then each server opens successive ports from this initial setting. For
example, if 3 servers are installed, and
portno
= 10001, then server #1 opens port 10001, server
#2 opens port 10002, and server #3 opens port 10003 (The system is set to use a single server
by default. Consult the factory if multiple servers are required). The default port is 10001.
Return Value: none
Example(s):
SET TCP SERVER 1024 // sets the server to listen for connections on port 1024
SET TCP KEEPALIVE
Function:
Sets the TCP keepalive rate
Syntax:
SET TCP KEEPALIVE
tout
Argument(s):
tout
keepalive timer value, in seconds (0, 10-7200)
Remarks:
This function sets the value of the TCP keepalive timeout parameter. The TCP server uses this
setting in order to keep a socket open by periodically sending keepalive packets during periods of
inactivity. The value can be set for 10 to 7200 seconds (2 hours), or 0 to disable the keepalive
function. The default is 30 seconds.
Return Value: none
Example(s):
SET TCP KEEPALIVE 60
// sets the keepalive timer to 60 seconds