EasyManua.ls Logo

Strasbaugh nTellect 7AF - Page 2043

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 83
WRITE ANALOG BANK 18
PURPOSE:
Writes to a bank of eight analog I/O points.
COMMAND TYPE:
Analog
PARAMETERS:
COMMAND Contains the value 18.
ADDRESS Contains the address of the Pamux brain board.
POSITION Contains the bank number.
VALUE ARRAY Contains the values to be written to each position in the bank. Each element of
the array corresponds to a module position within the bank. Element 0
corresponds to the first module position, element 7 corresponds to the last.
REMARKS:
Only I/O points configured as outputs will be affected.
EXAMPLE:
This example writes the value 3,048 to module positions 4, 5, and 6 and writes the value 0 to all
other module positions at address 6 of bank 1. The example assumes that these positions have
been previously configured as outputs.
100 COMMAND% = 18 ‘ Write Analog Bank command
110 ADDRESS% = 6 ‘ Address of brain board
12 0 POSITION% = 1 ‘ Bank number
13 0 VALUE%(0) = 0 Module 0
14 0 VALUE%(1) = 0 Module 1
15 0 VALUE%(2) = 0 Module 2
16 0 VALUE%(3) = 0 Module 3
170 VALUE%(4) = 3048 Module 4
180 VALUE%(5) = 3048 Module 5
190 VALUE%(6) = 3048 Module 6
20 0 VALUE%(7) = 0 Module 7
210 GOSUB 1000 ‘ Call the driver
.
.
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