![API 8512 Series Скачать руководство пользователя страница 27](http://html.mh-extra.com/html/api/8512-series/8512-series_operation-and-installation-manual_2953475027.webp)
MANUAL IM635
Command Operation
Page 27
SET TCP TIMEOUT
Function:
Sets the TCP server inactivity timeout
Syntax:
SET TCP TIMEOUT
tout
Argument(s):
tout
inactivity timer value, in seconds (0 - 60)
Remarks:
This function sets the value of the TCP server inactivity timeout parameter. The TCP server uses
this setting in order to automatically close a connection if the client is inactive for a period of
time. The value can be set for 0 to 60 seconds, with 0 (or OFF) disabling the inactivity timeout
function. The default is 0 (inactivity timeout disabled).
Return Value: none
Example(s):
SET TCP TIMEOUT 10 //close connection if host is inactive for 10 seconds
SET TCP ECHO
Function:
Sets the TCP server character echoing
Syntax:
SET TCP ECHO
onoff
Argument(s):
onoff
byte, 0-1 (or OFF/ON)
Remarks:
This function controls the setting of character echoing for the TCP server(s). With echo on, the
server echos each received character back to the sender on a character by character basis, while
with the setting off no such echoing occurs. This is useful for testing connectivity, but can result
in a large number of packets transactions and degrade performance. By default, TCP echo is
OFF.
Return Value: none
Example(s):
SET TCP ECHO OFF
// disables character echoing
SET TCP ECHO 1
// enables character echoing
SET UDP SERVER
Function:
Sets the UDP server port number
Syntax:
SET UDP SERVER
portno
Argument(s):
portno
server port, 1024-65530
Remarks:
This function sets the port number used to communicate with the internal UDP server. The
default port is 20000.
Return Value: none
Example(s):
SET UDP SERVER 1024
// sets the server to listen for messages on port 1024
SET TELNET
Function:
Set TELNET server controls
Syntax:
SET TELNET ECHO
onoff
// local server echo
SET TELNET OPTNEG
onoff
// TELNET options negotiation
SET TELNET KEEPALIVE
onoff
// TELNET NOP keepalive
SET TELNET LOGIN
onoff
// require login
SET TELNET TIMEOUT
secs
// session inactivity timeout
Argument(s):
onoff
byte, 0-1 (or OFF/ON)
Remarks:
This function controls various settings of the TELNET server operation. The current settings can
be viewed using the SHOW NET TELNET command. Note that there are two TELNET server
implementations available, a full and a reduced-functionality version, and not all parameters are
supported by the reduced version. The default settings are: echo on, optneg on, NOP keepalive
on, logon off, and an inactivity timeout of 300 seconds.
Return Value: none
Example(s): none