![]() |
![]() |
|||||||||||||||||
|
Developers Area - DOS API The RCI API is a very
simple way for accessing the RCI board. The RCI API works like other interfaces
such as BPQ for communications applications and KCT for rotator systems. To
begin using this software interface, you must first load the RCIPlus.EXE driver.
Remember, you must have RCIPLUS.CNF in the same directory as RCIPlus.EXE. To set
this configuration file, you'll use the Setup.exe program. You will access the
RCI driver through INT 61H (97 decimal). There are 6 functions available, the
method employed to use them is to call INT 61H and pass the function value
through AH. 1) Initialize the Interface (AH=0).-
If LPT=0 (DX=0), it means the LPT will use the interrupt value set in the ARS.CNF file. In case you want use a different value, i.e. 278H, set DH=02H and DL=78H or DX=0278H
RET=0 OK, initialized successfully.
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. Normally DX will
be equal to 0. So verify that the RCIPLUS.CNF is correctly configured. 2) Solenoid Relay activation (AH = 1).-
=00H Stop all Relays ·
DL= Azimuth/Elevation Rotor =00H Azimuth Rotor
RET=0 All relays stopped
This function is used only if you desire to activate the relays manually. Normally, the AH=4 function will be used in most applications (turn to a point function). 3) Read Antenna Position (AH = 2).-
=0 Return the value in Degrees DH=Sampling number (1-255)
=0 Use the Azimuth input (J3).
It will be in the range 0-360
for Degree values (AL=0), or of 0-255 for Digital values (AL=1)
This function is useful for
obtaining 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. 4) RCI board Status (AH = 3).-
RET=0 All relays stopped
This function returns the relays' Status. 5) Turn the rotator to a specific Point (AH = 4).-
=0 Use the Azimuth rotor
RET=0 Command accepted
This function is used to turn the antenna to a desired point. The value of the point must be in Degrees (0-360). 6) Stop using the interface (AH = 5).-
RET=0 Command accepted
This function notifies the RCI driver to stop using the interface. It also stops the timer-tick subroutine. After using this function, the only function available is the Init function. You can view a sample program in "C"
|
||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||
|
Site Map | Terms
of Use | Copyright 2007
| |||||||||||||||||||||||||||||||||||||||||