PARALLEL_INP()

PARALLEL_INP(A)

RETURNS THE VALUE READ ON THE PARALLEL PORT OF ADDRESS A

  • Type: Function
  • Parameter: 1
  • Group: Input-Output

ACTION

The function PARALLEL_INP(A) returns the value read on the parallel port of address A.

A can be a real or integer number. If A is a real value, it is rounded to the nearest integer before the reading.

SYNTAX: Result=PARALLEL_INP(A)

  • A = address of parallel port (real or integer)

USE

  • The function PARALLEL_INP() is used to read a value on the printer plug.

ERROR

  • If the command PARALLEL_ON has not been executed.
  • If A is less than 0.
  • If A is greater than 1000.

EXAMPLE

rem start the input-output operations

parallel_on

rem set all the bits to 1 on the data port

parallel_out 888,255

rem read the status port

print parallel_inp(889)

rem stop the input-output operations

parallel_off

SEE ALSO

PARALLEL_ON

PARALLEL_OFF

PARALLEL_OUT