AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a pre-armed capture flag does not end a homing search

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

Short answer

Arming a gated capture with CaptCtrl=0 sets the flag at write time, but the ACC-24E3 homing startup reads the captured-position register, clears that flag and waits for a new edge-triggered event that never arrives. Complete the command with CaptureMode=2 and WarnFeLimit=0.001 counts, or skip the search on absolute axes with homez and a calibrated HomeOffset.

On this page
  1. Why does arming the capture before a homing search not finish it?
  2. Is the capture flag edge-triggered or level-triggered, and which board changed?
  3. Why does GatedIndexSel=1 stop the search at the next U/V/W event?
  4. How do you make the home command complete with no perceptible motion?
  5. How do you skip the homing search on an axis with absolute feedback?
  6. How do you calibrate HomeOffset at the intended machine zero?
  7. Which fix do you choose for your host software?
  8. Questions asked

Writing Acc24E3[0].Chan[0].CaptCtrl to 0 arms the channel's gated capture and sets the capture flag at the moment of the write — and it still does not end a homing search on an ACC-24E3. The search startup clears that flag before the move begins and then waits for a new edge-triggered event that never arrives, so the axis searches until something stops it. Two fixes work: make the command complete with no perceptible motion using Motor[x].CaptureMode and Motor[x].WarnFeLimit, or skip the search entirely on an absolute-feedback axis with homez and a calibrated Motor[x].HomeOffset.

Why does arming the capture before a homing search not finish it? #

Writing CaptCtrl to 0 sets the channel's capture flag at the moment of the write, but the homing search startup reads the captured-position register to clear that flag, starts the move and then waits for the flag to be set again. Nothing after startup sets it, so the search runs indefinitely. The observed symptom is a home search that never stops on an axis whose absolute position is already valid; the mechanism, not the arming procedure, is the fault.

The sequence inside the controller is:

  1. You write CaptCtrl to 0 with GatedIndexSel at 0, the combination documented to trigger immediately on arming.
  2. The ASIC sets the channel's capture flag, the PosCapt element, right then — the arming sentence in the manual is true.
  3. You issue the home command. The processor reads the captured-position register, which clears the flag, and then starts the search move.
  4. The controller waits for the flag to be set again. With no home trigger on the axis, no event ever arrives.

The confirming check is the second configuration described next: the same search completes when a real post-startup event exists, which proves the completion path works and the missing event is the whole problem.

Is the capture flag edge-triggered or level-triggered, and which board changed? #

On the ACC-24E3 the flag is edge-triggered, so only a new event after the startup clear completes the search; the earlier ACC-24E2 ASIC was level-triggered, which is exactly why the pre-armed trick worked there. If you understand difference between level-triggered and edge-triggered logic, the behavior follows directly: a level-sensitive flag reasserts whenever its condition holds, so the startup read could not keep it down, while an edge-sensitive flag stays cleared until a fresh transition occurs.

Identify the installed board generation before porting a capture configuration from one machine to another. The decisive test on the machine is whether a new capture event occurs after the startup clear — not whether the flag was set before the command.

Why does GatedIndexSel=1 stop the search at the next U/V/W event? #

With CaptCtrl=0 and GatedIndexSel=1 the search has a genuine post-startup trigger — the next U/V/W phase event — so it completes, but only after the motor physically travels to that event. This is a motion-producing search dressed as a no-motion completion, and the distance covered depends on where the axis starts relative to the next phase event.

  • If your requirement is zero search motion, reject this configuration as the final solution; it moves by design.
  • If you evaluate it anyway, record the position before and after the command from several different starting points, because the travel is not constant.
  • Do not derive a phase spacing or a travel distance from one observation; measure the actual displacement on your feedback and motor combination.
  • Check the final coordinate, not just the stop: a completed search does not by itself prove the machine zero landed correctly.

How do you make the home command complete with no perceptible motion? #

Set Motor[x].CaptureMode to 2 so the capture triggers on exceeding the warning following-error limit, and set Motor[x].WarnFeLimit to 0.001 counts; the first servo update of the search blows past that limit and the move finishes at once. This is the fix for a host that must keep issuing home unchanged.

Why it completes immediately, as a calculated example for illustrative inputs and not a measured result: take a search velocity of 1000 counts/s and a 1 ms servo update. The commanded position advances 1000 counts/s × 0.001 s = 1 count in the first update. That is one full count of following error against a 0.001-count limit, so the trigger fires within the first update and the commanded travel stays at roughly a count — below the resolution of most feedback, hence no perceptible motion. Your actual numbers come from your search velocity and update rate; the limit stays tiny either way.

Run this test with the axis travel limits enabled and a stopping function at hand, because you are proving a completion condition on a live search move. Afterwards, confirm in a first-use cycle that the host accepts the finished command and does not immediately issue another one.

How do you skip the homing search on an axis with absolute feedback? #

When the host can treat absolute axes differently, remove the search from their initialization and set the reference with homez — #1hmz for motor 1 from the terminal — which loads the coordinate from the absolute encoder with no search move. This is the cleaner path whenever the high-level software can distinguish axes with absolute feedback from axes that genuinely need a physical search, such as the reference-sensor routine described in homing an absolute encoder axis to a reference sensor.

  • Configure the initialization to know which axes require a physical search and which recover their reference from absolute feedback.
  • Make invalid absolute feedback block normal operation rather than pass as a completed initialization.
  • Verify the zero-set behavior and offset handling against the installed controller's documentation before integrating it into the host.

How do you calibrate HomeOffset at the intended machine zero? #

Jog the axis to the physical location meant to be zero, issue #1hmz with Motor[1].HomeOffset set to 0, and write the position the controller then displays into HomeOffset; the next homez reads zero at that spot. The relation is displayed position = absolute count − HomeOffset.

Worked example with illustrative numbers: suppose the position window shows 8192 counts at the intended zero with the offset at 0. Set Motor[1].HomeOffset to 8192 counts. After the next homez, the display at that location is 8192 − 8192 = 0 counts, and a point 2048 counts along the scale reads 2048 counts. This is a calculated example for those inputs, so record the actual value your machine shows rather than this one.

Save the calibrated value to the controller's retentive memory before powering down, applying the same discipline described for retentive PLC-set absolute encoder offsets, and keep a recorded copy of the previous configuration.

Which fix do you choose for your host software? #

If the host software can be told which axes have absolute feedback, choose the search-free path; if it must keep issuing home unchanged, choose CaptureMode=2 with the tiny following-error limit. Every case has a decision:

Situation Decision
Host can distinguish absolute axes Skip the search: homez plus a calibrated HomeOffset.
Host always issues home, cannot change Motor[x].CaptureMode=2 with Motor[x].WarnFeLimit=0.001 counts; no perceptible motion.
Pre-armed capture with CaptCtrl=0, GatedIndexSel=0 Does not work on the ACC-24E3; the startup clear consumes the flag. Stop relying on it.
CaptCtrl=0 with GatedIndexSel=1 Works but moves to the next U/V/W event; accept only when small travel is tolerable and measured.
Axis genuinely needs a physical search Keep the sensor or zero-mark homing routine; do not fake a completion.
Board is the earlier generation The level-triggered flag may let the pre-armed trick work; verify on the installed unit before trusting it.

The gate for either path is the same: a valid absolute coordinate at the end of initialization, with no unintended search move and no recovery jog you did not ask for.

Questions asked

How do you stop a homing search that will never trigger?

Abort the move with the controller's abort command from the terminal before changing anything else. Because the startup clear consumed the flag, the next attempt needs CaptCtrl written to 0 again to re-arm the capture; a flag set once stays spent until you re-arm it.

Does calibrating HomeOffset move the axis?

No. The homez operation only rewrites the position coordinate from the absolute reading; nothing physically moves. A recovery program that jogs to the home position afterwards is issuing a separate motion command, so leave that jog out when initialization must leave the axis exactly where it stands.

Why does the manual say arming causes an immediate trigger?

Because the ASIC really does set the capture flag the moment you arm it. That sentence describes the hardware, not the homing startup that reads the register and clears the flag a moment later. The wording was acknowledged as needing clarification, so trust the startup sequence rather than the arming sentence.

Keep reading

  • How-to

    Homing an Absolute Encoder Axis to a Reference Sensor

    Homing an absolute encoder axis to a reference sensor is two steps: a controlled search move that captures the axis position at the sensor transition, then a relative encoder adjustment whose correction is the reference position minus the captured value. For a zero reference at the sensor, that correction is the negative of the captured position, and the stopped coordinate after the search does not need to be zero.

    Servo and stepper motion

  • How-to

    Homing an Incremental Encoder Axis Without a Proximity Switch

    Home once after each power-up, then re-home after any slip, fault, or unpowered movement. Without a proximity switch, retract to the negative stop under a torque limit as the coarse reference, arm the home with the Z index trigger, and creep forward until the latch; without a Z channel, set the position at the verified stop.

    Servo and stepper motion

  • Troubleshooting

    Why MC_Home Absolute Encoder Adjustment Is Lost After Power Cycle

    The MC_Home offset is stored retentively in the CPU technology object, not in the encoder, so it survives a power cycle only when the TO encoder type is Absolute, MC_Home reported Done = TRUE, and nothing cleared retentive memory in between. Mode 6 is relative, so Position = 0.0 correctly changes nothing; use Mode 7 for an absolute adjustment.

    Servo and stepper motion