
Chapter 15. Function Reference
323
____________________________________________________________________
INPort data I/O function
INP
Returns a byte read from a specified input port.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
INP(portnumber)
Parameter:
Parameter:Parameter:
Parameter:
portnumber
A numeric expression which returns a value from 0 to 32767.
Description:
Description:Description:
Description:
INP reads one-byte data from an input port specified by portnumber and returns the
value. (For the input port numbers, refer to Appendix D, "I/O Ports.")
• If you specify an invalid value to portnumber, INP returns an indeterminate value.
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
05h
Parameter out of the range
(portnumber is out of the range.)
Reference:
Reference:Reference:
Reference:
Statements: OUT and WAIT
Comentarios a estos manuales