EasyManua.ls Logo

Strasbaugh nTellect 7AF - Page 2041

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 81
READ ANALOG BANK 16
PURPOSE:
Reads a bank of eight analog I/O points.
COMMAND TYPE:
Analog
PARAMETERS:
COMMAND Contains the value 16.
ADDRESS Contains the address of the Pamux brain board.
POSITION Contains the bank number.
VALUE ARRAY Each element of this array contains returned data corresponding to a module
position within the bank. Element 0 corresponds to the lowest module position,
element 7 corresponds to the highest.
EXAMPLE:
This example reads the status of eight points at address 32 of bank 0, and then displays the value
of each point.
100 COMMAND% = 16 ‘ Read Analog Bank command
110 ADDRESS% = 32 ‘ Address of brain board
12 0 POSITION% = 0 ‘ Bank number
130 GOSUB 1000 ‘ Call the driver
1 4 0 FOR I% = 0 TO 7
150 PRINT "MODULE ";I%;": ";VALUE%(I%)
160 NEXT
.
.
1000 CALL
Pamux(ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0))
1010 IF ERRCOD% < 0 THEN GOTO 2000
1020 RETURN
PROGRAMING WITH THE PAMUX DRIVER

Table of Contents

Related product manuals