Writing The Control Program; Multiple Channels Selected; Storing The Channel Data To V-Memory - Automation Direct DL405 User Manual

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

Writing the Control Program

Multiple
Channels
Selected
Storing the
Channel Data to
V–Memory
If you have configured the F4–16AD–1 module, use the following examples to get
started writing the control program.
Since all channels are multiplexed into a single data word, the control program must
be set up to determine which channel is being read. Since the module appears as X
input points to the CPU, it is very easy to use the active channel status bits to
determine which channel is being monitored.
Channel Bits
he OUTX instruction used the following programming examples that follow
T
stores the channel data to an address that starts at V3000 plus the channel
offset. For example, if channel 2 was being read, the data would be stored in
V3002 (V3000 + 2).
Module Reading
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Channel 9
Channel 10
Channel 11
Channel 12
Channel 13
Channel 14
Channel 15
Channel 16
F4–16AD–1 16-Channel Analog Input
F4-16AD–1
8pt
8pt
16pt
16pt
16pt
Input
Input
Input
Input
Output
X0
X10
X20
X40
X7
X17
X37
X57
V40402
V40400
V40401
MSB
Active
Data Bits
Acc. Bits
Offset
0000
0
0001
1
0010
2
0011
3
0100
4
0101
5
0110
6
0111
7
1000
8
1001
9
1010
10
1011
11
1100
12
1101
13
1110
14
1111
15
16pt
Output
LSB
Data Stored in ...
V3000
V3001
V3002
V3003
V3004
V3005
V3006
V3007
V3010
V3011
V3012
V3013
V3014
V3015
V3016
V3017
6–13

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL405 and is the answer not in the manual?

Questions and answers

Table of Contents