IMDHMIControls LibraryShop main store

Troubleshooting

Where Omron Easy Modbus Master D32300 registers come from

Industrial networks Published 7 min read

Short answer

D32300 through D32304 are not drive addresses: they are the fixed PLC command area that Omron's Easy Modbus Master reserves for the selected serial port, decoded as slave #1, function 06, four data bytes, register address #2136 (hexadecimal, decimal 8502) and the value from D6200. Look up 8502 in the drive's Modbus register table, not D32300.

On this page
  1. Where do the D32300 to D32304 addresses come from?
  2. What does each word in the command block mean?
  3. Is #2136 the drive's register number 2136?
  4. Why does the ladder move zeros into D32305 and D32306?
  5. What should you check before changing the command?
  6. How do you know the write actually reached the drive?
  7. Would this program look different on a CP1L?
  8. What do you change and what do you leave alone?
  9. Questions asked

You did not miss a page in the option board manual, and the drive manual never had these addresses. D32300 through D32304 are words in the CP1H itself: the fixed command area that Omron's Easy Modbus Master function reserves for the serial port selected in the PLC settings. The program fills that area with one request — slave #1, function 06, four data bytes, register address #2136, value from D6200 — and because the # prefix is hexadecimal, the register the drive actually sees is 8502 decimal. Below, the block is decoded word by word, the address conversion is shown with arithmetic, the zeros in D32305 and D32306 are explained, and PLC-side faults are separated from drive-control faults.

Where do the D32300 to D32304 addresses come from? #

They come from Omron, not from the program or the drive: D32300 through D32304 are the fixed command area the Easy Modbus Master (Modbus-RTU master) function assigns to the serial port selected in the PLC settings, so no ladder instruction chose them and no peripheral manual lists them.

The definition you were looking for sits in the CPU unit documentation for the Modbus-RTU master function. The RS-485 option board you searched only adds the physical port; the memory map belongs to the master function that runs on whichever port the PLC settings select.

The start word is fixed per port. Omron's documentation for the same function on the CP1L maps serial port 1 to D32300 through D32349, response words included, and the CP1H material documents its ports the same way. In your machine, the five-word block at D32300 is the request area for the port in use, and the reply and status land in the words the manual reserves alongside it. Whoever built the machine filled the worksheet fields into those fixed words and let the function do the rest.

What does each word in the command block mean? #

The five words are one Write Single Register request in order: D32300 carries the slave address #1, D32301 the function code #6, D32302 the data byte count #4, D32303 the drive register address #2136 and D32304 the 16-bit value moved from D6200.

  • D32300 = #1 — Modbus slave address 1. The drive must sit at station 1 or nothing answers.
  • D32301 = #6 — function code 06, Write Single Register: one register, one value, one transaction.
  • D32302 = #4 — the number of data bytes that follow: two address bytes plus two value bytes.
  • D32303 = #2136 — the 16-bit register address the drive will act on.
  • D32304 = D6200 — the 16-bit speed setpoint copied from the HMI word.

Omron's # prefix marks a hexadecimal constant, so read each field as hex. On the wire the function assembles the RTU frame 01 06 21 36, the two value bytes taken from D6200, and the CRC it computes itself.

A #0 in D32300 would address the broadcast slave, which no device answers — the mistake behind why Modbus RTU sends to slave address 0 instead of your device.

Is #2136 the drive's register number 2136? #

No — the # prefix means hexadecimal, so #2136 is 2136 hex, which is 8502 decimal, and 8502 is the number to find in the drive's Modbus register table, not 2136.

Convert the field digit by digit, the way the drive sees it:

Hex digit in #2136 Weight Product
2 4096 8192
1 256 256
3 16 48
6 1 6
Sum 8502

So the frame carries the bytes 21 36, and the drive table entry you need is 8502. Schneider Electric publishes the Altivar communication register lists as a public FAQ — FA305857 covers the Altivar 900 family — but match the table to the exact drive model in the cabinet.

Two format traps sit next to this conversion. Some drive tables print 4xxxx-style references while the RTU frame carries the raw 16-bit address, so compare the manual's address column with the bytes 21 36 before adding or subtracting one. And if the original programmer had meant decimal 2136, the constant would read #0858, because 8×256 + 5×16 + 8 = 2136.

Why does the ladder move zeros into D32305 and D32306? #

They are unused padding: function 06 carries exactly four data bytes — the register address pair and the value pair — so this request ends at D32304, and clearing the two words after it is defensive housekeeping, not part of the command.

Longer requests do use those words. A function-16 multi-register write stacks its data beyond the fourth word, so leftover values from an earlier, longer command would ride along into a short one; the zero moves prevent that.

The small function block deserves one look before you edit anything. Cross-reference it: if it writes D32300 through D32304, pulses the port's execution control, or reads the completion and error status, it is the sequencing around this request and its order must survive your changes. If it touches none of those addresses, it serves another machine function and the Modbus exchange does not depend on it.

What should you check before changing the command? #

Check six things in this order — port selection, drive station number, serial framing, register scaling, block integrity and request sequencing — because none of them is repaired by getting the register address right.

  1. Confirm which serial port the PLC settings route the Modbus-RTU master through, and that its command area is where this block sits.
  2. Set the drive to the station in D32300 — here, station 1.
  3. Match baud rate, parity, stop bits and character format at both ends; no register edit repairs mismatched framing.
  4. Check the Altivar register's units, scaling, range and signed interpretation before you write to a running machine: one wrong value in D6200 becomes a real motor speed.
  5. Assemble the block before triggering it — #1, #6, #4 and #2136 into D32300 through D32303, then D6200 into D32304 — and hold D6200 steady while the frame goes out so the HMI cannot change the value mid-request.
  6. Wait for the completion or error status before starting the next request on the same port: one master transaction at a time.

Do not byte-swap because a value looks wrong on a display. First compare the transmitted address and data bytes with the intended 16-bit values; only then decide whether byte order is the fault.

How do you know the write actually reached the drive? #

A normal function-06 reply echoes slave 01, function 06, register address 21 36 and the same value you placed in D6200 — the echo proves the drive accepted the write, never that the motor followed it.

Verify in three layers. First the PLC: monitor D32300 through D32306 online just before execution and confirm the five words hold the slave, function, byte count, address and value you intended.

Second the transaction: no reply at all points to wiring polarity, signal common, station number, port selection or serial format — physical and configuration faults, not register faults.

Third the drive: read the same register back, or read the drive's operating reference, with an independent request. If that read reaches past a gap in the drive's register map it returns exception 02 instead of data — why a read crossing a register map gap returns Modbus exception 02 — which is a map limit, not a failed write.

When the write echoes cleanly but the motor ignores it, the cause is on the drive side: reference channel not set to the communication port, local instead of remote mode, run permissives, limits or interlocks. That is a drive-control problem, not a missing definition for D32300.

Would this program look different on a CP1L? #

The words decode identically — Easy Modbus Master runs on the CP1L as well as the CP1H — and only the port hardware and the fixed area each port gets change between the two CPUs.

The CP1H material that introduced Easy Modbus Master billed it as a CP1H function, but the CP1L CPU Unit Operation Manual (W462) documents the Modbus-RTU master for the CP1L too, and the CP1L function document maps serial port 1 to D32300 through D32349. On a conversion, verify the installed RS-485 option board, the selected port, its settings, and the command area that manual assigns to that port.

On older compact CPUs that never had a fixed-area master function, you build the exchange by hand; writing a Modbus RTU master in ladder on a CPM2 shows the shape of that work.

What do you change and what do you leave alone? #

Leave D32300, D32301 and D32302 alone: they already encode a correct function-06 write to slave 1, and the change you are allowed is D32303 for a different drive register, or D32304 for a different value source.

Compute any new register address in hexadecimal from the drive table, and apply the drive's scaling to the engineering value before moving it into D32304. Keep the zeros in D32305 and D32306, keep the sequencing block, and set the Altivar to station 1 with matching serial settings. If the write echoes but the drive does not follow, stop editing the ladder and fix the drive's reference channel instead.

Questions asked

Can I find D32300 in the Altivar manual?

No. D32300 is a word in the CP1H's data memory that the Easy Modbus Master function reserves for its serial port command. The drive never sees it; it only receives the fields placed in those words, here slave address 1, function 06 and register address #2136. Altivar documentation lists drive registers such as 8502, never PLC words.

Does #2136 mean Modbus register 2136?

No. The # prefix is Omron's hexadecimal notation: #2136 converts to decimal 8502, the address the drive receives. For comparison, a true decimal 2136 would be written #0858 in this notation. Match the drive table's address column to the transmitted bytes 21 36 before applying any offset such as the 4xxxx reference style some tables print.

What is the small function block in the program probably for?

Most likely sequencing: it may pulse the request, check the completion or error status before allowing the next transaction, or handle an unrelated machine function. Cross-reference the addresses it reads and writes. If it touches D32300 through D32304 or the port's control and status bits, treat it as part of the Modbus exchange and keep its order intact.

Does a successful function-06 reply prove the speed changed?

No. The echo proves the drive at station 1 accepted and stored the value. Whether the motor follows depends on the drive taking its frequency reference and run command from the communication channel, its limits, and its local or remote state. Read the operating reference back or watch the output frequency to close the loop.

Can the same block be reused on a CP1L conversion?

Yes. The Modbus-RTU master function is documented for the CP1L as well as the CP1H, with serial port 1 mapped to D32300 to D32349 in the CP1L documentation. Verify the installed serial option board, the selected port and its settings, and use the command area that manual assigns to that port rather than assuming identical word numbers across ports.

Keep reading

  • Troubleshooting

    Modbus exception 02 when a read crosses a register map gap

    The exception is correct: a Modbus block read requests consecutive registers, so a span from 754 through 788 includes the undefined 764-767 gap and the meter rejects it with exception 02, illegal data address. Read the 754-763 setup block at startup and after configuration changes, keep continuous reads inside the 768+ measurement area, and publish the last fully accepted set to your calculation logic.

    Industrial networks

  • How-to

    Safe Modbus writes to PLC output registers from SCADA

    A Modbus write can command physical outputs whenever PLC logic copies the written word to output commands, so never map one word as both status and command. Keep a PLC-written status word that clients only read, route remote control through a separate request register validated against permissives each scan, and verify the map before go-live.

    Industrial networks

  • Explainer

    Can a Modbus write change PLC outputs?

    Yes, but not by outrunning the scan. On a Modicon CPU the communication interface reaches data memory only between scans, so a write is applied whole and the next scan either consumes it or overwrites it. The real exposure is that Modbus TCP authenticates nothing: any host that can reach the CPU can write an unprotected holding register your logic unpacks into outputs, so pack status into read-only words, keep commands in a separate writable range, and enforce write protection with an IP access control list.

    Industrial networks