EasyManua.ls Logo

Strasbaugh nTellect 7AF - Performing Diagnostics

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...
118 Pamux User’s Guide
PERFORMING DIAGNOSTICS
Check Board Type
This example uses the capability of newer Pamux products to identify an I/O brain board type and to
determine if a brain board was actually accessed. You can verify that a brain board was successfully
accessed by reading the reset register. Successful operations are indicated by a 1 for a B4, a 2 for a B5,
and a 3 for a B6. A 0 indicates an unsuccessful operation. With an older AC28 that does not provide ACK
support, an FF will be read whether or not the operation is successful.
The following example assumes that one digital and one analog brain board are connected. Each is
accessed by simply doing an INP at its address. If the board actually responds, its type can be read from
the reset register.
At the end of the routine, an example is provided of an unsuccessful brain board access. A nonexistent
board is accessed to demonstrate that the board type read from the reset register is 0.
DIM BoardType%
i% = INP(MyAc28IoPort% + MyDigitalBoard%)
BoardType% = INP(MyAc28ResetPort%)
PRINT BoardType%;
‘ Should print 1 for B4 or 2 for B5
i% = INP(MyAc28IoPort% + MyAnalogBoard%)
BoardType% = INP(MyAc28ResetPort%)
PRINT BoardType%;
‘ Should print 3 for B6
i% = INP(MyAc28IoPort% + MyNonExistBoard%)
BoardType% = INP(MyAc28ResetPort%)
PRINT BoardType%
‘ Should print 0 for a board that doesn’t exist
Check if AC28 Is Working
To determine if an AC28 is working properly, perform the diagnostic above under “Check Board Type”
and also implement the routine under “Reading Digital Inputs” (see page 4-5).
Determine Suitable I/O Addresses for an AC28
If an I/O address is unused, the I/O address should read &HFF or all 1’s. If the AC28 is not installed and
the Reset I/O address in not already in use, the following statement should print “255”:
PRINT INP( MyAc28ResetPort% )
PROGRAMING WITHOUT THE PAMUX DRIVER

Table of Contents

Related product manuals