Explainer
Why DeviceNet shared words must sit in allocated CIO, not W memory
Short answer
DeviceNet cyclically exchanges only the CIO word ranges allocated to it in CX-Integrator, with input and output defined relative to the master, so a Work Area toggle never leaves its own CPU. Move shared values into allocated CIO words, address them without a prefix in CX-Programmer, give each word one writer, and match the string object's word count to the allocated transfer.

On this page
- Why does a toggle on W300 never reach the other controller?
- Which words does DeviceNet actually exchange?
- Is input and output defined from the master's side?
- How do you type a CIO address in CX-Programmer?
- How do you test one bit without another writer undoing it?
- Why does the string show only fragments?
- What does a working exchange look like with real addresses?
- Questions asked
DeviceNet never reads W memory. The master's unit exchanges only the CIO word ranges that its I/O allocation names, with input and output defined relative to the master. A toggle pointed at W300 changes a private work word inside its own CPU, so it joins no network update and reaches nobody. The repair is to place every shared value inside an allocated CIO range on both controllers, type those operands without a prefix in CX-Programmer (the bit CIO 100.03 is entered as 100.03), give each transferred word exactly one writer, and size the string object to the allocated transfer length. The sections below cover the allocation, the direction, the notation and the tests, and end with a worked exchange between an NSJ5 controller with its built-in PT and a CJ2H.
Why does a toggle on W300 never reach the other controller? #
Because W300 belongs to no allocation: the DeviceNet unit packs only the CIO words its I/O allocation names into the cyclic connection, and a Work Area word is never among them, so the toggle stops inside its own CPU. Two interfaces are in play, and a healthy network LED says nothing about the first one. The PT's objects access controller memory through the PT connection; the DeviceNet unit transfers the configured words of that same memory. Only words that belong to both interfaces are shared. The NSJ operation manual places a DeviceNet Area in CIO whose words are allocated to slaves for remote I/O, and the Work Area is ordinary internal memory that no allocation dialog can name. In the case that prompted this article, moving the values into allocated CIO produced two-way data with nothing else changed. Decision: treat the silent toggle as an addressing fault, not a network fault, and fix the address before touching the cable or the unit.
Which words does DeviceNet actually exchange? #
Only the ranges in the unit's I/O allocation: CX-Integrator asks for the first word to allocate and the number of allocated words, and the cyclic exchange carries exactly those words and nothing else. Where those words sit is the unit's decision, not the network's. The CS/CJ DeviceNet Units manual documents fixed allocation 1 with the output area at CIO 3200 to CIO 3263 and the input area at CIO 3300 to CIO 3363, the words for each slave placed by its node address. The granularity also belongs to the module: the manual for the Mitsubishi Electric DeviceNet master-slave module allocates its master-function I/O area in units of 64 points. The allocated-words-only rule is not unique to DeviceNet on this CPU family, as the same principle carries CJ2H EtherNet/IP datalink start and stop control through CIO. Decision: open the allocation before you pick any test word, and use spare words inside the ranges shown there, clear of physical I/O assignments and of words the program already uses.
Is input and output defined from the master's side? #
Yes, the labels follow the master, not the screen: the master's output range is produced on the master and arrives in the slave's input range, while the slave's output range arrives in the master's input range. The confusion is natural, because a PT calls its entry fields inputs and its readouts displays. On the wire only the master's point of view counts. When the PT sits on the master side, an operator entry placed into the master's output range reaches the remote controller as input data; when the PT sits on the remote side, the same entry travels through the slave's output range and lands in the master's input range. Label every range before you touch a PT address:
| Allocation label | Produced by | Consumed by | What proves it |
|---|---|---|---|
| Master output | The master's program or PT | The remote side | The master word toggles first, the remote word follows |
| Master input | The remote side | The master's program or PT | The remote word toggles first, the master word follows |
The rule follows the scanner on other platforms: you map a 1747-SDN scanner for DeviceNet drive control with this same producer-to-consumer logic. The same master-relative ranges also decide what a second controller can see when reading an existing DeviceNet network from a new PROFIBUS PLC. Decision: write producer and consumer beside every range, and never infer direction from whether the object is an entry field or a readout.
How do you type a CIO address in CX-Programmer? #
With no prefix at all: CIO is the one area that takes no leading letter, so the bit CIO 100.03 is entered as 100.03, and the word CIO 100 is entered as 100. Every other memory area keeps its letter, which is why the instinct to type a prefix strands people here. The single letter C is not a shorthand for CIO; it names a different memory area, and an operand typed that way monitors or moves the wrong word without raising any error. After entering the operand, check the area the online monitor shows beside it: it must appear as a CIO word or bit. The CPU addresses this area by word or by bit, so the entry means bit 03 of word 100, one of the words an allocation can name. Decision: whatever you type must land on the exact words the allocation lists; the example above is notation, not an allocation recommendation.
How do you test one bit without another writer undoing it? #
Give the bit one writer and toggle it only through that path: a word with two writers flickers, because the network refresh or a program instruction puts its own value back within one scan or one connection update. Run one direction at a time. Pick a spare bit in the producer's transmit range, change it through the path that will own it in operation, and monitor the receiver's corresponding bit online at the far end. Hold each state across several network updates and confirm both the set and the reset before moving on; then repeat with a separate pair in the reverse direction, since each direction needs its own confirmed allocation. Two signatures expose a second writer: a word that snaps back within a scan has a program instruction writing it, and a word that snaps back at the connection update rate is receive data the network refreshes. A receive word belongs to the network; let the program read it and never write it. Keep command and status as separate signals where permissives or mode can reject a request, because the PT's write proves delivery while a status word the program owns proves acceptance. Decision: proceed only when both directions hold through repeated updates with no competing writes.
Why does the string show only fragments? #
Because the object and the allocation disagree: the PT string object reads a fixed number of words, the exchange carries only the allocated length, and every word beyond that length never arrives, so the text truncates or garbles. Monitor the whole producing range online, not just its first word; changing characters there prove the local memory moves, and nothing more. Then compare capacities: if the object stores two characters per word, a 16-character message occupies 16 ÷ 2 = 8 words, so the transfer for that data must span 8 words, and a 4-word allocation delivers only the first 8 characters. Point a display object at the receiving copy of the string and an entry object at the range its side legitimately produces, then push recognizable test text such as AB12CD34 through it, since swapped byte or word halves show immediately. Two symptoms, two causes: partial text means the allocation is shorter than the object, and unchanged text means the direction or the destination is wrong. Decision: accept the string when the complete test text reaches the receiving words and survives repeated edits at the PT.
What does a working exchange look like with real addresses? #
Take fixed allocation 1 as the map: the master's output area runs CIO 3200 to CIO 3263 and its input area CIO 3300 to CIO 3363, which checks out as 3263 − 3200 + 1 = 64 output words and 3363 − 3300 + 1 = 64 input words. On the NSJ master, the PT toggle writes bit 00 of CIO 3200, the first output word; the network copies it into the CJ2H's allocated input area, where its program reads that bit as the command. The CJ2H answers with a status bit its program owns inside its output range, and the network delivers it to bit 00 of CIO 3300 on the master, where a lamp object reads it and nothing writes it. For the string, 8 words of the master's input area, for example CIO 3310 to CIO 3317 (3317 − 3310 + 1 = 8), carry the 16-character message at two characters per word, and the display object's address is set to that receiving range. The acceptance run is short: toggle the command at the PT and watch the remote bit, set the status from the CJ2H program and watch the lamp, and push the test text through twice. Decisions by case: a toggle that moves only in the work area moves to an allocated CIO word; one-way data is a direction label to swap, not a cable fault; a bit that springs back has a second writer to remove; partial text needs the transfer length extended to the object's full word count; and an operand monitoring the wrong word has a prefix to delete.
Questions asked
Should the PT write the exchange word directly or a W word the program copies?
Either works if the word ends up with one writer. If the program already keeps its command states in work words, bridge them: a move instruction each scan copies the work command word into the allocated CIO transmit word, and a second copies the received status word back for the logic. If the PT writes the allocated CIO word directly, no instruction may write that same word; the program only reads it.
Do both controllers need the same word numbers for the exchange?
No. The allocation maps a producer range to a consumer range, and the numbers on the two sides are independent. A command can leave the master at one CIO word and land at a different word in the remote side's input area. What must match is direction and length: when one side's allocated length is shorter than the other's, the extra words are never delivered and must not carry data.
Can an explicit DeviceNet message share W300 instead?
No. An explicit message is a request that a program instruction sends to one slave's parameter objects; it never makes the master exchange a block of its own memory, so it cannot carry W300 anywhere. Use explicit messaging to read or write a slave's parameters, and allocated CIO ranges for everything the PT and the program must share on every update.


