EasyManuals Logo

AutomationDirect DL205 Manual

Default Icon
359 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #52 background imageLoading...
Page #52 background image
DL205 Analog Manual, 7th Edition Rev. D
2-19
Chapter 2: F2-04AD-1, F2-04AD-1L, 4-Channel Analog Current Input
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
Filtering Input Noise for the DL250-1 and DL260 CPUs Only
Add the following logic to filter and smooth analog input noise in DL250-1 and DL260
CPUs. This is especially useful when using PID loops. Noise can be generated by the field
device and/or induced by field wiring.
The analog value in BCD is first converted to a binary number because there is not a BCD-
to-real conversion instruction. Memory location V1400 is the designated work space in this
example. The MULR instruction is the filter factor, which can be from 0.1 to 0.9. The
example uses 0.2. A smaller filter factor increases filtering. A higher precision value can be
used, but it is not generally needed. The filtered value is then converted back to binary and
then to BCD. The filtered value is stored in location V1402 for use in your application or
PID loop.
NOTE: Be careful not to do a multiple number conversion on a value. For example, if you are using the pointer method
to get the analog value, it is in BCD and must be converted to binary. However, if you are using the conventional method
of reading analog and are masking the first twelve bits, then it is already in binary and no conversion using the BIN
instruction is needed.
LD
V2000
SUBR
V1400
BTOR
SP1
BIN
Loadsthe analog signal, whichisaBCDvalue
and has beenloadedfromV-memorylocation
V2000,intothe accumulator.Contact SP1 is
always on.
Converts theBCD value in theaccumulator to
binary. Remember,thisinstruction is not
neededifthe analog value is originally
broughtinasabinary number.
Converts thebinaryvalue in theaccumulator
toarealnumber.
Subtractsthe real numberstoredinlocation
V1400 from thereal numberinthe accumulator,
and stores theresultinthe accumulator.V1400
is thedesignatedworkspaceinthisexample.
Multipliesthe real number in the
accumulatorby0.2 (the filter factor),
and stores theresultinthe
accumulator.This is thefiltered value.
OUTD
V1400
ADDR
V1400
MULR
R0.2
OUT
V1402
BCD
RTOB
Adds thereal numberstoredin
locationV1400 to therealnumber
filtered valueinthe accumulator, and
stores theresult in theaccumulator.
Copies thevalue in theaccumulator to
location V1400.
Converts thereal number in the
accumulatortoabinaryvalue, and
stores theresult in theaccumulator.
Converts thebinaryvalue in theaccumulator
to aBCD number.Note: TheBCD instruction
is not needed forPID loop PV (loopPVisa
binary number).
Loads theBCD number filtered valuefrom
theaccumulator intolocationV1402touse in
your applicationorPID loop.

Table of Contents

Other manuals for AutomationDirect DL205

Questions and Answers:

Question and Answer IconNeed help?

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

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals