PROGRAMING WITH THE PAMUX DRIVER
3-24
Pamux User’s Guide
READ ANALOG POINT
17
P
URPOSE
:
Reads an analog point.
C
OMMAND
T
YPE
:
Analog
P
ARAMETERS
:
COMMAND
Contains the value 17.
ADDRESS
Contains the address of the Pamux brain board.
POSITION
Contains the point number.
VALUE ARRAY
The first element of this array contains returned data read from the point.
R
EMARKS
:
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 reads the state of the module at position 8 and displays the status.
100
COMMAND% = 17
‘ Read Analog Point command
110
ADDRESS% = 0
‘ Address of brain board
120
POSITION% = 8
‘ Position 8
130
GOSUB 1000
‘ Call the driver
140
PRINT VALUE%(0)
‘ Display the analog value
.
.
1000
CALL Pamux(ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0))
1010
IF ERRCOD% < 0 THEN GOTO 2000
1020
RETURN
Содержание PAMUX
Страница 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Страница 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Страница 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Страница 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Страница 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Страница 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Страница 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Страница 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Страница 149: ...GLOSSARY E 6 Pamux User s Guide...