EasyManua.ls Logo

Strasbaugh nTellect 7AF - Direct Programming of Pamux Stations with Ac28; Variables Used in Examples

Default Icon
2493 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Pamux User’s Guide 105
DIRECT PROGRAMMING OF PAMUX STATIONS WITH AC28
The remainder of this chapter presents important information on reading from and writing to Pamux
stations. Several simplified examples illustrate the basics of Pamux driver programming using
BASIC’s INP function and OUT statement. These examples are written in MS-DOS QBasic, available
on most PCs configured with MS-DOS 5.0 and above.
For more complete examples that handle error checking and provide a set of functions, see the
Pamux.DLL source code, which is written in C/C++. This source code is found on the Pamux driver
disk (in the WIN\SOURCE directory) and on the Opto 22 BBS.
VARIABLES USED IN EXAMPLES
This variable is the I/O port address for the AC28 data port. This value corresponds to the “A”
jumpers on the AC28.
CONST MyAc28IoPort% = &H100
This variable is the I/O port address for the AC28 reset port. This value corresponds to the “R”
jumpers on the AC28.
CONST MyAc28ResetPort% = &H1E0
‘ Base I/O address for reset
register
This variable determines the reset level of the AC28. This value corresponds to the jumper setting on
the brain boards. This example assumes an active-high reset level.
CONST MyAc28ResetLevel% = -1
‘ Turn reset on
Address of digital brain board.
CONST MyDigitalBoard% = 0
‘ Assume digital B4 or B5 at address 0
Address of analog brain board.
CONST MyAnalogBoard% = 4
‘ Assume analog B6 at address 4
Address of a nonexistent brain board. This is used to demonstrate the use of the reset register to
determine if a board is present and functioning.
CONST MyNonExistBoard% = 10
‘ Address of board that doesn’t exist
This example assumes a digital board with inputs on channels 0, 3, 9, 11 and 15. Channel 0
corresponds to the least significant bit and channel 15 corresponds to the most significant bit.
CONST MyDigitalOutMask% = &H75F6
‘ Assume inputs at chs. 0, 3, 9, 11, 15
Analog input channel used in these examples.
CONST MyAnalogInputChannel% = 4
Analog output channel used in these examples.
CONST MyAnalogOutputChannel% = 1
Analog output mask used in these examples. Assumes channels 0, 1, 3 are outputs.
CONST MyAnalogOutputMask% = &HB
PROGRAMING WITHOUT THE PAMUX DRIVER

Table of Contents

Related product manuals