V-Memory Registers - Automation Direct DL405 User Manual

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

4
4
4
Here's how you would write the program to perform the engineering unit
conversion. This example assumes you have calculated or loaded the engineering
430
440
450
unit value and stored it in V3000. Also, you have to perform this for both channels if
you're using different data for each channel.
NOTE: The DL405 offers various instructions that allow you to perform math
operations using binary, BCD, etc. It's 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.
V-Memory
The ladder program examples that follow occasionally use certain V-memory
register addresses in the CPU that correspond to 16-bit Y output modules. Use the
Registers
table below to find the V-memory address for the particular location of your analog
module. See Appendix A for additional addresses for DL450 CPUs.
Y
V 40500 40501 40502 40503 40504 40505 40506 40507 40510 40511
Y
V 40512 40513 40514 40515 40516 40517 40520 40521 40522 40523
X1
LD
V3000
MUL
K4095
DIV
K1000
BIN
OUT
V3101
V-Memory Register Addresses for 16-Point Output (Y) Locations
000
020
040
240
260
300
F4–04DA–2 Analog Voltage 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.
060
100
120
140
320
340
360
400
14–15
160
200
220
420
440
460

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

Table of Contents