IMDHMIControls LibraryShop main store

Troubleshooting

Why MODNET3 bit in word tags read zero in Citect SCADA

SCADA and data logging Published 8 min read By IMDHMI controls team

Short answer

A MODNET3 word tag that reads 147 while every DIGITAL bit tag on that register stays at zero is two faults stacked: the bit tags are not receiving a live pattern at all, and once they do, the driver's default mirrored order puts the set bits at the wrong suffixes. Verify device, quality and loaded project first, then set the MODNET parameter RegisterBitReverse to 1 and reload.

On this page
  1. Why do all sixteen MODNET3 bit-in-word tags read zero when the word reads 147?
  2. What do you check before blaming the bit order?
  3. Do the word tag and the bit tags point at the same register?
  4. Which bit suffixes should be on when the word reads 147?
  5. Why does MODNET3 light bits 8, 11, 14 and 15 instead of 0, 1, 4 and 7?
  6. How do you set RegisterBitReverse in Setup Editor?
  7. How do you prove the fix against the live word value?
  8. Will the fix disturb the analogue REAL tags that already read correctly?
  9. Which fix belongs to which symptom?
  10. Questions asked

Your MODNET3 word tag is telling the truth: holding register 45052 holds 147, and Citect raises no error on the tag definitions. Sixteen DIGITAL tags addressed 45052.0 through 45052.15 that all read zero mean the driver never delivered a usable bit pattern to your project, so the first moves sit below the graphics: device assignment, tag quality and the configuration the runtime actually loaded. Once four bits do appear, the driver's default order puts them at the wrong end of the word, and one parameter moves them home. The checks below separate the two faults in the order that finds them fastest, give the decode that sets the acceptance target, and finish with the decision for each symptom.

Why do all sixteen MODNET3 bit-in-word tags read zero when the word reads 147? #

All sixteen zeros mean the bit tags are receiving no pattern at all, so the fault sits below the graphics in device assignment, tag quality or the configuration your runtime actually loaded; reversed bit order alone would still light four tags, only at the wrong positions.

The UINT read returning a value that matches the controller's own register display proves the hard half of the path: communications, protocol selection and the register address are all right. What it does not prove is that the DIGITAL tags ever received a pattern, and an all-zero column says they did not. A driver ordering fault behaves differently — a test project on this same driver, fed the same word value, lit four suffixes. Wrong ones, but four. Treat the zero column as a delivery fault first and an ordering fault second, in that order.

What do you check before blaming the bit order? #

Use the runtime tag display rather than the graphic, and confirm four things: shared I/O device, good quality at the same moment the word updates, a clean compile, and a running project that matches the database you just saved.

  • Every tag from suffix .0 through .15 carries the same I/O device name as the working word tag.
  • Quality reads good with a fresh timestamp. A value that only comes alive after an I/O server restart is its own fault pattern, described in the article on Plant SCADA tags that read 0 with good quality until an I/O server restart.
  • The project compiles with no address or tag-definition errors, and the runtime is restarted on the saved database.
  • The device's own display or commissioning tool shows the same word value your SCADA word tag shows, read at the same moment.

The working REAL analogue reads prove the device connection in general, but they say nothing about the bit suffixes. And a graphic that stays dark while the tag list already shows a true bit is a binding or animation fault — correct the graphic, not the driver.

Do the word tag and the bit tags point at the same register? #

They must: each bit tag repeats the word tag's I/O device and its address 45052 exactly, adding only a dot and a suffix from 0 to 15, with the bit tags typed DIGITAL and the reference word left UINT.

MODNET3 addresses registers from zero: a register the device documents as 400001 is addressed 400000 in the Citect project, so the address origin sits one below the documented number. Your word tag already returns the controller's own value, which proves its address; carry it into the bit tags unchanged and add nothing but the suffix. Never subtract a further register from an address that already works. Confirming a numbering origin before subtracting reaches past Modbus, too — the same zero-based convention sits behind why RealPort port mismatches come from zero-based numbering.

Tag Address form Type What it proves
Reference word 45052 UINT Communications and register address; value matches the controller's own register display
Bit tags 45052.0 through 45052.15 DIGITAL One flag position inside that same word

Packing a bit reference into a single item address is a general SCADA mechanic as well; the article on Modbus register bit addressing in a SCADA item reference shows the same idea from the item-reference side.

Which bit suffixes should be on when the word reads 147? #

Decode the word before touching any setting: 147 = 128 + 16 + 2 + 1, the weights of bits 7, 4, 1 and 0, so where the device documents its first flag as bit 0, the DIGITAL suffixes that belong on are 45052.0, 45052.1, 45052.4 and 45052.7.

The arithmetic, once: 2 to the 7th is 128, 2 to the 4th is 16, 2 to the 1st is 2, 2 to the 0th is 1, and 128 + 16 + 2 + 1 = 147. The twelve remaining weights — 4, 8, 32, 64, and the eight weights from 256 upward — must stay off, because the Modbus specification fixes a holding register at 16 bits and there are exactly sixteen suffixes to account for. If the device's register map prints one-based labels, convert them to the suffix scale before writing the addresses. Record those four suffixes as the acceptance target for every check that follows.

Why does MODNET3 light bits 8, 11, 14 and 15 instead of 0, 1, 4 and 7? #

Because the driver's default setting reads each word mirrored: suffix 0 points at the opposite end of the word from the device's bit 0, so the four set flags surface under suffixes 15, 14, 11 and 8, each paired with the device bit that mirrors it.

Device bit, least significant first Suffix that lights it, default order Suffix with RegisterBitReverse at 1
0 15 0
1 14 1
4 11 4
7 8 7

Each pair in the default column sums to 15. A test project built on this driver and fed the same reference word value reproduced the mapping: exactly the mirrored suffixes lit. That is observed driver behavior, not a Modbus requirement — the Modbus specification says nothing about a mirrored status word, so the decision follows the device's register map. Set the parameter to 1 whenever the suffixes must equal the device's documented bit numbers, which is the case for any device documented least-significant-bit first. Leave it at 0 only for an application deliberately engineered around the mirrored order; flipping it there would scramble working screens.

How do you set RegisterBitReverse in Setup Editor? #

Open the Computer Setup Editor, add or edit the section MODNET — the section name is MODNET even though the I/O device's protocol reads MODNET3 — set the parameter RegisterBitReverse to 1, save, and reload the parameters before restarting the I/O server.

  1. Note the current value, 0 in a configuration showing the mirrored order, and list every other bit-in-word tag this driver serves, because the change moves all of them together.
  2. Open Setup Editor, the editor for the computer parameters.
  3. Select or add the section MODNET.
  4. Add the parameter RegisterBitReverse with value 1, then save.
  5. Reload the parameters and restart the I/O server so the running driver reads the new setting.

The two lines as they land in the computer parameters:

[MODNET]
RegisterBitReverse=1

The MODNET section serves the whole driver family, and the driver's parameter documentation lists RegisterBitReverse among its custom parameters; the Computer Setup Editor is the documented way to edit computer parameters of this kind.

How do you prove the fix against the live word value? #

Hold the register at its live value and require an exact match: the four decoded suffixes on, the other twelve off, and any other pattern means the parameter never reached the running driver.

Re-read the UINT word tag after the reload first; it should still carry the value it carried before, because the parameter maps suffixes, not word content. Then make the check dynamic. Have the controller set one known flag — take the one worth 16 as the example — through its normal operation or an approved test state, and require the word to rise by exactly 16, to 163 if it still sits at its live value, with suffix .4 as the only DIGITAL tag that changes. That single transition proves the correct controller flag reaches the intended indicator, which a static pattern match cannot. Never write a test value into a live command or interlock register; prove transitions with states the machine itself produces.

Will the fix disturb the analogue REAL tags that already read correctly? #

Expect no change: REAL tags read whole registers as floating-point values and never use a bit suffix, so bit order never enters their conversion, and the reported project's analogue values kept reading across the whole episode.

Verify anyway, because it costs one minute. Note the analogue values and the integer word value before the change, reload, and compare. In the observed behavior the parameter's scope is the bit-suffix mapping and integer word tags keep receiving the raw register value, so an analogue value that shifts after this specific change means the change reached something it should not have: back the parameter out, confirm the original readings return, and resolve the mapping against the driver's parameter documentation before reapplying it.

Which fix belongs to which symptom? #

Three symptoms, three owners: all sixteen bits zero means device, quality or a stale database; four bits on at mirrored positions means the driver ordering, fixed by RegisterBitReverse at 1; a true tag behind a dead graphic means the binding, not the driver.

Symptom at the tag display Decision
Word correct, every suffix zero Repair delivery: shared I/O device, live quality, recompile, reload, then re-test before any driver change
Four suffixes on at positions mirrored from the decoded bits Set the driver parameter to 1 in the MODNET section, reload, and require the decoded suffixes to match
Suffix correct in the tag list, graphic static Correct the graphic's tag reference or animation expression
Word value wrong or stale Restore the register read first; no bit-order change can repair a bad word

Work the table in order: delivery before ordering, ordering before graphics, and never a bit-order change to compensate for a word value you have not verified against the controller.

Questions asked

Does the Modbus standard require the mirrored bit order MODNET3 shows by default?

No. The standard fixes each input or holding register at 16 bits, but it does not dictate how a device numbers the flags inside its status word; that comes from the device's own register map. A device that documents its first flag as bit 0, least significant bit first, is the common case, and it is the case that needs the straight order, with the driver parameter at 1, so the suffixes equal the documented bit numbers.

How do one-based bit labels in a register map convert to MODNET3 suffixes?

Subtract one. A map that calls the first flag bit 1 is counting from one, while the suffixes count from zero, so documented bit 5 is suffix 4, documented bit 8 is suffix 7, and so on. Convert every label before writing the tag address, and check a couple of positions against the live word value after the change; copying a one-based label straight into a suffix selects the neighbouring flag.

Why did the analogue REAL tags never show this fault?

A REAL tag reads whole registers and converts them to floating point, so no single bit inside a word is ever addressed and bit order never enters the conversion. The fault only appears where a tag adds a dot and a bit suffix to a register address. The reported project's analogue values read correctly before, during and after the episode, which is also why they make a useful sanity check after the parameter change.

Why does the UINT word tag still read the same value after RegisterBitReverse changes?

Because the parameter changes how the driver maps a bit suffix onto a position inside the word, not the word content itself. The raw register value is delivered unchanged to integer tags, which is exactly why the word tag remains your reference while you re-test the suffixes: you can compare the pattern on the DIGITAL tags against a value you already trust.

Keep reading

  • How-to

    Connecting Citect SCADA to a Modbus RTU gateway over MODNET

    Yes — MODNET is Citect's driver for Modbus over TCP/IP, and a true RTU-to-TCP converter presents standard Modbus TCP on its Ethernet side, so the combination works. Success then rides on two things: the gateway's operating mode, and carrying the RTU slave address and register offsets into Citect correctly, proved by reading one register whose value you can see at the device.

    SCADA and data logging

  • How-to

    Serve generic Modbus devices to SCADA through OFS with the PL7 driver

    OFS does serve generic Modbus devices: select the PL7 driver in the device alias, not Unity, because Unity issues Schneider-extended function codes a standard slave rejects while PL7 issues the public read/write set. Import the tag definitions as a .SCY file, make OFS the only Modbus master on the link, and point Citect and every OPC DA or UA client at that one server.

    SCADA and data logging

  • Troubleshooting

    Why Citect shows #COM on an Omron CJ1M tag

    #COM on a CJ1M variable tag means Citect's I/O server has no working device behind it, even though ping and CX-Programmer succeed. On the v6 DVD set the working chain is the Citect FINS driver (not OMFINS), Omron FINS Gateway 2003 running on the PC, and a CX-Integrator routing table that places the ETN21 at FINS network 1, node 1, with FINS/TCP on port 9600.

    SCADA and data logging