How-to
Configure Unity Pro I/O scanning of remote PLC inputs
Short answer
Unity Pro I/O Scanning reads only holding registers, so it cannot fetch a remote Premium PLC's %I inputs. Copy the remote inputs into holding registers with COPY_AREBOOL_ARINT — %I0.3.0:64 packed into %MW0 through %MW3 — and configure the requesting PLC's I/O Scanning table to read those four words.

On this page
- Why can't Unity Pro I/O Scanning read another PLC's %I inputs directly?
- How do you copy 64 input bits into holding registers?
- What do the COPY_AREBOOL_ARINT parameters P1, N and P2 do?
- How do you configure I/O Scanning on the requesting Premium PLC?
- How do you verify that the remote bits arrive?
- What does the 45392 minus 40001 offset rule actually convert?
- What changes when the input module has only 10 channels?
- What limits this copied-input scheme?
- Questions asked
Unity Pro's I/O Scanning service reads only holding registers, so it can never fetch another Premium PLC's %I inputs directly. Make the remote PLC publish its inputs as registers: run COPY_AREBOOL_ARINT there once per scan to pack the input bits from %I0.3.0 into %MW0 through %MW3, then add one row to the requesting PLC's I/O Scanning table that reads those words. The Read Slave Index arithmetic that works for an STB island applies to register numbers, not to %I references, so the mapping copy is not optional. Below are the copy, the table row and the toggle test that proves the whole path.
Why can't Unity Pro I/O Scanning read another PLC's %I inputs directly? #
The I/O Scanning service reads only holding registers on the remote device, so a direct input range such as %I0.3.0 through %I0.3.63 is invisible to it until the owning PLC copies those bits into %MW memory.
I/O Scanning is Unity Pro's table-driven exchange service: each row names one remote device, its address and a block of registers, and the CPU repeats that exchange on its own, with no program code on the reading side. The register block is the only area the service fetches. That is why the STB island works the way it does — its digital inputs live at register 45392 and enter the table at Read Slave Index 5391. A peer Premium CPU does not expose its %I input image as register data, so a row pointed at %I0.3.0 fetches nothing, no matter what index the row carries.
The decision follows: never put a remote %I reference in an I/O Scanning row. Map the bits into %MW in the CPU that owns them, and scan the words.
How do you copy 64 input bits into holding registers? #
Run COPY_AREBOOL_ARINT once per scan in the PLC that owns the module: with IN := %I0.3.0:64, N := 64 and P2 := 0 it packs all 64 input bits into the four consecutive holding registers %MW0 through %MW3.
Put the call where the remote CPU executes it unconditionally on every scan, so the words always mirror the inputs. One assignment does the whole mapping:
%MW0:4 := COPY_AREBOOL_ARINT (IN := %I0.3.0:64, P1 := 0, N := 64, P2 := 0);
The packing follows from the register width: 16 bits per holding register, so 64 inputs / 16 = 4 registers, laid out like this:
| Source bits in the module | Destination register |
|---|---|
| %I0.3.0 to %I0.3.15 | %MW0 |
| %I0.3.16 to %I0.3.31 | %MW1 |
| %I0.3.32 to %I0.3.47 | %MW2 |
| %I0.3.48 to %I0.3.63 | %MW3 |
The table is the delivered layout in the remote CPU; nothing reorders it on the wire.
What do the COPY_AREBOOL_ARINT parameters P1, N and P2 do? #
P1 selects the first source bit to copy, N sets the number of bits to copy, and P2 selects the first destination register, so the documented call with P1 := 0, N := 64 and P2 := 0 maps source bits 0 through 63 in order.
Read the call as two operands plus three choices. IN carries the source array %I0.3.0:64. P1 := 0 takes the first bit of that array as the copy source. N sets how many bits move — the call above moves the whole array. P2 := 0 drops the first copied bit into the first register of the destination array declared by %MW0:4. Bit order survives the whole trip: source bit 0 lands in bit 0 of %MW0, source bit 15 in bit 15 of %MW0, source bit 16 in bit 0 of %MW1.
The COPY_AREBOOL family also has a bool-to-bool variant, and the array-mapping offset trap that catches people on it is covered on the Unity Pro COPY_AREBOOL_AREBOOL array mapping fix page.
How do you configure I/O Scanning on the requesting Premium PLC? #
Add one row to the requesting CPU's I/O Scanning table that reads the remote PLC's holding registers, so the four words %MW0 through %MW3 of the remote CPU arrive periodically in the requesting CPU as the packed image of the remote inputs.
Set the pair up in this order:
- In the remote CPU, place the COPY_AREBOOL_ARINT call in a task that executes on every scan.
- In the requesting CPU, open the I/O Scanning configuration — the table where each row names one scanned device with its IP address, the registers to exchange and the Read Slave Index.
- Add a row for the remote Premium: enter its IP address, set the exchange to read four holding registers, and enter the Read Slave Index that points at the remote %MW0 on that platform.
- Keep every %I reference out of the table; the exposed interface between the two CPUs is the mapped %MW range and nothing else.
- Treat the received words as the remote inputs and test them bit by bit, as the verification section below shows.
The same table is also what links a Premium to a Momentum controller; the Configuring Momentum and Premium Ethernet I/O Scanning guide walks through that pairing.
How do you verify that the remote bits arrive? #
Change one physical input on the remote module and watch two places: the matching bit in the remote %MW word and the same bit in the requesting CPU's received word — when both flip together, the copy, the table row and the index are all proven.
Work one channel at a time. Toggle the field device on %I0.3.0 and watch bit 0 of %MW0 move in the remote CPU; toggle an input in the second bank, %I0.3.16, and watch bit 0 of %MW1 move. The mapping is positional — source bit 16 lands in bit 0 of the second word, source bit 17 in bit 1, and so on — so any channel can be proven in seconds.
The scanner side has its own health display: Unity Pro reports a status for every device configured in I/O Scanning, and Schneider Electric's video FA329115 walks through that status view. Read the two together — the status proves the link is alive, and the toggle proves the mapping is right. If the remote bit moves and the requesting PLC's copy does not, the fault is in the row, almost always in the Read Slave Index, not in the copy.
What does the 45392 minus 40001 offset rule actually convert? #
The subtraction converts a one-based Modbus register number into the offset the Read Slave Index column expects, which is why the STB island's digital inputs, register 45392, are entered as 45392 - 40001 = 5391.
That arithmetic works on register numbers, and the island exposes its digital inputs as register data, so the conversion is the whole entry. A peer Premium's %MW area is a different platform case: Schneider Electric's FAQ FA197980 documents that this scanner offset is inconsistent across PLC platforms, so the island's index does not carry over to a Premium peer. Derive the peer's first-register offset from its own register map, then run the toggle test above before trusting the row — the test is the proof, and it takes a minute.
The conversion of Unity Pro topological addresses into Modbus register terms follows its own set of rules, laid out on the Unity Pro topological addressing to Modbus conversion rules page.
What changes when the input module has only 10 channels? #
Set N to the channel count you actually need: with N := 10 the call copies %I0.3.0 through %I0.3.9 into the low ten bits of %MW0, so the requesting PLC scans a single holding register instead of four.
A holding register carries 16 bits, so ten channels fit with six bits to spare. Keep P1 := 0 and P2 := 0, and scan only %MW0 on the requesting side — a row that reads four words would pull in registers this copy does not manage. The module size changes N and the row length; it never changes the method.
What limits this copied-input scheme? #
The copied words are process data, not a safety channel: they lag the physical inputs by one scan of the remote CPU plus one network exchange, and they freeze at the last value if the remote CPU stops, so a stop function keeps its own hardwired input path.
Build the supervision around that freeze: the device status in the I/O Scanning configuration shows a peer that stopped answering, and nothing in this scheme raises an alarm by itself, so alarm on the scanner status wherever a stalled link matters. Everything non-safety — permissives, indications, supervision — reads the copied words like any other internal memory; anything that must stop the machine or protect a person stays on its own wired input, validated as its own safety function rather than as part of this table.
Questions asked
What goes in the Read Slave Index column for a remote Premium's %MW registers?
An integer offset, never a Unity Pro reference such as %MW0. The STB island entry works because 45392 minus 40001 leaves 5391, but Schneider Electric's FAQ FA197980 records that this offset is inconsistent between PLC platforms, so derive the remote CPU's offset from its own register map and prove it with the toggle test before trusting the row.
Where does input %I0.3.20 land in the copied words?
The copy preserves order from the first source bit, so bits 0 through 15 fill %MW0 and bits 16 through 31 fill %MW1. Input %I0.3.20 is source bit 20, which is bit 4 of %MW1 in the remote CPU and bit 4 of the second received word in the requesting PLC.
Does the requesting PLC need any program code for this?
No. The copy instruction runs only in the PLC that owns the inputs; the requesting side just configures I/O Scanning, and the service cycles the row and refreshes the received words on its own. Logic in the requesting PLC then tests the received bits like any other internal memory.
How much does the copy load the remote PLC's scan?
The instruction moves one block of internal bits once per scan, which is small work compared with a network exchange, but no per-CPU load figure is published for it. Watch the remote task time before and after adding the call if that program already runs close to its scan limit.


