IMDHMIControls LibraryShop main store

Troubleshooting

Show a forced M580 input in Citect SCADA

SCADA and data logging Published 6 min read

Short answer

A forced %I bit on an M580 never reaches Citect over Modbus, because the Quantum %S79 force-to-Modbus synchronization is not implemented on M580 or M340 and no setting restores it. For the FAT, mirror each input into a %M coil and read it at 000100-style addresses — 400100 is the holding-register area and the common addressing mistake — or serve the tags through OFS.

On this page
  1. Why the force shows in the logic but not in Citect
  2. Check the Citect address before changing anything
  3. Map the input to a %M coil
  4. Put OFS in the path instead
  5. FAT sequence for the simulated CPU swap
  6. What to commit to
  7. Questions asked

A forced %I bit on an M580 will not reach Citect, and no setting changes that: the Quantum system bit %S79, which copies forced values into the Modbus-readable image, is not implemented on M580 or M340. For a simulated acceptance test (FAT), drive a %M coil from the input under test and read that coil — %M100 is address 000100, not 400100 — or put OFS between the controller and Citect. A side-by-side test made the split explicit: the same project on a Quantum CPU showed the forced inputs in Citect, while the M580 showed them only in the logic monitor.

Why the force shows in the logic but not in Citect #

A force in Control Expert replaces the value the logic solves with. It does not replace the value the I/O scanner writes into the input image, and a Modbus read serves that image from the 1x discrete-input area. Two values, two readers: the animation table sees the force, the SCADA poll sees the image.

Quantum has a bridge between the two: the system bit %S79, off by default and set to 1 to copy forced values into the values Modbus reads. M580 and M340 do not implement that function. On those CPUs the input image keeps serving the scanner's data while the force lives only in the logic solve — which is exactly why %M100 and %M200 updated in Citect during the same test: the logic writes the coils, so they carry the forced state; the input image is not touched that way.

This is not a comms fault. The poll succeeds and returns data, just the pre-force image, so time spent checking the Citect driver or the simulation session finds nothing.

The verified configuration: an M580 CPU (BME P58 4040) with Quantum remote drops on State RAM addressing, so the I/O lands as %I1, %I2 and onward, all in Unity v14.1 simulation; the comparison ran the same project on a Quantum CPU. The gap between a forced value and the physical input is general, though — on other platforms you can separate the two, as with checking the real input state while an S7 force is active, and that discipline belongs in any commissioning checklist.

Check the Citect address before changing anything #

A Modbus variable in Citect carries a six-digit address: the first digit selects the area, the five remaining digits are the offset inside it.

PLC tag Modbus area Citect address
%I1 discrete input (1x) 100001
%M100 coil (0x) 000100
%MW100 holding register (4x) 400100

The arithmetic is the digit swap, nothing more: %M117 becomes the digit 0 plus offset 00117, so 000117; %I17 becomes the digit 1 plus 00017, so 100017. The afternoon lost in the original test record went to writing %M100 as 400100: that is the holding-register area, a variable pointed there reads the word %MW100, and a digital tag built on it never tracks the %M100 bit. The corrected entries are 000100 and 000200.

One distinction before you touch the program: if a 1xxxxx input variable returns nothing at all rather than a stale value, that is a failed discrete-input read, a different fault — fixing Modbus TCP FC02 discrete inputs returning no data covers that path.

Map the input to a %M coil #

  1. Choose one spare coil per input under test. For a sixteen-input acceptance test, %M101 to %M116 is a clean block, leaving %M100 and %M200 as plain connectivity checks.
  2. Add one rung per input: the input's contact driving its coil. Put the rungs in a section titled for the FAT so they are one deletion later.
  3. Build, download to the simulation, force the input, and confirm in the animation table that the coil follows it, to 1 and back to 0.
  4. Point the Citect digital variable at the coil address instead of the input address.
  5. Force and unforce once more and watch the Citect value and its graphic go to 1, then back to 0.

Worked example, with the numbers as run: %I1 is forced to 1. The rung is a %I1 contact driving %M101, and the Citect variable is set to 000101. Force on: the animation table shows %M101 = 1 and the Citect graphic shows 1. Force off: both return to 0. Block arithmetic: coil number = 100 + input number, and the address is the digit 0 followed by that number padded to five digits. %I5 maps to %M105, read at 000105; %I16 maps to %M116, read at 000116.

Put OFS in the path instead #

OFS is the OPC server that sits between Control Expert and Citect: Citect connects to it, and the tag database imports from the PLC project instead of being typed by hand. With that path the forced bit reaches the graphic with no mirror rungs, and in production the same path is the standard route to reading M580 I/O in a plant SCADA without mapped memory addresses.

Two things to settle before you build the FAT on it:

  • OFS is separate software with its own licensing terms; confirm against the vendor's licensing documentation what your Citect entitlement covers, before acceptance testing depends on it.
  • Imported tags follow the PLC project, so added or re-addressed variables can drift the imported addresses — resolving M580 OFS variable address drift with the data dictionary is the maintenance habit that goes with tag import.

Then verify once in your own setup: force a single input and compare the Control Expert animation, the OFS value and the Citect graphic before the rest of the FAT leans on it.

FAT sequence for the simulated CPU swap #

The customer is replacing the CPU while the existing remote drops keep running in the plant, so acceptance runs against the simulator, not live I/O.

  1. Prove the connection with a known memory tag: force %M100, watch its Citect variable go to 1, unforce, watch it return.
  2. Force one input under test and confirm 1 in the animation table first. If the logic does not show it, fix the force, not the SCADA.
  3. Confirm the mirror coil, or the OFS value on that path, at 1.
  4. Confirm the Citect variable and the graphic at 1.
  5. Remove the force and confirm every point returns to 0.
  6. Record the tag, the Citect address and the passing path, one line per input.

A force is a test instrument: clear every force before this program goes near the running plant, and never force an input on live equipment to fake a condition.

Observation Where it lives Do this
Forced %I reads 1 in logic, Citect stays 0 expected M580/M340 behavior mirror to %M or use OFS; stop debugging comms
%M changes in logic, Citect stays 0 address entry confirm the 0x coil address, not a 4x register
Nothing updates at all connection check the Citect driver and simulation session before addresses
OFS value differs from the PLC tag import re-import and verify the selected variable

What to commit to #

For this FAT, commit to the mirror coils: no new software, no licensing question, and the test record shows exactly which input each Citect point represents. Commit to OFS where Citect plus Control Expert is the site's permanent architecture and hand-typed Modbus addresses are the thing you want gone, after the licensing answer. On the real machine with live I/O the 1x input reads behave normally, so pull the mirror section back out before the final build — in the shipped program, nobody should be able to force a bit that stands in for a field device.

Questions asked

Is there an M580 system bit that works like Quantum %S79?

No. The Quantum %S79 bit, off by default and set to 1 to copy forced values into what Modbus reads, is not implemented on the M580 or M340, and Control Expert exposes no equivalent switch on those CPUs. Time spent hunting for one is FAT time wasted; the supported routes are the %M mirror coil and OFS.

Why did 400100 never track %M100?

The first digit of the six-digit address selects the Modbus area: 0 is coils, 1 is discrete inputs, 3 is input registers, 4 is holding registers. Address 400100 therefore returns the word %MW100, while the %M100 bit lives in the coil area at 000100. A digital variable pointed at 400100 reads a register and never follows the bit.

Will the 100001 input reads work on the real machine?

Yes. Once the I/O scanner runs against the physical drops, the 1x input image updates from the modules and a Citect variable at 100001 follows the field device normally. The stale forced value is a simulation-only behavior caused by the missing force synchronization, not a defect in the input addressing.

How do I prove no forces are left before the build ships?

Forced bits on the M580 show in the CPU front-panel LED display, in the status bar of Control Expert, and in the Hardware Information tab of the online controller. Walk each one after the FAT, clear every force, then prove one real input end to end so the shipped program is seen solving field data.

Does OFS need its own license next to Citect?

OFS is separate software with its own licensing terms, and whether a given Citect entitlement covers it depends on the license type and the versions installed. Settle it with the vendor's licensing documentation or your distributor before the FAT depends on it; a license gap found during acceptance testing costs more than the mirror rungs ever will.

Keep reading

  • Troubleshooting

    Fix slow Citect polling to a Quantum hot standby pair

    Set the Modnet driver to RetryCount 3 and RetryDelay 1000 ms instead of the defaults, verify the hot standby IP address swap in the CPU configuration, and run the current Citect service pack with matched NOE firmware. The documented swap window is short enough to consume a default-timed retry, and field reports show update times 50 to 100 percent longer until the driver, firmware or module is corrected.

    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 a SCADA write to a PLC real address fails silently

    The link is usually fine. A SCADA write to a PLC REAL address fails over configuration: the ladder compares the double word as a DINT instead of REAL, the SCADA tag type does not match, raw-to-engineering scaling is not 1:1, or the key sequence is shorter than the entry format. Run the four checks in order and re-enter the value.

    SCADA and data logging