PROGRAMING WITH THE PAMUX DRIVER
3-22
Pamux User’s Guide
CONFIGURE ANALOG POINT
15
P
URPOSE
:
Configures the position of an analog point as an input or output.
C
OMMAND
T
YPE
:
Analog
P
ARAMETERS
:
COMMAND
Contains the value 15.
ADDRESS
Contains the address of the Pamux brain board.
POSITION
Contains the point number.
VALUE ARRAY
The first element of this array contains a 0 if the point will be configured as an
input, or anything else if the point will be configured as an output.
R
EMARKS
:
All output module positions must first be configured as outputs before values can be written to
them. 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.
E
XAMPLE
:
This example configures point 0 at address 1 as an output.
100
COMMAND% = 15
‘ Configure Analog Point command
110
ADDRESS% = 1
‘ Address of brain board
120
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
Summary of Contents for PAMUX
Page 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Page 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Page 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Page 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Page 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Page 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Page 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Page 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Page 149: ...GLOSSARY E 6 Pamux User s Guide...