Troubleshooting
Fix a DL-06 4-20 mA reading that drops to half
Short answer
When the raw input word holds steady while the scaled value falls, the fault is in the ladder conversion path, not the 4-20 mA signal. On a DL-06 whose module setup returns binary counts, delete the BIN instruction that assumes BCD, and the reading comes back correct.
On this page
- Why does my DL-06 4-20 mA value drop to half and come back?
- How do I tell an input fault from a scaling fault?
- What data format does the module write to V2002?
- How do I read V700 and V701 to confirm the format?
- What does BIN do to a word that is already binary?
- How do I correct the rung?
- Is LDD V153 wrong, and should it be LDR?
- How do I verify the repair across the range?
- Questions asked
A 4-20 mA value on a DL-06 that shows a normal reading, falls to about half, then recovers every few seconds is almost never a failing analog card when the raw input word is steady. The reported case had V2002 rock-stable while the scaled result in V160 fell: the corruption was a BIN instruction in the scaling rung, converting a word the module had already delivered in binary format. Deleting that one instruction restored the reading. This article gives the checks that prove where the fault sits, the module's documented 0-4095 count range, the arithmetic of what BIN does to a binary word, and the corrected rung.
Why does my DL-06 4-20 mA value drop to half and come back? #
Because the ladder corrupts the number after the module reads it: the raw count in V2002 stays steady while the scaled destination falls, and in the documented case a BIN instruction applied to already-binary data caused exactly this periodic halving.
The symptom looks like a signal problem because the display moves. Split the path instead: transmitter, module, raw word V2002, conversion rung, scaled result V160. Each stage either passes a steady value or it does not, and those two registers bracket every instruction that could corrupt the number. In the reported project the module and field wiring were fine — V2002 held a count consistent with the loop current the whole time, and only the downstream result moved.
How do I tell an input fault from a scaling fault? #
Watch the raw word and the scaled destination at the same time in the PLC's data view: if the raw register is steady while the scaled value moves, the fault is between the two addresses, in the conversion and math instructions.
- V2002 steady, V160 changes. Inspect every instruction between the two addresses. The prime suspect is a representation conversion — a BIN applied to data that is already binary.
- V2002 and V160 move together. The input side is suspect: module setup, channel wiring, transmitter, loop power. That branch continues with how to detect a failed analog input channel and report it to SCADA.
- Register contents disagree with the displayed number. Check the display format before the logic; a data view set to the wrong mode misrepresents a healthy register.
Take the readings in the PLC's data view, not only on the HMI. A moving display by itself cannot tell you which stage failed.
What data format does the module write to V2002? #
The F0-04AD-1 current input module converts 4-20 mA into 4096 counts spanning 0-4095 — 4 mA reads 0 and 20 mA reads 4095 — and delivers them in either BCD or binary, depending on how the slot's setup word is written.
That 12-bit resolution (2 to the 12th power = 4096) is the whole resolution of the card. The DL-06 offers four option module slots carrying up to 24 analog channels, and the same BCD-or-binary choice runs across the line: the 8-channel F0-08ADH-1, which the option manual says the DL-06 reads in one scan, and the input side of the F0-4AD2DA-1 combination module behave the same way.
Per the option manual, binary format suits the DL-06's binary math plus its LCD and some operator interface units, while BCD suits BCD math and BCD displays. For what happens inside modules like these before the count lands in V-memory, see how PLC analog input and output modules convert signals. The output side of the same platform uses the count range too, as shown in DL-06 analog joystick scaling to a 0-4095 output.
How do I read V700 and V701 to confirm the format? #
Go online, open a data view on V700 and V701 — the setup locations for a module in slot 1 — and read the upper byte: 0 in the format position means BCD, 8 means binary, and the same byte carries the enabled channel count.
Work in this order:
- Record the current values in V700 and V701 before touching anything.
- Decode the upper byte; an option-manual example for a four-channel module is K400, with replacing that 0 by an 8 in the format position selecting binary for the same channel count.
- Compare the decoded format with the rung: binary data must not pass through BIN, and BCD data must be converted before binary or real math uses it.
- If the project gives no view of how the setup was written, resolve the configured format first — never change conversion logic on a guess.
Separately, check how you are displaying V2002. DirectSoft's DataView offers BCD/HEX, decimal and other display modes, and the mode changes the presentation of the stored word, not the word itself. Do not infer the module's format from how a number looks on screen.
What does BIN do to a word that is already binary? #
BIN is a BCD-to-binary converter: it assumes the word holds binary-coded decimal and rewrites it, so on an already-binary word it reads the hex digits as decimal — 1024 (hex 0400) becomes 400 — and any digit above 9 makes the input invalid.
Worked example, illustrative numbers on the documented 4-20 mA mapping with a healthy 8.0 mA loop:
- Loop current: 8.0 mA
- Raw count: (8.0 - 4) mA / 16 mA x 4095 = 1023.75, so V2002 holds about 1024 (hex 0400)
- Correct path: 1024 x 0.0244 = 24.99, about 25.0 engineering units in V160
- With BIN in the rung: hex 0400 is read as BCD 0400 = 400, and 400 x 0.0244 = 9.76 units, about 39 percent of the true reading
The reported halving was an estimate; the exact ratio depends on the digits in the word at that instant. The intermittency comes from the same place: normal loop noise walks the count through values whose hex digits include something above 9 — 1034 is hex 040A — and those words are not valid BCD, so the conversion output is unpredictable until the count wanders back. A value that falls and returns every few seconds is exactly what a format mismatch looks like.
How do I correct the rung? #
Delete the BIN line: when V700 and V701 confirm binary format and V2002 is steady, that instruction is redundant and corrupting, and its removal is the fix that restored the reading in the reported case.
The rung as reported:
LD V2002
BIN
BTOR
OUTD V153
LDD V153
MULR 0.0244
OUTD V160
In order: LD loads the raw word; BTOR converts the binary integer in the accumulator to a real number; OUTD stores that double word to V153; LDD reloads it; MULR multiplies by the real constant; the final OUTD writes the scaled result to V160. BIN has no role anywhere in that chain when the module delivers binary.
Make the change under control:
- Save the project and record the live values of V2002, V153 and V160 first.
- Confirm the format through V700 and V701 as above.
- Delete BIN and change nothing else in the rung.
- Download, then watch all three registers under a stable input.
- Write the confirmed format and the scaling endpoints into the project documentation.
Do not paper over the symptom with an averaging or filtering routine; that buries a conversion fault and leaves the scale wrong between dropouts.
Is LDD V153 wrong, and should it be LDR? #
No — LDD V153 is correct here: LDD loads a double word from V-memory onto the accumulator stack, and V153 holds the real number that OUTD stored, while LDR is the instruction that loads a typed real constant, not a register's contents.
The question came up in the reported case, and the distinction settles it. LDR exists to load a constant in real format, the way LDA loads an octal constant; LDD simply pushes the two words of any double word onto the accumulator, whatever format they hold. This rung loads a register, so it needs LDD, and swapping in LDR would try to load a constant where the stored value lives. When a mnemonic's role is unclear, settle it in the instruction reference for the CPU you are programming, not by similarity of names.
How do I verify the repair across the range? #
Hold the loop at known currents and check the whole chain: 12 mA must give about 2048 counts and scale to 50.0, and 20 mA must give 4095 counts and scale to 99.9 with the 0.0244 factor.
| Loop current | Expected count in V2002 | Expected V160 at 0.0244 per count |
|---|---|---|
| 8.0 mA | 1024 | 25.0 |
| 12 mA | 2048 | 50.0 |
| 20 mA | 4095 | 99.9 |
One steady point finds the drop but cannot verify a scale; check at least the bottom and top of the range. The 0.0244 factor is 100 / 4095 rounded, so this rung's intended span is 0-100 engineering units and full scale reads 99.9, not 100.0. Deriving a multiplier from confirmed endpoints rather than copying one is the same discipline as scaling a 4-20 mA analog input to engineering units in CPM2 ladder. If V160 feeds alarm or shutdown setpoints, treat this repair as a change to that protective function and prove both endpoints before the machine relies on it. If V2002 itself wanders after the fix, the fault is on the input side: the setup word's channel count, the channel-to-register mapping for the slot, the loop wiring, the transmitter or the loop power.
Questions asked
What raw count should V2002 show for a known loop current?
Use the module's documented mapping: counts equal the current minus 4 mA, divided by 16 mA, times 4095. So 8.0 mA gives (8.0 mA - 4 mA) / 16 mA x 4095 = 1023.75, about 1024; 12 mA gives 2047.5, about 2048; 20 mA gives 4095 exactly. Inject a known current, read the word in the data view, and judge the downstream math only after the count checks out.
How do I rescale the multiplier for a different engineering span?
Divide the engineering span by 4095. The 0.0244 in the reported rung is 100 divided by 4095, rounded, so full scale reads 99.9 rather than 100.0. A 0-200 span needs 200 / 4095 = 0.0488, and a 0-1000 span needs 1000 / 4095 = 0.2442. Derive the factor from your transmitter's confirmed endpoints instead of copying one from another program.
Can I average or filter the dropouts instead of editing the rung?
No. A filter hides a conversion fault while leaving every reading between dropouts wrong, and any alarm comparison still sees corrupted numbers. Fix the representation first. Averaging is legitimate only for genuine signal noise, after the raw word and the scaled value have been shown to track each other across the range.
Does the same BIN fault affect other DL-06 analog modules?
Yes. The BCD or binary selection exists across the DL-06 analog line, including the 8-channel F0-08ADH-1, which the option manual says the DL-06 reads in one scan, and the input side of the F0-4AD2DA-1 combination module. Whichever card is installed, read the setup locations for its slot and make the rung match that setting.
What if V2002 itself fluctuates after I remove BIN?
Then the fault is on the input side. Recheck the setup word's channel count, the channel-to-register mapping for the slot, the loop wiring, the transmitter, and the loop power source. A steady count that matches an injected current clears the module; a wandering count with a known-good input points back at wiring or setup.