The ANLGIN I-Box sets up a DL205 analog input module and writes the raw value to the V-memory word you configure, V2000 in the reference example. Place it on a D2-250-1 CPU with firmware v4.60 or later, count the slot from the CPU with slot 0 next to it, cycle Program Mode to Run Mode to trigger it, then scale with ANSCL and point the panel tag at the scaled word.
An analog value reaches your panel through one V-memory word. The ANLGIN I-Box in DirectSOFT sets up the analog input module, and the raw value shows up in the destination word the box names; the reference example uses V2000. Point the panel's display tag at that word, or at the scaled word ANSCL writes, and the number on screen follows the sensor.
Three things decide whether it works: the CPU firmware level, the slot number you enter, and the Program Mode to Run Mode cycle that triggers the box. Get those three right first, then scale the value and wire the tag. The sequence below is written for a D2-250-1 CPU with the analog module on the local base.
What you need
- A DL205 base with a D2-250-1 or DL260 CPU. The I-Box instructions are documented for those two CPUs.
- Firmware v4.60 or later on the D2-250-1. The ANLGIN box needs that level.
- An analog input module, for example the F2-04AD-1 four-channel current input.
- DirectSOFT, with the DL205 I-Box instructions manual open. Page 8 documents the ANLGIN function; page 9 carries the example ladder. Get the manual from the PLC manufacturer's site.
- The chapter for your module in the DL205 analog manual, from the same manufacturer's site. It shows the wiring and the counts range. For the F2-04AD-1 that is 0 to 4095 counts across the 4 to 20 mA span.
- Your HMI panel project, ready for one display tag.
Check the firmware, then place the box
- Read the installed firmware from the CPU information in DirectSOFT. Below v4.60 the ANLGIN box is not available, so upgrade the CPU first.
- Read page 8 of the I-Box reference. It defines each parameter the box asks for.
- Copy the example ladder from page 9 into your program.
- Set the slot number by counting on the physical base, from the CPU outward. Slot 0 is the module next to the CPU, slot 1 the next one out. Use your own count, never the example's.
- Set the destination word for the raw value. The example uses V2000; keep it unless your program already uses that word for something else.
- Write the program to the PLC.
Trigger the box with a Program to Run cycle
The ANLGIN box is triggered by taking the CPU to Program Mode and back to Run Mode. Writing the project alone does not run it. Cycle the mode after every change to the box's parameters, then watch the destination word in a DirectSOFT data view.
A word that stays at 0 after the cycle usually points at the slot number or the trigger, not the wiring. A wrong slot number aims the setup at an empty slot and gives you a register that never moves, which reads exactly like a dead sensor. Recount the slot and repeat the mode cycle before you go to the field.
Example: scaling a 0 to 100 psi, 4 to 20 mA transmitter into 0 to 1000
The inputs, and where each comes from:
- Transmitter: 0 to 100 psi with a 4 to 20 mA output. A typical loop, chosen so the arithmetic is easy to check.
- Module: F2-04AD-1, whose manual chapter lists 0 to 4095 raw counts across the 4 to 20 mA span.
- Destination: raw counts in V2000, from the reference example.
The rule: ANSCL takes a raw value between a low and a high count and converts it into a low and high you set, writing the result to its own word. Set the input range to the module's counts, 0 to 4095, and the output range to the display span in tenths, 0 to 1000.
The arithmetic, checked at mid-scale with the loop metered at 12.0 mA:
- Expected raw counts: 4095 × (12.0 mA - 4 mA) ÷ 16 mA = 4095 × 0.5 = 2047.5, so the data view should read about 2048.
- ANSCL output: 2048 ÷ 4095 × 1000 = 500.1, which lands on 500.
- Display: 500 tenths of psi = 50.0 psi. Direct check: (12.0 mA - 4 mA) ÷ 16 mA × 100 psi = 50.0 psi. The two agree.
Result: raw word 2048, scaled word 500, panel shows 50.0. The threshold to keep in mind: the raw side resolves 100 psi ÷ 4095 counts = 0.024 psi per count, so an output span wider than 4095 steps buys display decimals, not real information. Scaling raw counts into engineering units in a V-memory word works the same way for encoder inputs, down to the same range checks.
Decision: set ANSCL to 0 to 4095 in and 0 to 1000 out for this transmitter. For any other transmitter, copy the counts range out of its own module chapter and set the output span to the sensor's span in the units you want on screen; a 0 to 150 °C input scaled 0 to 4095 in and 0 to 1500 out reads tenths of a degree the same way. If the signal can read below zero, for example a bidirectional voltage input around 0 V, scaling negative analog values on an HMI panel covers the signed case.
Wire the sensor and watch the raw word
Wire the transmitter to the module exactly as its chapter shows. The F2-04AD-1 takes its wiring on a removable connector: squeeze the top and bottom retaining clips, pull the connector off the module, wire it on the bench, and seat it back on the module. Insert or move the module only with base power off, and meter a live 4 to 20 mA loop in series at the module terminals.
With the sensor connected, open V2000 in a data view. The value should move when you change the signal, and it should track the metered current: about 4095 × (mA - 4) ÷ 16 counts at any point on the span.
Point the panel tag at the word
The panel has no address to discover. It displays whatever word its display tag names, and the word holds a value only once the PLC program puts one there. The tag work is short: define the display tag for the address you want on screen, either V2000 for raw counts or the ANSCL output for engineering units, entered in the addressing format your panel's documentation specifies.
The panel reads that word for display. Keep its writes on operator setpoints only, and keep them off the analog input register. If a stage of your machine depends on a word staying where it is, lock a V-memory value from HMI writes during that stage.
How to check it worked
- Low end: hold the transmitter at 4 mA and record the data view value. High end: 20 mA. The two readings must differ and repeat.
- Mid-point: meter the loop and compare. At 12.0 mA the raw word should sit near 2048, as in the example.
- Panel: the number on screen must match the data view for the same address.
- Recovery: cycle Run Mode to Program Mode and back once more. The value must return on its own, with no re-download.
Symptoms, and what each one points to:
- Register stays at 0 and never moves: box not triggered, wrong slot number, or no field signal. Repeat the mode cycle, recount the slot, then meter the terminals.
- Value moves but the range is wrong: the sensor's output type and the module's configuration disagree. Compare the sensor output with the module chapter, then correct the wiring or the module setup.
- Reading jumps around: check the analog base itself before the field wiring.
- Box will not compile or will not write to the PLC: CPU firmware below v4.60. Go back to the first check.
The decision
Recommendation: On a D2-250-1 with an analog input module on the local base, confirm firmware v4.60 or later, place the ANLGIN box from the page 9 example with the slot counted from the CPU, and cycle Program Mode to Run Mode after every parameter change before you judge the result. Once the raw word tracks the metered loop current, add ANSCL with the module's counts range on the input side and the sensor's span in tenths on the output side, and point the panel tag at the scaled word. If the word still sits at 0 with signal metered at the terminals, recount the slot first; it is the parameter most often copied instead of counted.
Questions
Does the ANLGIN box need a re-download after a power loss?
No. The setup runs when the CPU enters Run Mode, and a CPU that returns to Run Mode after power is restored runs it again. A download is not part of the trigger. Confirm it once on the bench: remove power, restore it, and watch the destination word come back in a data view with no write from DirectSOFT. If it does not come back, check that the CPU actually reached Run Mode and that the module is still seated.
Can the raw value and the scaled value share one word?
Use two words. The ANLGIN destination, V2000 in the reference example, holds raw counts, and ANSCL writes its converted value to a separate output word you choose. If both wrote to one word they would fight over it on every update. Point the panel tag at the word whose units you want on screen: raw counts for diagnostics, the scaled word for operators.
Where do I find the counts range for a different analog module?
In the chapter for that module in the DL205 analog manual. Each input type carries its own counts range, and a voltage module's range differs from a current module's. Take the ANSCL input range from that chapter, never from an example written for another module, or every scaled number will sit at the wrong point in the span.
Why does the panel show a frozen number while the data view moves?
That points at the tag, not the PLC. The display tag is aimed at a different word from the one you are watching, most often the raw destination when you expect the ANSCL output. Open the tag in the panel project, note the exact address, and compare it with the data view address before you change anything in the ladder.
Planning information, not legal or engineering advice. Rules differ by place: check codes and permits with your local authority and your licensed trades.