beautypg.com

5sending and receiving ascii data – ProSoft Technology MVI69-GEC User Manual

Page 53

background image

MVI69-GEC ♦ CompactLogix or MicroLogix Platform

Contents

User Manual

ProSoft Technology, Inc.

Page 53 of 86

February 18, 2014

5

Sending and Receiving ASCII Data

In This Chapter

Sending ASCII Data ...............................................................................53

Receiving ASCII Data ............................................................................53

5.1

Sending ASCII Data

Use the following steps to configure the MVI69-GEC as a client to send an ASCII string to a
remote device (server). The MVI69-GEC can simultaneously connect and send data to up to
five servers.

1 Enter the IP address of the server at GEC.C

LIENTS

[

X

].C

ONNECTION

S

ETUP

.S

ERVER

IP.

2 Enter the service port of the server at

GEC.C

LIENTS

[

X

].C

ONNECTION

S

ETUP

.S

ERVICE

P

ORT

.

3 Enter the text to be sent at GEC.C

LIENTS

[

X

].W

RITE

D

ATA

.

4 Enter the number of characters to be sent at GEC.C

LIENTS

[

X

].W

RITE

D

ATA

C

OUNT

5 Set the bit at GEC.C

LIENTS

[

X

].F

LAGS

.C

ONNECT

to open the connection to the server.

6 Set the bit at GEC.C

LIENTS

[

X

].F

LAGS

.W

RITE

D

ATA

to send the message.

7 (Optional) Set the bit at GEC.C

LIENTS

[

X

].F

LAGS

.C

LOSE

C

ONNECTION

to close the

connection.

8 GEC.S

TAT

.C

LIENT

[

X

].T

X

C

OUNT

increments by 1 on every transmission.

5.2

Receiving ASCII Data

The MVI69-GEC, whether used as a client or server, can receive incoming ASCII texts from
a remote device.