XRPi Home

Documentation Index
Alphabetic Index

XRPi Documentation - Sysop Commands

CTRL

Command

CTRL -- Read / Write remote hardware control port.

Synopsis

Syntax: CTRL [0-255]

Description

The CTRL command reads from and writes to the CTRL port defined in the CFG file (e.g. CTRL=0378 to use LPT1). This is used for controlling external hardware devices via logic, and reading status from them, for example transmitter bank switching or temperature alarm monitoring.

Options

"CTRL" by itself reads the port, and "CTRL <value>" writes it.

The read value is the bitwise OR of last written value and external levels, so a bit must be written to 0 in order to use it as an input. If written to 1, a bit will always return 1.

Example

CTRL 127 - Write a logic "1" to bit 7 of ctrl port.

Availability

Sysop-only.

Notes

This command is currently disabled.