beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 203

background image

U

SING

R

AW

P

ORTS

S

ENDING

D

ATA

R

EVISION

1

P

AGE

187

The example above listens on a TCP/IP socket for a frame that starts with an asterisk and
ends with a carriage return. It then converts the frame to a decimal value, stores this in an
integer tag, and echoes the value back to the client.

S

ENDING

D

ATA

To send data on a raw port, use the

PortWrite

or

PortPrint

functions, as documented in

the Function Reference section of this manual. The first function sends a single byte, while
the second function sends an entire string. To send numeric values, use the

IntToText

function to convert them into strings.