
CĆ1
The following AutoMate program sequences can be used to interface to an
AutoMate Processor that does not support the AIN or AOUT blocks. Over a
period of four scans, the program below maps registers 40 through 43 to the
four channels of an Analog Rail module in Rail mode.
Registers Used
0 Register that is configured to be updated at the end of scan.
40 Value to output to channel 0
41 Value to output to channel 1
42 Value as input to channel 2
43 Value as input to channel 3
44 Counter to select channel to operate this scan
45 Coils
Beginning of the Scan
If channel 2 was selected at the end of last scan, read the data that has now
come back into register 42. The channel select bits are cleared, but the
underĆrange and overĆrange bits are left for later testing.
Ă00
.17
[ăă]
Ă00
.16
[Ă/Ă]
Ă45
.02
(ăă)
EN MOVM EN
LENGTH: 1
SRC: 0
MASK: k0011ă1111ă1111ă1111
DEST: 42
If channel 3 was selected at the end of last scan, read the data that has now
come back into register 43. The channel select bits are cleared, but the
underĆrange and overĆrange bits are left for later testing.
Ă00
.17
[ăă]
Ă00
.16
[Ă/Ă]
Ă45
.03
(ăă)
EN MOVM EN
LENGTH: 1
SRC: 0
MASK: k0011ă1111ă1111ă1111
DEST: 43
Comentarios a estos manuales