92 Pamux User’s Guide
DIGITAL BANK OPERATIONS
The term “bank” refers to groups of eight digital I/O points. A 32-channel Pamux board with a B4 brain
board has four banks. It is faster to read a bank all at once rather than to read each point individually.
Note that channel 0 corresponds to the least significant bit. For example when reading a bank with
channels 0, 3, and 4 on and all other channels off, the returned value would be 19 hex (11001 binary, or
25 decimal).
PamuxDigBankConfig, PamuxDigBank16Config, PamuxDigBank32Config
PROTOTYPES:
int PamuxDigBankConfig(int hAc28, int Bank, int OutputMask, int Byte Qty);
int PamuxDigBank16Config(int hAc28, int Bank, UINT OutputMask);
int PamuxDigBank32Config(int hAc28, int Bank, long OutputMask);
DESCRIPTION:
Configures a bank of digital I/O points as either inputs or outputs. A “1” in the mask indicates an
output. Use PamuxDigBankConfig for configuring between 8 and 32 points,
PamuxDigBank16Config for 16 points, or PamuxDigBank32Config
for 32 points.
The Byte Qty parameter in PamuxDigBankConfig indicates how many banks to
configure (Byte Qty = 4 for 32 points).
PamuxDigBankRead, PamuxDigBank16Read, PamuxDigBank32Read
PROTOTYPES:
int PamuxDigBankRead(int hAc28, int Bank, int far* pData);
int PamuxDigBank16Read(int hAc28, int Bank, int far* pData);
int PamuxDigBank32Read(int hAc28, int Bank, long far* pData);
DESCRIPTION:
Reads inputs and outputs and places the result in pData. Use PamuxDigBankRead for
reading eight points, PamuxDigBank16Read for 16 points, or PamuxDigBank32Read
for 32 points.
PROGRAMING WITH THE PAMUX DRIVER