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 #192 background imageLoading...
Page #192 background image
DL205 Analog Manual, 7th Edition Rev. D
9-16
Chapter 9: F2-02DA-2, F2-02DA-2L, 2-Channel Analog Voltage Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The Conversion Program
This example program shows how to write the program to perform the engineering unit
conversion to output data formats 0–4095. This example assumes that a BCD value has been
stored in V2300 and V2301 for channels 1 and 2 respectively.
NOTE: The DL205 has many instructions available so that math operations can simply be performed using BCD format. Do
the math in BCD, then convert to binary before writing to the module output.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
TheLDinstruction loadsthe engineering units used with channel 1into
theaccumulator.This exampleassumes thenumbers areBCD. Since
SP1 is used, this rung automaticallyexecutesonevery scan.You coul
d
also useanX,C,etc.permissive contact.
LD
V2300
SP1
MUL
K4095
DIV
K1000
Multiply theaccumulatorby 4095 (tostart theconversion).
Divide theaccumulator by 1000 (because we used amultiplierof10,
we havetouse 1000 instead of 100).
OUT
V2000
Storethe BCDresultinV2000(theactualsteps required to send the
data areshown later).
TheLDinstruction loadsthe engineering units used with channel 2into
theaccumulator.This exampleassumes thenumbers areBCD. Since
SP1 is used, this rung automaticallyexecutesonevery scan.You coul
d
also useanX,C,etc.permissive contact.
LD
V2301
SP1
MUL
K4095
DIV
K1000
Multiply theaccumulator by 4095(to startthe conversion).
Divide theaccumulator by 1000 (because we usedamultiplierof10,
we have to use 1000instead of 100).
OUT
V2001
Storethe BCDresultinV2001(theactualsteps required to send the
data areshown later).

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