PARALLEL_OUT

PARALLEL_OUT A,D

WRITES THE DATA D ON THE PARALLEL PORT OF ADDRESS A

  • Type: Command
  • Parameters: 2
  • Group: Input-Output

ACTION

The command PARALLEL_OUT A,D writes the data D on the parallel port of address A.

D is a real or an integer value, from 0 to 255. If D is a real value, it is rounded to the nearest integer before the writing.

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

SYNTAX: PARALLEL_OUT D,A

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

USE

  • The command PARALLEL_OUT is used to write 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.
  • If D is less than 0.
  • If D is greater than 255.

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