![ProSoft MVI56E-GEC User Manual Download Page 37](http://html1.mh-extra.com/html/prosoft/mvi56e-gec/mvi56e-gec_user-manual_1618869037.webp)
MVI56E-GEC ♦ ControlLogix Platform
Sending and Receiving ASCII Data
Generic ASCII Ethernet Communication Module
User Manual
ProSoft Technology, Inc.
Page 37 of 80
4.2
Receiving ASCII Data
The MVI56E-GEC, whether used as a client or server, can receive incoming
ASCII texts from a remote device.
4.2.1 Receiving ASCII Text as a Client
The MVI56E-GEC can receive ASCII strings from the same server it sends to.
Since the client socket connection has already been established with the server,
the incoming data will be stored in the
GEC.C
LIENTS
[
X
].R
EAD
D
ATA
array.
1
When the MVI56E-GEC receives an ASCII string from a server, the
GEC.S
TAT
.C
LIENT
[
X
].R
X
C
OUNT
controller tag increments by 1. You will need
to monitor this tag to determine a new message was received.
2
The
GEC.C
LIENT
[
X
].R
EAD
D
ATA
array contains the ASCII text of the new
message. This array is overwritten every time a new string is received. You
will need to create logic that monitors when a new message is received
(
GEC.S
TAT
.C
LIENT
[
X
].R
X
C
OUNT
increases by 1), and copies the text out of
the
GEC.C
LIENTS
[
X
].R
EAD
D
ATA ARRAY
.
3
The number of characters received in the new message is located at
GEC.C
LIENTS
[
X
].R
EAD
D
ATA
C
OUNT
.
4
The accumulated total number of characters received is located at
GEC.C
LIENTS
[
X
].R
EAD
T
OTAL
C
OUNT
.