CT_OUTWORD

 OUTWORD()
 Sends a 16-bit word to a port
------------------------------------------------------------------------------
 Syntax

     OUTWORD(<nPort|<cHexPort>,<nOutWord|cHexOutWord>)
         --> lSuccessful

 Arguments

     <nPort|HexPort>  Designates a port address to which a word with a 16-
     bit value is passed.  This value can be a decimal integer or hexadecimal
     (sedecimal) string.  The maximum is 65520 ("FFF0" Hex).

     <nOutWord|cHexOutWord>  Designates the word passed to the specified
     port.  This value can be designated as a decimal integer or hexadecimal
     (sedecimal) string.  The maximum is 65536 ("FFFF" Hex).

 Returns

     OUTWORD() returns .T. when the operation is successfully completed.  A
     return value of .F. indicates a parameter error.

 Description

     Clipper Tools always attempts to offer finished solutions at the
     highest-possible level for such standard hardware as the serial
     interface port..  However, if, highly specialized systems and their
     ports are to receive data from Clipper, use OUTBYTE() or OUTWORD().

 Note

     .  The function does not determine if a port is open or if you
        cannot write to it.

 Examples

     Output to a 16-bit port.

     .  With a decimal parameter:

        ? OUTWORD(512, 32)          // Write word to an additional device

     .  With a hexadecimal parameter:

        ? OUTWORD("200", "20")      // Same port, same value

See Also: INWORD() OUTBYTE()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.