EasyManua.ls Logo

Strasbaugh nTellect 7AF - Page 2031

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 71
CONFIGURE DIGITAL POINT 6
PURPOSE:
Configures one digital point as an input or output.
COMMAND TYPE:
Digital
PARAMETERS:
COMMAND — Contains the value 6.
ADDRESS Contains the address of the Pamux brain board.
POSITION Contains the point number. Legal values are 0 to 15 for B5 and B6, 0 to 31
for B4.
VALUE ARRAY The first element of this array contains a 0 if the point is to be configured as an
input, or anything else if the point is to be configured as an output.
REMARKS:
All output module positions must first be configured as outputs before they can be activated. The
driver will ignore any write commands to positions configured as inputs and no errors will be
returned.
The POSITION value is a point offset starting from the value in the ADDRESS parameter. The point
number in the POSITION parameter can range from 0 to 511 if the ADDRESS parameter is 0. An
error will be returned if the values in these parameters exceed the limits.
EXAMPLE:
This example configures point 0 at address 1 as an output.
100 COMMAND% = 6 ‘ Configure Digital Point command
110 ADDRESS% = 1 ‘ Address of brain board
12 0 POSITION% = 0 Point number 0
130 VALUE%(0) = 1 ‘ Configure as an output
140 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