DL205 Analog Manual, 7th Edition Rev. D
16-18
Chapter 16: F2-8AD4DA-2, 8-Ch. In / 4-Ch. Out Analog Voltage Combination
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
C
D
Module Configuration Example 2:
NOTE: Binary data format is recommended for 14 or 16 bit resolution input data, especially if the input
data is to be used in any math instructions (DL205 User Manual, ch.5). There is only one V-memory word
(16 bits) available for the actual data. Although the 12 bit resolution maximum value of 4095 can be stored
in one word using either binary or BCD formats, the 14 and 16 bit resolution maximum values of 16383 and
65535 both exceed the BCD format’s maximum single word capacity of 9999. Double word math would be
required for 14 or 16 bit data in BCD format. Binary data format is also useful for displaying data on some
operator interfaces.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
C
D
SP0
LD
K
LDA
O2000
OUT
V7673
Loads aconstantthatspecifies the numberofchannelsto scan and
the dataformat. (See note below regarding dataformat.)
Theupperbyte appliestothe inputs. Themostsignificantnibble
(MSN)selects thedataformat(0=BCD, 8=Binary), and theLSN
selectsthe numberofchannels(1, 2, 3, 4, 5, 6, 7, or 8) to scan.
Thelower byte appliestothe outputs. Themostsignificant nibble
(MSN)selects thedataformat(0=BCD, 8=Binary), and theLSN
selectsthe numberofchannels(1, 2, 3, or 4) to scan.
This constant designatesthe firstV-memorylocationthatwill be
used to storethe inputdata.For ex ample, theO2000 entered here
would mean:Ch1 -- V2000, V2001;Ch2 -- V2002, V2003; Ch3--
V2004,V2005;Ch4 -- V2006,V2007.For eachchannel,the 1stword
holds thedata, and the 2nd word is needed onlywhen displaying 14
or 16 bit datainBCD format.The 2ndwordcontains themost
significant digit in thosecases.
Theconstant O2000 is stored here. V7673isassigned to slot 3 and
acts as a pointer,which means theCPU will usethe valueinthis
locationtodetermine exactlywheretostore theincoming data.
OUT
V7663
Special V-memory loc ation assignedtoslot3that contains the
numberofinput and outputchannels.
LDA
O2020
OUT
V7703
This constant designates thefirst V-memory location that will be
used forthe analog output data. Forexample, theO2020 entered
herewould mean:Ch1 -- V2020,V2021;Ch2 -- V2022, V2023; Ch3--
V2024, V2025; Ch4--V2026,V2027. Foreachchannel,the 1stword
holds the data, and the2nd word is needed onlywhen displaying14
or 16 bit datainBCD format.The 2nd word contains themost
significant digitinthosecases.
Theconstant O2020 is stored here. V7703isassigned to slot 3 and
acts as a pointer,which means theCPU will usethe valueinthis
location to determine exactlywhereto obtain the outputdata.
8404
LD
K5555
Loads aconstant that specifies theresolutions for eachofthe input
channels. This constant is determinedbythe values of twobits per
channel,asshown previously in “InputResolutions Selection Bits”.
Theconstant 5555(hex )configures each of theeight inputchannels
for14bits.
OUT
V36403
SpecialV-- memory location assigned to slot 3that contains the
resolution settingsfor eachofthe inputchannels.
LD
KAAAA
Loadsaconstant that specifies thetrack and holdsettingsfor each
of theinputchannels. This constant is determinedbythe values of
two bits per channel,aspreviously shownin“Trackand Hold
Selection Bits”. Theconstant AAAA(hex)configures eachofthe eight
inputchannels to track and hold themaximum value.
OUT
V36423
SpecialV-- memory location assigned to slot 3that contains thetrack
and holdsettings foreachofthe inputchannels.
Input Resolution = 14 bit,
Input/Output Range = 0–10V in, 0–5V out,
Input Track and Hold = all inputs maximum value.
Number of Channels = 4 in, 4 out,
Data Format = binary in, BCD out,