PROGRAMING WITH THE PAMUX DRIVER
Pamux User’s Guide
3-27
SET ANALOG WATCHDOG TIMEOUT
20
P
URPOSE
:
Sets the analog watchdog.
C
OMMAND
T
YPE
:
Analog
P
ARAMETERS
:
COMMAND
Contains the value 20.
ADDRESS
Contains the address of the Pamux brain board.
VALUE ARRAY
The first element of this array contains the value of the watchdog timeout
interval for the analog brain board watchdog.
R
EMARKS
:
The value in the first element of the VALUE array can be an integer from 0 to 65,535. This
represents a delay length in units of 10 milliseconds, resulting in a range from 10 milliseconds to
10.92 minutes. A value of 0 disables the watchdog feature.
Use the Write Analog Watchdog command to set the values to be assigned to the outputs should a
watchdog timeout occur.
E
XAMPLE
:
This example sets the analog watchdog delay for the board at address 12 to 8 minutes (480
seconds). This results from writing the value 48,000 to address 12. Note that integer values above
32,767 must be entered in hex when using BASIC.
100
COMMAND% = 20
‘ Set Analog Watchdog Timeout
110
ADDRESS% = 12
‘ Address of brain board
120
VALUE%(0) = &HBB80
‘ 48000 decimal = BB80 hex
130
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...