EasyManua.ls Logo

Strasbaugh nTellect 7AF - Page 2046

Default Icon
2493 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
86 Pamux User’s Guide
WRITE ANALOG WATCHDOG BANK 21
PURPOSE:
Writes to a bank of eight analog watchdog registers.
COMMAND TYPE:
Analog
PARAMETERS:
COMMAND Contains the value 21.
ADDRESS Contains the address of the Pamux brain board.
POSITION Contains the bank number.
VALUE ARRAY Contains the values to be written to each watchdog register in the bank. Each
element of this array corresponds to the watchdog register of one module
position within the bank. Element 0 corresponds to the first module position’s
watchdog register, element 7 corresponds to the last module position’s
watchdog register.
REMARKS:
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 1,024 to the watchdog registers of all module positions at address 10
of bank 1. The example assumes that these positions have been previously configured as outputs.
100 COMMAND% = 21 ‘ Write Analog Watchdog Bank
110 ADDRESS% = 10 ‘ Address of brain board
12 0 POSITION% = 1 ‘ Bank number
1 3 0 FOR I% = 0 TO 7 Fill all VALUE% elements with
1024
140 VALUE%(I%) = 1024
150 NEXT
160 GOSUB 1000 ‘ Call 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

Table of Contents

Related product manuals