Motion Library
Earlier articles

Explainer
Retaining stepper axis position after power loss
Yes: a retained variable in a global data block keeps the last stored axis position through a shutdown, and startup logic can load it back into the technology object. The retained number cannot detect movement or lost steps while the machine is off, so trust it only on slow, low-accuracy axes that nothing can move unpowered, and home or fit an absolute encoder whenever a collision is possible.

Explainer
How conveyor speed converts to oven process time
Process time equals conveyor length divided by belt speed, and the 0-10 V speed signal scales it inversely: a 4 m oven conveyor calibrated at 44 minutes for a full-scale signal shows 88 minutes at half speed. The display divides a fixed numerator by the live signal counts, clamps the low end to a stopped message, and needs one timed traverse to verify.

Explainer
Why an analog input module cannot count encoder pulses
Encoder channels produce edges; an analog input module samples voltage and returns one value per channel per scan, so any pulse between two samples is lost and position cannot be recovered. Put the encoder on a high-speed counter input rated above (RPM ÷ 60) × pulses per revolution in hertz, matched to the encoder's voltage class. On an S7-300, the documented route is the FM 350-1 or FM 350-2 counter module, or a compact CPU with integrated counting inputs.

How-to
Homing an Incremental Encoder Axis With a Zero Mark
Switch the homing mode from absolute calibration to Zero Mark, enter the approach speed and the zero offset in load units, bound the search with the travel limit, and pulse the homing start bit to 1 with no other move active. The axis then finds the encoder's index mark and reports the offset coordinate from it. Without a real zero mark the search faults on its travel limit or reaches a mechanical stop.

Explainer
Undocumented servo motor connection: drive and encoder first
Connect an undocumented servo motor by recovering its exact-model documentation first: match the drive to the motor's continuous and peak current, voltage class and the encoder's supply and feedback interface — never to nominal power alone. Confirm the matched drive with the motor manufacturer or its distributor, and read every connector drawing from the viewing direction it documents.

Explainer
Pull-up resistor sizing for a servo drive fault output
An active-low servo fault output needs a pull-up resistor from the controller input to its supply. At 24 V, keep the resistor at or above 2.4 kΩ so a 1/4 W part stays within rating; 5.6 kΩ is a commonly documented value, dissipating about 0.10 W. Set the encoder-count alarm as allowed mechanical deviation times counts per millimeter, then verify it against deviation measured during normal moves.

Troubleshooting
Why a servo spindle ignores a 0-10V analog command
A 0-10 V reading at the drive proves the command arrived, not that the drive is using it. Before chasing wiring, confirm the drive is in Velocity mode with the external analog input selected as its speed reference, that enable and direction permission are asserted, and that the source's 0 V is tied to the drive COM. If a 9 V battery through a 1 kΩ resistor also fails to turn the spindle, the fault is in the drive's configuration, and step and direction control is the proven fallback.

Troubleshooting
Noisy ballscrew cogging at one fixed location after a jam
Cogging that repeats at one screw coordinate, with both halves of a split double nut rough over the same bounded area, is local raceway damage on the screw from the overload — even when no dent shows to the eye. A fault inside the nut travels with the nut and never pins to one screw position. Decide the return to service from the parts the machine makes, not from the sound.

Comparison
AS5048A PWM vs SPI Angle Reading on a Multi-Encoder Robot
Read the AS5048A over SPI and leave the PWM pin open. The PWM output repeats every millisecond in about 4119 slots, so each sensor needs pulse timing finer than one slot, and edge jitter of even one microsecond spans four slots. SPI returns the 14-bit angle word directly with no pulse measurement, wraps cleanly through zero, and scales to a whole robot with one chip-select per sensor.

Troubleshooting
Servo encoder disk slip: fixing the commutation angle after a shift
A loosened encoder disk screw let the disk shift, so the drive's commutation angle no longer matches the rotor and the axis trips a following error at power-up. Stop power-cycling and trial rotation: they cannot recover the original reference. Restore the angle with the motor manufacturer's documented alignment procedure, verify against the procedure's error limit, or send the motor to a qualified servo repair shop.

How-to
Sizing a VFD for a hydraulic pump fatigue test rig
Size the pump's speed range by worst coincident peak flow, not average stroke volume: at 10 Hz a 3 mm peak-to-peak command needs 0.0942 m/s peak cylinder velocity, while 0.2 to 0.5 mm commands need only 6.7 to 16.7% of that flow. Size the drive for the motor's full-load current with 150% starting overload, and keep the relief valve as independent overpressure protection.

Explainer
Mapping 5 stepper axes and 3 encoder inputs on a motion controller
Four step and direction outputs go on JP7 pins 15-22, the fifth on JP5 pins 1-8, the three encoder inputs on JP7, and the 11 input bits on JP4 and JP6's 20 general-purpose 3.3 V I/O points. The generators and encoder inputs are fixed hardware functions that cannot be moved to other pins, and every limit-switch run belongs behind 24 V opto-isolation instead of on the non-isolated pins.