InWord

Description:              Read I/O Word. This function reads a 16 bit unsigned word from an I/O port.

Returns:                    Word

Usage:                       Script or Steady State

Format:                      InWord(Port)

Parameters:             Port     { numeric }  { required }  { no default }

                                                Any numeric expression that gives the I/O address. Port must be in the range 0 to 65535.

Comments:               This function requires that the VTSIO driver be installed. Please refer to the topic, Communicating Directly With Hardware for more details.

                                    This is a high priority function. If InWord is used in a state, it will be evaluated at a very fast rate. InWord should be used sparingly to avoid reducing system performance.

Example:

reg = InWord(0x300);

This reads reg as a 16 bit unsigned word from input port 300 hex. If this statement appears in a script, it is executed when the script is executed (when the action is triggered); if it appears in a state, it will be updated rapidly as a high priority function.

See Also:

In | Out | OutWord