Automation Direct DL405 User Manual page 229

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

Engineering
Here is how you would write the program to perform the engineering unit
Unit
conversion. This example assumes you have calculated or loaded the engineering
Conversion
unit value and stored it in V3000. Also, you have to perform this for all four channels
4
4
4
if you are using different data for each channel.
430
440
450
NOTE: The DL405 offers various instructions that allow you to perform math
operations using binary, BCD, etc. It is usually easier to perform any math
calculations in BCD and then convert the value to binary before you send the data to
the module. If you are using binary math, you do not have to include the BIN
conversion.
X1
LD
V3000
MUL
K4095
DIV
K1000
BIN
OUT
V3101
F4–04DA 4-Channel Analog Output
When X1 is on, the engineering units (stored in V3000) are loaded
into the accumulator. This example assumes the numbers are BCD.
Multiply the accumulator by 4095 (to start the conversion).
Divide the accumulator by 1000 (because we used a multiplier of 10,
we have to use 1000 instead of 100).
Convert the BCD number to binary.
Store the result in V3101. This is the digital value, in binary form, that
should be sent to the module.
12–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

Subscribe to Our Youtube Channel

Table of Contents