PROGRAMING WITH THE PAMUX DRIVER
Pamux User’s Guide
3-19
WRITE DIGITAL POINT
12
P
URPOSE
:
Writes to a digital point.
C
OMMAND
T
YPE
:
Digital
P
ARAMETERS
:
COMMAND
Contains the value 12.
ADDRESS
Contains the address of the Pamux brain board.
POSITION
Contains the point number.
VALUE ARRAY
The first element of this array contains any value other than 0 if the point will be
activated (turned on), or a 0 if the point will be deactivated (turned off).
R
EMARKS
:
The position to be written to must have been previously configured as an output, otherwise this
command will have no effect.
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 deactivates position 2 at address 32. The example assumes that this position has
been previously configured as an output.
100
COMMAND% = 12 ‘ Write Digital Point command
110
ADDRESS% = 32 ‘ Address of brain board
120
POSITION% = 2 ‘ Position 2
130
VALUE%(0) = 0 ‘ Turn module off
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...