Pamux User’s Guide 63
PAMUX ERROR CODES
Table 3-1 describes the errors returned by the Pamux driver under DOS:
Table 3-1: Pamux Driver Error Codes under DOS
Error Description
-1
Configuration required
(due to reset or loss of power)
-2 Invalid address (address > 63)
-3 Invalid bank (address + bank > 63)
-4 Invalid point (point + 8 * address > 511)
-5 Invalid command
-6 Invalid range
-7
Turnaround time-out
(analog board did not respond)
-8 Analog watchdog time-out
WORKING WITH BANKS
The concepts of Addresses and Banks can be a little confusing when dealing with a Pamux I/O system.
Every group of 8 channels in a Pamux system (a Bank) is related to an Address and a Bank Number.
Every Pamux system is composed of 64 Banks (8 channels each).
A 16-channel Pamux brain board (B5 or B6) has two banks. Bank 0 refers to channels ) to 7 and Bank
1 refers to channels 8 through 15.
The B4 Pamux brain board addresses 4 Banks.
Bank
Number
Channels
00 to 7
18 to 15
2 16 to 23
3 24 to 31
When using the driver, Address% is set to the base address of the brain board, then the group of 8
channels is selected by setting the Bank (Position%) to 0, 1, 2, or 3.
One last bit of confusion…the Pamux driver allows an alternate addressing scheme. It is possible to
leave Address always set to (0). The Bank of 8 channels is then selected by setting Bank to a value
from 0 through 63! This technique may be easier in a system with a mixture of B4, B5, and B6 brain
boards.
PROGRAMING WITH THE PAMUX DRIVER