How-to
SCADAPack 470 logic values to Modbus TCP registers in RemoteConnect
Short answer
A logic variable on a SCADAPack 470 has no Modbus address of its own. Create an object in Object Configuration, assign it a holding register such as 40001 with data type UINT, and in the Logic Editor move the counter into that object's value member each scan. CitectSCADA then polls the register, and the object mapping, not the variable, is what the client can read.

On this page
- How do I publish a logic value to a Modbus TCP register on a SCADAPack 470?
- How do I enable the Modbus TCP server in RemoteConnect?
- How do I create the object and assign its Modbus register?
- How do I move the counter from the logic into the object?
- How many Modbus registers does each data type need?
- How do I prove the register reads correctly from CitectSCADA?
- Why does a value written from the HMI never take?
- How do I map hundreds of registers without hand-editing every object?
- How does this differ from M340 %MW addressing?
- Questions asked
On a SCADAPack 470, a value calculated in logic reaches Modbus TCP through an object, not through the variable that holds it. Create an object in Object Configuration, give it a holding register with a data type that matches the value, and move the calculated value into that object's value member every scan; CitectSCADA 2016 then reads the register like any other point. The steps below follow one running example, a counter that rolls from 0 to 1000 once per second, from the offline server setting in RemoteConnect through the register map to the first proof read on the SCADA side. If you already map digital and analog inputs as objects, you have used every screen this job needs; publishing a logic value reuses that object model with the direction reversed.
How do I publish a logic value to a Modbus TCP register on a SCADAPack 470? #
You create one object in Object Configuration for each value, assign it a Modbus register such as 40001 with a matching data type, and move the calculated value into that object's value member in the Logic Editor; CitectSCADA reads the register, never the variable.
Three layers sit between the calculation and the client: the variable the logic writes, the object that owns a register, and the register number CitectSCADA polls. A value that lives only in the Logic Editor has no address, which is why the digital and analog inputs already mapped read fine while a bare logic variable does not. Those inputs are objects from the same Analog, Digital and Counter families, opened in the same Object Configuration screen, so publishing a calculated value reuses a model you have already driven — the object's Modbus tab is simply filled in from the other direction. One published value takes one object.
How do I enable the Modbus TCP server in RemoteConnect? #
With the RTU offline in RemoteConnect, right-click the SCADAPack x70 Controller DeviceDTM, open Additional Functions, then Project Settings, and confirm Modbus IP Servers is selected; the feature is enabled by default, so this is a check, not a change.
- Open the RemoteConnect project for the target RTU and confirm the SCADAPack x70 Controller DeviceDTM you are editing belongs to the controller that will receive the download.
- Right-click that DeviceDTM and open the Additional Functions menu, then select Project Settings.
- Confirm Modbus IP Servers is selected, and leave the surrounding settings untouched.
- On the Configuration - SPx70 Controller tab, open the Objects tab and then Object Configuration, and confirm the Analog, Digital and Counter groups are listed.
Server-side settings like this are the piece most often missed on a first commission; the checklist in What you must configure on the PLC side for Modbus TCP covers the same ground for any controller serving registers to a SCADA client.
How do I create the object and assign its Modbus register? #
In Object Configuration under the Objects tab, open or create a Counter or Analog object, switch to its Modbus tab, and enter register 40001 with data type UINT; a counter that only reaches 1000 fits one 16-bit register with room to spare.
Expand the object list for the family that fits — Analog, Boolean or Counter — and open an existing object or add a new one. Give it a name that says what publishes it, for example Counter_Publish, and choose the variable type the value needs; T_SPx70_ADV_ANALOG is one of the advanced analog types available when engineering-unit handling matters. On the object's Modbus tab, enter the register and data type decided above. Click OK and Apply, then reopen the object and read back the register, the data type and the scaling fields before touching the logic. The Basic tab holds scaling: leave it alone so the client sees the true count, and use scaling only for values whose transmitted range differs from their engineering range — and then convert once, either in the object or in the client, never both.
How do I move the counter from the logic into the object? #
In the Logic Editor, add a move (assignment) from the counter variable to the object's writable value member on the same scan as the increment; in the advanced analog type this member is VALUE_ENG, and the object mapping, not the variable, is what appears on Modbus.
The move is an ordinary assignment placed after the counter's increment and rollover, so the published copy is never a scan behind the calculation. Keep the arithmetic and the publication as two separate rungs: a change to the rollover then never hides inside the publication. Build the project, and during an agreed online test watch the variable and the object member climb together, one step per second, over the counter's whole range. The assignment copies the value each scan, the variable stays the calculation's home, and other logic reading the counter is untouched. If the RTU must stay running and the adjustment is small, the Object Browsers in RemoteConnect work with the objects associated with logic variables online, and Configuring RemoteConnect online edits for SCADAPack x70 walks through that workflow.
How many Modbus registers does each data type need? #
The Modbus application protocol specification fixes every register at 16 bits, so UINT occupies one register and REAL occupies two consecutive registers; a REAL placed at 40003 spans 40003 and 40004, and the next object must begin at 40005.
Worked allocation for the running example: the counter tops out at 1000 and one unsigned register reaches 2^16 − 1 = 65535, so 65535 − 1000 = 64535 counts of headroom remain and register 40001 needs no scaling. Place the next value, a REAL, at 40003: two registers are 40003 + 2 − 1 = 40004, so it owns 40003 and 40004 and the object after it begins at 40005. Two REALs assigned 40003 and 40004 would share storage and overwrite each other, which shows on the client as values that move for no process reason — confirm each type's occupied span, not just its first address.
| Value to publish | Object data type | Register span | CitectSCADA tag format |
|---|---|---|---|
| Counter value | UINT | one register (40001) | unsigned 16-bit integer |
| Value with decimals | REAL | two registers (40003–40004) | 32-bit float |
| Scaled engineering value | chosen type plus its scaling fields | the span of that type | one conversion only, object or tag |
Word order is the next trap on REALs: implementations differ in which register carries the high word, and the client side of that question is exactly what Reading a CLICK PLC float over Modbus TCP in an HMI works through.
How do I prove the register reads correctly from CitectSCADA? #
In CitectSCADA 2016, define the Modbus TCP device against the RTU's IP address, create a variable tag on the register with an unsigned integer format matching the object's data type, and expect the tag to count 0 to 1000 in one-second steps beside the logic's own variable.
One clean count proves the whole chain: logic, assignment, object member, register, client tag. Each failure mode names its own layer, so fix one layer at a time and re-read. A tag stuck at zero while the variable climbs points at a missing move, or a register number on the tag that does not match the object's Modbus tab. A tag that climbs but shows nonsense points at the tag format or the float word order, not at the mapping. A tag that takes a written test value and then reverts belongs to ownership, covered in the next section. Decision: when the tag tracks the counter through the full range twice in a row, the mapping is done — publish the rest of the values the same way.
Why does a value written from the HMI never take? #
Your logic overwrites the object member on every scan, so a setpoint typed into the client is replaced before the next poll returns it; the read succeeds, the written value snaps back, and the fix is a separate object for values the logic does not own.
Before any client may write, search the logic for every assignment to that destination and decide who owns the value. A display value the RTU calculates and an operator setpoint need different rules: give the setpoint a dedicated object, and write into the logic exactly when it accepts, validates and applies the external number, so a legitimate write survives at least one full scan. The same ownership contest sits behind Safe Modbus writes to PLC output registers from SCADA, where scan logic and external writes compete for the same memory. One safety note belongs here: on a live plant, treat a setpoint that appears accepted but never takes as a fault to stop on, because the process is running on a value the operator believes was replaced.
How do I map hundreds of registers without hand-editing every object? #
RemoteConnect copies a configured template object with the Copy Objects button and hands each copy the next Modbus register; for array-based data, build array objects in the Logic Editor and edit only their Modbus register cells instead of creating objects one at a time.
- Build the template object — Analog, Boolean or Counter — with its name, variable type and first Modbus register, then click OK and Apply.
- Select the template and click Copy Objects.
- Enter the Number of Copies your register plan calls for, for example 100; that is an example of the field in use, not a capacity of the RTU.
- Clear the DNP3 address options when the copies serve Modbus only.
- In Modbus Options, keep the default that takes the next free register, or choose the option that assigns Modbus registers sequentially and enter the address the block should begin at.
- Read back every generated name and register span: copies inherit the template name with a suffix, so rename them to real roles and check the block end to end for overlaps.
For the array path: open Derived Variables in the Logic Editor, enter the array name, use the ellipsis in the Type column to select Array and its size, and in the Libraries area expand Libset and select SCADAPack x70 for the element type. Once the array objects exist, the only cells to edit in Object Configuration are their Modbus register entries.
How does this differ from M340 %MW addressing? #
A Modicon M340 maps itself: you type %MW330 into a variable's address field and the tool maps that variable, and a DDT, as far as it needs to run. The SCADAPack x70 has no address field on variables, so every published member needs its own object, register and move.
An address entered on an object, for example 40330, is an explicit mapping, not an automatic conversion of an M340 declaration — the two addressing models never translate each other. So a migration carrying large derived data types is planned at field level before Object Configuration is opened: list each published member with its type, its register width and its direction, then assign registers and create the moves in batches with Copy Objects or the array workflow above; that plan, not the old address field, is what the SCADAPack register map is built from. The wider tooling shift of such a migration, outside register mapping, is covered in How to Start Reworking Modicon M340 Logic as an AB Programmer.
Questions asked
Which TCP port does CitectSCADA use to reach the SCADAPack's Modbus TCP server?
CitectSCADA's Modbus TCP device definition points at the RTU's IP address on TCP port 502, the port the Modbus TCP protocol uses. If a firewall or routed link sits between the SCADA machine and the RTU, that port must be permitted across it.
Which Modbus function code reads the counter register?
Holding registers are read with function code 03, the read-holding-registers request in the Modbus specification, and a 4xxxx reference is a holding register reference. Configure the CitectSCADA tag to read holding registers at the address the object's Modbus tab shows, with a format that matches the data type chosen there.
Can I change the mapped object while the RTU stays online?
Yes, within limits. The Object Browsers in RemoteConnect work with the objects associated with logic variables while the RTU runs, so values can be inspected and adjusted online. Mapping changes, such as a new register or a different data type on the Modbus tab, are edits to the offline project configuration.
Can more than one client read the same object register?
Yes. A read does not change the object, so a CitectSCADA server and an engineering laptop can poll the same register at the same time. Care belongs to writes: two writers, or one writer against your scan logic, is the ownership problem, so every writable value should have exactly one owner.

