![ProSoft MVI56E-GEC User Manual Download Page 64](http://html1.mh-extra.com/html/prosoft/mvi56e-gec/mvi56e-gec_user-manual_1618869064.webp)
Reference
MVI56E-GEC ♦ ControlLogix Platform
User Manual
Generic ASCII Ethernet Communication Module
Page 64 of 80
ProSoft Technology, Inc.
When configuring the module from the ladder logic, use numeric values to select
options (0 for "No" and non-zero for "Yes") rather than text values. After the
module receives this block, it will build the two configuration files and perform a
reboot operation. The module will then use the new configuration.
Handling Multiple Blocks
It is important to understand how to handle multiple blocks. The module can only
send 200 bytes at each scan to the processor. For example, if a device sends a
message that contains 1000 bytes to the module, the module will break the
message down into 5 blocks of 200 bytes. The first four blocks will set the
number of characters parameter as -1, indicating that each block is part of the
same message. The last block sets the number of characters to 200, indicating
that there are no more blocks from that message.
The concept is the same for writing data from the processor to the module,
except that you can write up to 400 bytes at a time to the module. The module
buffers all data until it receives a block that contains the "number of characters"
parameter set to >=0. In this case, it sends all data to the client that is connected
to the server, or the server connects to the client.
Important: Messages are usually broken down into smaller frames by the IP layer in a specific
LAN or WAN according to the Maximum Transmit Unit (MTU) of the network.
For example, a message that contains 2000 bytes can be broken down into 2 messages by the IP
layer in the network (after it is sent to the module). The same issue is applied when a client sends
data to the server; although a client sends a single message to the module, it could be broken
down into smaller fragments before it gets to the module. In this case, the module would interpret it
as two different messages.
The application layer defines when a message is finished. This is the reason why the user should
consider using some sort of control so the ladder could identify different messages as actually part
of one single message. This could be accomplished either by using a specific character at the end
of each message or by using a fixed length for each message.
Network Data Transfer
In order for data to be transferred between the module and another device, a
TCP/IP connection must be made between a client and a server on the module.
The MVI56E-GEC module contains five servers that listen on the user assigned
service ports waiting for a connection. When a client wishes to send data to the
module, it must open a TCP/IP connection to the module. After the connection is
established, either device can send and receive data. When either device is
finished with the connection, the connection must be closed. This operation can
be initiated from either end device.