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 V3001. Also, you have to perform this for all four channels
if you are using different data for each channel.
4
4 4
430 440 450
NOTE: The DL405 offers various instructions that allow you to perform math
operations using binary, BCD, etc. When using this module, it is usually easier to
perform any math calculations in binary because of the large numbers involved.
V-Memory
The ladder program examples that follow occasionally use certain V-memory
Registers
register addresses in the CPU that correspond to 16-bit Y output modules. Use the
table below to find the V-memory address for the particular location of your analog
module. See Appendix A for additional addresses for D4–450 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
F4–04DAS–2 4-Channel Isolated 0–5V, 0–10V Output
X1
LD
V3001
MULB
KFFFF
DIVB
K3E8
OUT
V3101
V-Memory Register Addresses for 16-Point Output (Y) Locations
000
020
040
240
260
300
When X1 is on, the engineering units (stored in V3001) are loaded
into the accumulator. This example assumes the numbers are BIN.
Multiply the accumulator by 65535 (to start the conversion).
Divide the accumulator by 1000 (3E8 hex, because we used a
multiplier of 10, we have to use 1000 instead of 100).
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
18–11
160
200
220
420
440
460
Need help?
Do you have a question about the DL405 and is the answer not in the manual?
Questions and answers