![ProSoft MVI56E-GEC Скачать руководство пользователя страница 38](http://html1.mh-extra.com/html/prosoft/mvi56e-gec/mvi56e-gec_user-manual_1618869038.webp)
Sending and Receiving ASCII Data
MVI56E-GEC ♦ ControlLogix Platform
User Manual
Generic ASCII Ethernet Communication Module
Page 38 of 80
ProSoft Technology, Inc.
4.2.2 Receiving ASCII Text as a Server
When a server port of the MVI56E-GEC is set up, it will accept incoming ASCII
text from a client only.
1
When the MVI56E-GEC receives an ASCII string from a client, the
GEC.S
TAT
.S
ERVER
[
X
].R
X
controller tag increments by 1. You will need to
monitor this tag to determine a new message was received.
2
The
GEC.S
ERVERS
[
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
.S
ERVER
[
X
].R
X
increases by 1), and copies the text out of the
GEC.S
ERVERS
[
X
].R
EAD
D
ATA
array.
3
The number of characters received in the new message is located at
GEC.S
ERVERS
[
X
].R
EAD
D
ATA
C
OUNT
.
4
The accumulated total number of characters received is located at
GEC.S
ERVERS
[
X
].R
EAD
T
OTAL
C
OUNT
.