Pamux User’s Guide 87
WRITE ANALOG WATCHDOG POINT 22
PURPOSE:
Writes to an analog watchdog register.
COMMAND TYPE:
Analog
PARAMETERS:
COMMAND Contains the value 22.
ADDRESS Contains the address of the Pamux brain board.
POSITION Contains the point number.
VALUE ARRAY The first element of this array contains the value to be written to the watchdog
register of the point.
REMARKS:
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.
When a watchdog timeout occurs, the values in the watchdog registers are written to their
corresponding output module positions. This task is performed automatically by the analog Pamux
brain board if a watchdog time has been previously set with the Set Analog Watchdog Timeout
command.
Only I/O points configured as outputs are affected.
EXAMPLE:
This example writes the value 90 to the watchdog register of position 15 at address 36. The
example assumes that this position has been previously configured as an output.
100 COMMAND% = 22 ‘ Write Analog Watchdog Point
110 ADDRESS% = 36 ‘ Address of brain board
12 0 POSITION% = 15 ‘ Position 15
130 VALUE%(0) = 90 ‘ Value to be written
140 GOSUB 1000 ‘ Cal
l 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