AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

Finding the Modbus Register for a 32-bit Servo Parameter

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

When a manual names a 32-bit servo parameter but no register, set the parameter to a distinctive test value such as 123456 µm on the keypad, read two consecutive holding registers with FC03 at wire address 634 and then 633, and look for hex 0001 and E240. Write with FC16 so both words change in one frame, and confirm on the paired parameter two registers higher.

On this page
  1. What can you do when the manual names the parameter but not its register?
  2. Which address do you enter first: 634, 40634 or something else?
  3. How do you prove the serial link before probing for the register?
  4. How does one test value reveal the register and the word order together?
  5. How do you confirm the match is real and not a coincidence?
  6. Should you write the length with FC06 or FC16?
  7. What do you verify before the new panel runs the cutter?
  8. Questions asked

When a servo manual names the cut-length parameter but prints no Modbus holding-register address, you do not need to wait for a register map from the manufacturer: one read-back probe establishes the address yourself. Set the parameter to a distinctive test value on the drive keypad, read two consecutive holding registers with function code FC03 at wire address 634 and then 633, and the pair that shows the two words of your test value is the register. Write with FC16 so both words change in one frame, and confirm the match on the paired parameter two registers higher. This article walks through the probe for a rotary cut-off drive whose manual lists Length A as Pr.634 and Length B as Pr.636, both 32-bit long words in micrometres, with no register table anywhere in the document.

What can you do when the manual names the parameter but not its register? #

You find the address by read-back: put a value on the parameter that the drive cannot confuse with anything else, then read holding registers with FC03 until the two words of that value appear at consecutive addresses, in either order.

A 32-bit parameter occupies two consecutive 16-bit holding registers, so the search space is a handful of reads, not a guess. Before probing, collect the serial facts from the drive and its manual's communication chapter: station number, baud rate, parity, stop bits, and whether the port speaks RTU or ASCII. Check that chapter for a register table first, because if the manual maps parameter numbers to addresses, that table overrides every candidate below. Where even the parameter list is missing, start instead from what to do with an undocumented legacy servo drive.

Which address do you enter first: 634, 40634 or something else? #

Enter 634 on a zero-based driver, then 633 on a one-based driver: the Modbus protocol address is zero-based on the wire, while 4xxxx reference notation and many HMI drivers are one-based, so the two readings of the manual's number differ by exactly one register.

The Modbus data model has one true address space, and the register field inside the request frame carries that wire address. The 4xxxx notation and the driver's address field are presentation layers that may or may not subtract one before sending. Rather than argue about conventions, probe both, and keep the table below at hand:

What you enter Wire address the drive receives When it is right
634 on a zero-based driver 634 the manual's number is already a protocol address
634 on a one-based driver 633 the driver subtracts 1 before sending
40634 (5-digit 4x notation) 633 the manual printed a 4x reference, not an address
group and index from a register table as the table defines the communication chapter supplies its own map

Whichever variant you settle on, write down which one it is and use it for every read in the rest of the procedure.

Read one parameter whose value you already know from the keypad, at an address the manual or a table does give, before any probing: a link that frames correctly shows that value exactly, so a wrong candidate address can never be confused with a wiring or formatting fault.

Set the link up in this order:

  1. Add the drive as a device on the correct serial port with the Modbus RTU driver, or the ASCII driver if the manual says ASCII, matching station number, baud rate, parity, data bits and stop bits.
  2. Check whether the driver offers a zero-based addressing variant, pick one consistently, and record which one it is.
  3. Place a 16-bit numeric display on a holding register whose value is known and non-zero on the keypad.
  4. Confirm the display matches the keypad and no communication timeout is reported.

If the replacement panel has never talked to a drive before, the page on what to set before an HMI reads and writes drive registers covers this same serial setup in more depth.

How does one test value reveal the register and the word order together? #

Set Length A on the keypad to 123456 µm and read two consecutive registers with FC03: the value equals hex 0001E240, so the consecutive pair showing 0001 and E240 is your register, and which word arrives first tells you the word order.

That test value is chosen so one read answers both questions. It is 123.456 mm, a length the process never sits on, and its two 16-bit halves differ, so the pair cannot be mistaken for a repeated byte. The arithmetic, for these inputs:

  • 123456 µm = 1 × 65536 + 57920, and 57920 is 0xE240, so the 32-bit value is 0x0001E240.
  • High word 0x0001, low word 0xE240.
  • FC03 request: wire address 634, quantity 2, display in hex.

Then run the probe:

  1. Enter the test length on the keypad for Length A.
  2. Read two holding registers at wire address 634 with FC03, displayed in hex.
  3. If the pair is not 0001 and E240 in some order, read at 633, which covers the one-based off-by-one.
  4. If neither address matches, apply the manual's register table if one exists, then walk one register at a time.

The order in which the two words arrive fixes the word order:

Registers read, low address first Word order to set in the panel
0001 then E240 high word first
E240 then 0001 low word first

Replace the two 16-bit displays with one 32-bit unsigned numeric object at the confirmed address and set the driver's word-order option to match the table; if the driver has no such option, compose the value from two 16-bit words yourself. The gate is exact: the 32-bit object must display the test length, and if it shows 3795845121 instead, the word order is set backwards. Reading a 32-bit value through a single 16-bit register is a different failure with its own signature, covered in why a 32-bit servo parameter overflows over Modbus.

How do you confirm the match is real and not a coincidence? #

Set Length B (Pr.636) to a second, different test value on the keypad and read the candidate address plus two registers: a chance match on Length A will not also appear at the paired parameter, and the spacing verifies that each 32-bit parameter really occupies two registers.

If Length B's value is not at candidate + 2, do not assume the map; read outward at plus 4, plus 6 and so on until the value turns up, and record the real stride. Some drives reserve extra registers per parameter, and every later address you derive depends on that stride. Read Length A back once more as well, to confirm it still holds the first test value.

Should you write the length with FC06 or FC16? #

Use FC16 with quantity 2 and byte count 4: it updates both words in one frame, while two sequential FC06 writes leave the drive holding a half-updated length, a new high word beside the old low word, that the axis may act on between the two frames.

The frame-level difference between the two write codes, and the error some devices return when a single-register write lands on a 32-bit object, is worked through in the FC06 versus FC16 troubleshooting guide for Modbus writes. Before wiring the write object, read the manual for the write-permission conditions on these parameters (drive state, parameter lock) and for whether writes go to non-volatile memory; if they do, keep panel writes event-driven, never cyclic. Keep the register value in micrometres and convert on the panel side: operators type millimetres, the panel multiplies by 1000 on write and divides on read. Changing a cut length on a live cut-off machine is a process change, so verify every write with the machine in a safe state and the guards in place, per the machine's own risk assessment.

What do you verify before the new panel runs the cutter? #

Write two different lengths to Length A and Length B from the panel, read both back, power-cycle the drive and cut one piece at each setting: sign-off is a measured piece length equal to the entered setpoint for both, with both values surviving the power cycle exactly as the manual specifies.

Include one length above the 16-bit rollover at 65536 µm and one below it, because a low-word carry error only shows above the boundary, where the high word must increment. Run the first cuts at low speed behind the guards and measure each piece against the setpoint: that measurement, not the read-back alone, is the proof that the register, the word order and the write code are all right.

Questions asked

Does the one-register offset also apply to what goes in the request frame's register field?

No. The offset lives in the driver, not in the frame: whatever convention you select, the driver converts your entry to a zero-based protocol address, and the register field of every FC03 or FC16 request carries that wire address. Establish the convention once with the known-good read and leave it fixed for every parameter on that drive.

What if the panel driver offers only single-register writes?

Send the two FC06 requests back-to-back with no other traffic between them, then read both registers with FC03 and confirm the full value on the keypad immediately afterwards. The half-updated window still exists for the time between the two frames, so schedule such a write for a moment when the axis is idle and nothing is being cut.

Can I probe the address while the drive's parameter lock is active?

Usually yes: the probe only reads with FC03, and parameter locks normally restrict writes rather than reads, so you can confirm the address before sorting out write permission. For the write step, the manual's communication chapter gives the drive state and lock conditions the drive requires, and states whether these length values persist in non-volatile memory.

Keep reading

  • Troubleshooting

    Why a 32-bit servo parameter overflows over Modbus

    When a 32-bit servo parameter reads -32763 after you write 5, nothing overflowed in the drive: the value spans two 16-bit Modbus registers, and the master, the screen element or the drive handles that pair with the wrong word order, byte order or signedness. Confirm the base hex address, match the format at both ends and prove it with a raw two-register poll. Reversing motor direction is one parameter write plus a power cycle, and the EEPROM protection write is a separate startup task.

    Servo and stepper motion

  • Explainer

    Servo drive positioning over Modbus: what the network can do

    Over Modbus a servo drive accepts the position target, status reads and often a jog; the enable, stop and move trigger stay on wired inputs. Structure the PLC program as a state sequence — write the target, confirm it, trigger from the wired input, poll the documented in-position bit with a timeout — and configure the drive for target-based positioning, not the speed scheme the old vector drive ran.

    Servo and stepper motion

  • How-to

    Servo positioning instructions from a PLC: DRVI, DRVA, PLSV

    Command the drive with pulse and direction: the pulse train on one of the first three high-speed outputs, direction on any output. Choose PLSV for speed control, DRVI for a relative move and DRVA for an absolute move, and use the 32-bit instruction forms when a speed or position command must exceed 32767.

    Servo and stepper motion