Troubleshooting
Why servos give no output after a PLC memory clear
Short answer
After a PLC memory clear, dead servo axes are usually a lost start command, not failed drives. Check the CPU RUN LED and each FX2N-1PG ERR LED, read BFM #29 on any lit module, then trace the start path: HSCS comparisons on C235 and C236, start bits M9 and M209, and bit 9 of BFM #25. Fix the first link that stays dead.

On this page
- Why would a PLC memory clear stop the servos but not the conveyor?
- Which LEDs do I check before opening the ladder?
- Where does the start command actually leave the PLC?
- What turns M9 or M209 on in the first place?
- How do I prove the encoder counts reach the comparison?
- Which symptom points to which dead link?
- When is the fault downstream of the PLC?
- Questions asked
Two dead servo axes after a PLC memory clear, with the conveyor still running from the HMI, point at a broken start path rather than failed hardware. The download restored the conveyor's ordinary ladder logic, but each FX2N-1PG axis moves only when its module receives a start command through buffer memory, and that command chain — encoder counts, comparison interrupt, start bit, command word — is exactly what a memory clear and re-download disturb. Check the cheap things first: the CPU RUN LED and the ERR LED on each module, reading BFM #29 on any module that shows one. Then trace the start path per module until monitoring finds the first dead link; that link, not the drive, is the fault.
Why would a PLC memory clear stop the servos but not the conveyor? #
Because the conveyor runs on ordinary ladder logic that came back with the download, while each servo axis moves only after its positioning module receives a start command through buffer memory, a chain whose operating data and enabling conditions a memory clear does not restore.
The battery work in this fault was genuine: the cell was swapped within 20 seconds with the PLC powered, an upload was taken beforehand, and M8005 and M8006 both read low afterward. That closes the battery branch, because the CPU raises no battery alarm. Battery flags describe the CPU's battery alone; they say nothing about either positioning module or about the data the motion sequence depends on. A battery alarm leaves cleanup of its own behind, which the article on why CNC servos won't power up after a battery alarm walks through separately.
Five moves waste the next hour:
- Another battery replacement: it cannot revive a frozen counter, an unreachable comparison value, or a pulse-speed word left at zero.
- Another memory clear: it erases the retained device values you need as evidence, so capture the current state before anything else.
- Another download: it restores only what the backup holds, and values the HMI normally writes at run time return only when the sequence runs.
- Hunting output coils: the servo command leaves the CPU through the module's buffer memory, so the decisive writes are buffer-transfer instructions, not coils.
- Forcing the start bit to test the chain: never do this, because a forced start bit moves the axis with none of the sequence's timing or guard conditions satisfied.
The working conveyor proves the download landed and part of the control path runs. It proves neither that the program in the PLC matches the backup, that retained values survived, nor that the servo start conditions ever occur.
Which LEDs do I check before opening the ladder? #
Check two indicators before any tracing: the CPU RUN LED must be steadily lit, and the ERR LED on each FX2N-1PG must be dark, because a lit ERR means that module reports its own fault and you read its BFM #29 before anything else.
Work down this order:
- Read the CPU nameplate on the case and match it to the PLC type configured in the project; documentation and instruction support follow the nameplate, not the project label.
- Confirm the CPU RUN LED is steadily lit.
- Inspect the ERR LED on each FX2N-1PG and keep the two findings separate; the modules sit at positions K0 and K1 and can report different conditions even when both axes stand still.
- In GX Developer, read the program back with Online > Read from PLC and save that readback separately from the pre-change backup, then compare the two.
- Monitor the program that is in the PLC, not the offline project, whenever you watch the sequence.
- Record the current values of the devices the motion sequence uses before any further download or device reset erases them.
- If a module's ERR LED is lit, read BFM #29 from that module and decode the value with the error list in the FX-1PG/FX2N-1PG pulse generator unit user's manual, then clear the condition it names before any further start attempt.
Use the positioning manual for buffer-memory definitions and the CPU manual for instruction and device behavior, and read the whole command word when a single displayed bit looks fine.
Where does the start command actually leave the PLC? #
In this sequence each FX2N-1PG sits at position K0 or K1 in interrupt single-speed position mode, and motion begins when the program writes bit 9 of BFM #25 for that module, not when an ordinary output coil changes, which is why searching output coils finds nothing.
The positioning manual defines the command word BFM #25 bit by bit: the rising edge of b9 starts interrupt single-speed operation, and the rising edge of b6 starts home position return, so each start type needs its own bit carried from 0 to 1. The PLC's internal start devices are M9 for the module at K0 and M209 for the module at K1. Those bits request motion; they prove nothing about pulses.
Search the project for every reference to M9 and M209, including set coils, reset coils, and word operations that write the register holding them. Find the buffer-transfer instructions that address K0 and K1, especially the writes that build BFM #25, and check the enable conditions in front of each transfer: a true internal bit commands nothing if the transfer instruction never executes. Then monitor the internal bits and each module's buffer memory during one authorized cycle.
Keep three events separate in your notes: the sequence requests motion, the PLC writes the command word, and the module emits pulses. The first event that fails in monitoring is the fault, and no hardware comes off before monitoring names it.
What turns M9 or M209 on in the first place? #
The start bits are set from interrupt routines behind HSCS high-speed comparisons watching counters C235 and C236, fed by encoder pulses at inputs X0 and X1, so a start that never happens is usually a count that never reaches its comparison value.
The chain reads: encoder pulses into X0 or X1, counter value, comparison value, interrupt routine, start bit, command word, pulses — and the memory clear can have broken any link in it. In this program, HSCS compares C235 and C236 against set values and the matching interrupt routine sets that axis's start device. For the module at K0, find and read the routine that sets M9 rung by rung; for the module at K1, trace M209's own logic rather than assuming the numbering mirrors the first axis. The encoder feeding each input must be mechanically linked to the conveyor, or the counter counts motion that never reaches the product.
How do I prove the encoder counts reach the comparison? #
Work the count chain forward with example numbers before deciding it is broken: with a 1,000-pulse encoder on a 200 mm drive roller, the counter sees 1,000 divided by 200, which is 5 pulses per millimeter, so a mark 2,000 mm from home is a comparison value of 10,000.
Continue the example. At a conveyor speed of 500 mm/s the counter gains 500 × 5 = 2,500 pulses/s, so the comparison value of 10,000 arrives 4 s into a move that starts the count from zero, because 10,000 divided by 2,500 is 4. If the product passes the mark and the monitored counter stalls at 3,140, the comparison never fired, and the decision is to follow that counter's signal path, not to change the set value. These inputs are an illustrative example: take the pulse count, roller circumference, and set value from your own drawing and program.
Confirm the chain with these checks:
- Establish which encoder feeds X0 and which feeds X1, and confirm each is mechanically linked to the conveyor.
- Monitor the two counters while their shafts turn under controlled conditions.
- A count that stays fixed: turn that encoder slowly and watch the input indicator for X0 or X1; if it never flickers, check the encoder supply, the wiring, the input common, and arrival at the PLC terminal.
- Counts that flicker, jump, or fall short point into the encoder signal path; the article on an incremental encoder missing counts after a cut cycle walks that failure in detail.
- Check the counter-enable logic and any reset instructions, because a reset that fires every scan hides otherwise valid counting.
Which symptom points to which dead link? #
Read the table from your first observation rather than from the symptom that looks most dramatic: each row names the dead link that observation implicates and the confirming check that proves it, and you repair the first link you can prove, not the last one on the chain.
| What you observe | Likely dead link | Confirming check |
|---|---|---|
| Conveyor runs, both axes stand still | Shared prerequisite or missing operating data | ERR LEDs on both modules, then counters, comparison values, and the pulse-speed word |
| One ERR LED lit | That module reports a fault | Read its BFM #29 and decode with the manual's error list |
| A high-speed counter frozen while its shaft turns | Encoder signal path or counter enable | Watch the X0 or X1 input indicator while turning that encoder slowly |
| Counts arrive, start bit never sets | Comparison value, enable condition, or interrupt routine | Monitor the HSCS operands and the routine that sets the start bit |
| Start logic runs with the pulse-speed word at zero | Nothing commanded | Trace every write to that speed word |
| Start bit sets, command word bit never does | Buffer transfer inhibited or overwritten | Monitor the write to BFM #25 and any later writes in the same scan |
| Command bit and speed both set, axis still | Pulse path or drive side | Confirm pulses at the drive, then its enable status and wiring |
Two dead axes make the shared rows worth checking first, and they do not clear either module of its own fault: record both start paths separately, because a healthy check on one axis proves nothing about the other.
When is the fault downstream of the PLC? #
The PLC is exonerated once bit 9 of BFM #25 sets with a non-zero pulse speed and the axis still stands, because the fault then lies in the pulse path, the drive's enable state, or its wiring, and the checks move to the drive.
Confirm the far end before replacing anything. Use the drive's own monitor functions to see whether pulses arrive at its input terminals, then check that the drive reports ready and enabled, and read its alarm history. The wiring from the module's pulse outputs to the drive's pulse and direction inputs comes last, after the signals are proven.
The decisions, case by case:
- Pulses arrive and the drive stays disabled: the decision is drive-side. Clear the enable circuit and decode the drive's alarms; an alarm that returns after a reset points at a live cause, the pattern in why a servo drive alarm returns after you reset it.
- Command bit set, speed word non-zero, no pulses at the drive: the decision is module-side. Verify the module's output settings against the positioning manual and check the module-to-drive wiring.
- No command word in the first place: the decision is back in the ladder, at the first link the table above names.
The decision in every case: repair the first link monitoring proves dead, in the order the table gives, and leave the drives and modules mounted until monitoring names that link. A drive swapped before the start path is proven fixes nothing when its start bit never arrived.
Questions asked
The conveyor still runs from the HMI, so doesn't that prove the program is intact?
It proves the download landed and the CPU executes logic, nothing more. The conveyor runs on ordinary ladder logic that returned with the download, while the servo chain needs operating data and enabling conditions that come back only if they were in the backup or are written by the HMI at run time. Values that lived only in retained devices can be gone after a memory clear, which is why the axes sit still while the conveyor works.
M8005 and M8006 are low, so is the battery branch definitely closed?
Those flags report the CPU's own battery status, and low means only that the CPU raised no battery alarm when you read them. They say nothing about whether the positioning sequence kept its operating data, whether each module is healthy, or whether a start command is being issued. Close the battery branch and move on to the module ERR LEDs and the start path.
Can I just clear BFM #29 and retry the start?
Only once the condition that set the code is gone, or the code returns immediately. Decode the value with the error list in the FX-1PG/FX2N-1PG pulse generator unit user's manual and fix what it names. The FX communication manual documents a reset bit that clears the error status and code for the communication modules, so check what the positioning manual itself provides rather than assuming the same mechanism exists there.
What is interrupt single-speed position mode doing in this sequence?
Each start runs the axis at the commanded pulse speed until the encoder count reaches the comparison value and the interrupt routine finishes the move. That is why the sequence needs a live speed word and a counting encoder before motion can happen: with the speed word at zero or the counter short of its set value, a set start bit still produces no travel.

