Close A Modbus/Tcp Client Connection (3001) - GE RX3i User Manual

Pacsystems
Hide thumbs Also See for RX3i:
Table of Contents

Advertisement

Close a Modbus/TCP Client Connection (3001)

The application program closes a Modbus/TCP Client Connection by issuing the Close Modbus/TCP Client
Connection COMMREQ. The Close COMMREQ closes the underlying TCP connection and frees the channel for
other communication tasks.
An error response is returned if the channel number in the COMMREQ identifies a non-Modbus/TCP Client
connection or an inactive channel.
Command 3001 Example
Terminate the Modbus/TCP Client connection established on Channel 5. Return the COMMREQ Status word to
%R10.
Dec
Word 1
00002 (0002)
Word 2
00000 (0000)
Word 3
00008 (0008)
Word 4
00009 (0009)
13
Word 5
00000 (0000)
Word 6
00000 (0000)
Word 7
03001 (0BB9)
Word 8
00005 (0005)
(Word 7) Channel Command Number: Word 7 requests the Close channel service.
(Word 8) Channel Command Number: Word 8 identifies a channel previously opened with an Open
Modbus/TCP Client Connection request. If a Close Modbus/TCP Client Connection is sent to a channel that is
already closed, a success CRS value of 1 will be returned.
GFK-2224Q
(Hex)
Length of Channel command Data Block
Always 0 (no-wait mode request)
Memory type of CRS word (%R)
CRS word address minus 1 (%R10)
Reserved
Reserved
Close Modbus/TCP Client Connection
Channel number (5)
January 2017
Chapter 9. Modbus/TCP Client
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx7i

Table of Contents