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()

 

Tools – PEEK/POKE Functions

Introduction PEEK/POKE Functions
INBYTE()   Reads an 8 byte from a port
INWORD()   Reads in a 16-bit word from a port
OUTBYTE()  Sends a byte to a port
OUTWORD()  Sends a 16-bit word to a port
PEEKBYTE() Reads a byte from memory
PEEKSTR()  Reads a byte sequence from memory
PEEKWORD() Reads a 16-bit word from memory
POKEBYTE() Writes a byte to memory
POKEWORD() Writes a 16-bit word to memory