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 #264 background imageLoading...
Page #264 background image
DL205 Analog Manual, 7th Edition Rev. D
13-12
Chapter 13: F2-02DAS-2, 0-5V, 0-10V, 2-Channel Isolated Analog Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Engineering Units Conversion
This example program shows how to write the program to perform the engineering unit
conversion to output data formats 0–65535 when using a D2-250 CPU. This example
assumes that a BCD value has been stored in V2300 for channel 1.
TheLDinstruction loads the engineering unitsusedwithchannel 1 into
theaccumulator. This exampleassumesthe numbers areBCD. Since
SP1 is used, this rung automatically executes on every scan. An X, C, etc.
could also be used as a permissive contact.
LD
V2300
SP1
BIN
BTOR
ConvertBCD number to binary number.
Convertbinary numbertoreal number.
MULR
R65535
Multiply theaccumumlator by 65535tostart theconversion.
Divide theaccumulator by 1000 (1000 = 100.0%).
DIVR
R1000
RTOB
BCD
Convertthe result to binary.
Convertthe result to BCD.
OUTD
V2000
Storethe BCD double word result in V2000 /V2001.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D

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