
I/O Controller 2 Manual
HW group
www.HW-group.com
20/ 42
Setting the connection length
Keeping a TCP socket open is
useful when small volumes of
data need to be transferred as
soon as they come in but HW
VSP is not used or a permanent
connection needs to be avoided.
For the duration specified by the B
option, the connection is kept
open and data are sent
immediately, without the delay for
establishing a TCP connection.
On the other hand, a long
timeout means a long period of
inaccessibility through other
sockets (disconnected cable,
TCP setup).
Port configuration in UDP mode
When UDP communication is
used, the remote address must
be specified here.
Otherwise, the communication
will be unidirectional. Data from
the I/O Controller are sent only
to the specified address.
====== Out IP Setup ======
S: Send to IP
192.168.0.252
U: Port
23
If the address in the S option is different from 0.0.0.0, the I/O
Controller works as a Client/Server in the TCP mode. This
means that if
no TCP/IP connection is established
and the
device either receives serial port data (even a single byte) or
the state of its digital inputs changes (in the range allowed by
the #T option), the device periodically tries to initiate a TCP
connection as a
TCP Client
. The device remains in the
TCP
Server
mode in between attempts.
In the UDP mode, the I/O controller sends data from the serial port to this address/port. Control of
digital inputs and outputs in the UDP mode is governed by #E and subsequent parameters.
Set S = 0.0.0.0 to switch the converter to the
TCP Server
mode.
B: IP Protocol Retry
124
Determines the TCP connection timeout if no communication
takes place. Predefined values are available through the
asterisk notation:
*1: 30 s (n = 35)
*2: 1 min. (n = 45)
*3: 2 min. (n = 63)
*4: 5 min. (n = 77)
*5: 10 min. (n = 101)
*6: 15 min. (n = 124)
*7: 30 min. (n = 144)
*8: 1 h (n = 179)
*9: 2 h (n = 249)
The timeout can be fine-tuned by specifying a value from 10 to
255 according to this formula:
n <16 .. n * 0.2 s
n < 32 .. (n- 15)* 0.8 s + 3.0 s
n < 64 .. (n- 31)* 3.2 s + 15.8 s
n <128 .. (n- 63)*12.8 s + 118.2 s
n <256 .. (n-127)*51.2 s + 937.4 s
Example:
B42 => (42-31)*3.2+15.8 = 51s
P: IP Active Call Timer (65535
– Off)
Содержание I/O Controller 2
Страница 1: ...I O Controller 2 Manual HW group www HW group com 1 42 I O Controller 2 MANUAL...
Страница 5: ...I O Controller 2 Manual HW group www HW group com 5 42...
Страница 17: ...I O Controller 2 Manual HW group www HW group com 17 42 Network parameters TCP Setup Mode...
Страница 18: ...I O Controller 2 Manual HW group www HW group com 18 42...