ProSoft Technology MVI56-GEC User Manual
Page 44

Ladder Logic
MVI56-GEC ♦ ControlLogix Platform
User Manual
Generic ASCII Ethernet Communication Module
Page 44 of 108
ProSoft Technology, Inc.
October 8, 2010
The connected member of the object can have one of the values shown in the
following table.
State Value
Definition
-3
Server closed connection for client or server is not available.
-2
Unable to open connection with specified server
-1
Unable to open connection with specified server because of invalid IP address.
0
The client is idle and not connected.
1
The client set to connect to the server and waiting for the connection to
establish.
2
The client is connected to the server and can transfer data.
3
The connection is being closed for the client.
A value less than one indicates that the client is not connected to a server and is
available for use. If the client was previously used and an error condition existed
relative to the socket, this parameter will be set to a value less than zero. If the
client socket closed normally, the value will be set to 0.
When the ladder logic requests a new connection, it will set the parameter to a
value of 1. The module will recognize this request and initiate the connection with
the specified server. If the connection is established, the parameter will be set to
two. Data may now be exchanged between the client and the server.
The parameter will be set to a value of 3 when the connection is being closed.
This operation can be initiated from either the client using the Client control word
in the output image or by the server.
The state member of the object can have one of the following values:
State Value
Definition
-1
Client is waiting for a connection request.
0
The client is waiting to establish the connection with the server.
1
The client has established a connection with the server and can send and
receive data.
1000
The client has initiated a close operation on the connection.
1001
The client is waiting for the close on the connection to complete.
1002
The client is issuing an abort (reset) on the connection. The socket is forced
closed.
1003
The server is issuing an abort (reset) on the connection due to control from user.
3000
The client is issuing the ARP command request and waiting for the response.
3001
The client has received the ARP response and has opened the socket.
This member reports the current state of the client socket state machine in the
module. It is preferred to use the Connected member of the object in the ladder
logic instead of this member for control.