Antenna Rotator System - ARS for DOS (API)
Commands:
The RCI API, is a very simple way for accessing the Hardware board (RCI). The
way it works is quit similar to the way other interfaces, like BPQ for
communications applications, or KCT to handle other Rotators systems, works. To
begin using this software interface, you have to load first of all, the
RCIPlus.EXE driver. Remember: You must have, at least, in the same directory,
the file RCIPLUS.CNF. To set this configuration file, you'll use the Setup.exe
program. You will access the RCI driver through the INT 61H (97 decimal). There
are 6 functions available, the method employed to use them is call the Int 61H
and passes the function value in AH.
List of functions available:
1) Initialize the Interface (AH=0).-
- Input Registers:
- AH=0 Init the interface
- DX=LPT Port
If LPT=0 (DX=0), it means the Lpt will use the interrupt value set in the
ARS.CNF file. In the case you want use different value, i.e. 278H, set
DH=02H and DL=78H or DX=0278H
- Output Register:
- AX=RET Always on AX, it will return the Return value.
RET=0 OK, initialized successfully.
RET!=0 Hardware problem (i.e. cable not connected, RCI is turned off, or
Board Problem)
- Meaning:
This function is always the first one to be used. If this function is not
used, or if the RET value <> 0, the other functions will not be
available to the programmer. Normaly DX will be equal to 0. So verify that
the RCIPLUS.CNF is correctly configured.
If RET = 0 a timer-tick subrouting is installed, wich dies when the stop
function is called.
2) Solenoid Relay activation (AH = 1).-
- Input Registers:
- AH=1 Relay activation
- DH=Action Value
=00H Stop all Relays
=01H Brake release (Central Relay-K2 on RCI Board)
=02H Left Relay activation
=04H Right Relay activation
=16H Up Relay activation
=32H Down Relay activation
- DL= Azimuth/Elevation Rotor
=00H Azimut Rotor
=01H Elevation Rotor
3) Read Antenna Position (AH = 2).-
- Input Registers:
- AH=2 Read Antenna Position
- AL=Mode Mode maybe a Degrees value(0-360) or a Digital value (0-255).
=0 Return the value in Degrees
=1 Return the A/D value.
DH=Sampling number (1-255)
- DL=Azimuth/Elevation
=0 Use the Azimuth input (J3).
=1 Use the Elevation input (J4).
- Output Register:
- Meaning:
This function is usefull to know the antenna direction. Normally it will
be used with Mode=0 (Degree) but it maybe necessary to know the A/D value
for any kind of reason, so use AL=1.
The DH register, the sampling number, is used to average the value read. It
works on the following way: If DH=9 the RCI Driver will read 9 times the
value, and it will average the result. With this feature, any minimum
movements caused by the wind, etc. will be discarded
4) RCI board Status (AH = 3).-
5) Turn the rotator to a specific Point (AH = 4).-
6) Stop using the interface (AH = 5).-
- Input Register:
- AH=5 Stop using the Interface.
<Previous Next>
|