How-to
Configuring a PLC pulse-output servo axis before PLS2 moves
Short answer
The drives are not plug and play: keep command scaling in one place, the drive's gearing or the PLC program, and stay under the 100 kHz pulse ceiling, which at 10,000 pulses per revolution caps the motor at 600 rpm. Prove direction, limits and homing first, then tune for the load.

On this page
These drives are not plug and play. Out of the box they will accept PLS2 pulses, but pulse format, command scaling, direction, limits and tuning all have to match the machine before you trust an automatic move. Two numbers decide the setup: the CJ1M built-in pulse outputs top out at 100 kHz, and at the as-shipped scaling of 10,000 command pulses per motor revolution that caps the motor at 10 rev/s, or 600 rpm. On your direct-driven ball screw the same scaling works out to 2,000 pulses per millimetre, which is ample resolution for a slow stop. Scale in one place, prove travel and homing, then tune for the load.
Match the interface before you configure #
-
Count the axes honestly. Two drives and two motors are two axes, and the CJ1M-CPU21 carries two built-in pulse-output channels, one per axis. No positioning module is needed just because the parts list looks long.
-
Put each drive in pulse-train position control. Read its control-mode and command-input settings; if they do not match the pulse format the PLC is set to output (pulse plus direction, or CW/CCW), change them per the drive manual before connecting motor power.
-
Check the electrical interface. The PLC's transistor outputs and the drive's pulse inputs must agree on voltage level, common terminal and minimum pulse width; both manuals state their figures. A mismatch shows up as no motion or lost counts while the program runs normally, so settle it at the bench.
-
Get online and save what is there. Connect with CX-Drive, the drive configuration tool inside CX-One, and record the existing parameter set before changing anything.
Budget the pulse frequency first #
The CJ1M CPU Unit datasheet gives the built-in outputs a maximum frequency of 100 kHz, settable from 1 Hz upward. PLS2 (887) is the instruction you will use: trapezoidal output with separate acceleration and deceleration rates, but no operand setting pushes it past that ceiling. If a commanded speed is never reached, the pulse rate is the first thing to check; the rest of that diagnosis is in why a servo axis never reaches its commanded speed.
The rule: top motor speed equals the pulse ceiling divided by the command pulses per motor revolution. Lower the drive's command pulses per revolution and the same pulse rate spins the motor faster, at the cost of a coarser command increment; the encoder resolution behind the drive does not change. The worked example below applies the rule to your screw.
Put the scaling in one place only #
Two arrangements work; pick one.
- Scale in the PLC. Leave the drive at its as-shipped command scaling and convert millimetres to pulses in the program. Simplest for one slow axis, because the conversion sits with the motion code.
- Scale in the drive. Set the drive's electronic gear ratio, numerator and denominator as its manual defines them, so one command pulse equals a round increment of travel and the program sends plain integers.
Never both. If the drive multiplies and the program multiplies too, every move lands out by the gearing factor and you find out on the first measured part. Wherever the conversion runs, a fractional pulse count must round to an integer, so check the rounding on the shortest move you need against its tolerance.
Working the numbers for the ball-screw stop axis #
Inputs, each with its unit and source:
- Pulse-output ceiling: 100,000 pulses/s, the documented maximum (100 kHz) for the CJ1M's built-in outputs.
- Command scaling: 10,000 command pulses per motor revolution, your assumed as-shipped value, to be confirmed by reading the drive's gear parameters.
- Ball screw lead: 5 mm of travel per screw revolution, the machine's stated screw; confirm it is the lead and not just the pitch.
- Transmission: direct coupling, 1 motor revolution per screw revolution.
The rule in words: command pulses per millimetre equal the command pulses per motor revolution times motor revolutions per screw revolution, divided by the lead in millimetres. A move's pulse count is the distance times pulses per millimetre. Top motor speed is the pulse ceiling divided by pulses per revolution, and top feed is top motor speed times the lead.
Arithmetic:
- Pulses per mm: 10,000 pulses/rev × 1 ÷ 5 mm/rev = 2,000 pulses/mm. One pulse commands 0.0005 mm, so integer rounding of any move costs at most 0.00025 mm.
- Top motor speed: 100,000 pulses/s ÷ 10,000 pulses/rev = 10 rev/s; 10 rev/s × 60 s/min = 600 rpm.
- Top feed: 600 rpm × 5 mm/rev = 3,000 mm/min (50 mm/s), and reaching it consumes the entire pulse ceiling.
- Half the ceiling: 50,000 pulses/s ÷ 2,000 pulses/mm = 25 mm/s, a 1,500 mm/min feed with half the pulse rate in hand.
Result: at the as-shipped scaling the axis commands 2,000 pulses/mm and tops out at a 3,000 mm/min feed.
Decision, with its threshold: for this slow stop, keep the as-shipped scaling and convert in the PLC, because the resolution is far finer than a stop needs and the feed ceiling sits well above a slow application. If the fastest feed you need ever exceeds 3,000 mm/min, halve the drive's command scaling to 5,000 pulses per revolution: the same ceiling then turns 20 rev/s (1,200 rpm) and resolution drops to 1,000 pulses/mm, still 0.001 mm per pulse.
Prove travel, direction and reference, then tune #
-
Fit the limits and home sensor first. The drive's default limit and homing settings rarely match a new machine, so set them for the installed sensor arrangement before any automatic move, and re-check them after a drive swap; a lost limit configuration is the usual reason a servo axis runs past its limit switch. Stopping must not depend on the positioning program: wire the travel limits to inhibit the drive independently, as the machine's risk assessment under ISO 12100 requires.
-
Confirm direction with a low-speed jog. Command a small move and watch which way the axis runs. If it goes the wrong way, correct it in one defined place, the drive's direction setting or the PLC's output, never both.
-
Home before absolute moves. Run the homing sequence and confirm the reference repeats from restart to restart before the program counts positions from it.
-
Tune last. With scaling, direction and limits proven, tune each drive for its load and inertia ratio with the same configuration tool. An unloaded jog proves the wiring, not the performance; the first moves under load are where the tuning shows.
Questions asked
Can the built-in outputs run more than two servo axes?
No. The CPU's built-in pulse outputs provide two channels, which matches your two drives exactly. A third or fourth axis needs a positioning module on the PLC rack, and a module brings its own instructions and data areas instead of PLS2, so fix the axis count before the program is written.
How do I confirm the command scaling the drive is really using?
Mark the motor shaft, command one revolution's worth of pulses at low speed, and count the turns. Exactly one turn confirms the scaling you assumed; more or less means the drive's electronic gear ratio is set differently, so read the parameters and correct your numbers before trusting any position.
Should I use the drive's electronic gearing instead of maths in the PLC?
For one slow axis, converting travel to pulses in the program is the least error-prone route, because the scaling lives with the motion code and survives a drive replacement. Set electronic gearing in the drive when several axes must share one round command increment, or when the program's integer maths cannot hold the pulse counts cleanly.
What changes when a gearbox sits between motor and screw?
Replace the one-to-one assumption with the real ratio. With a ten-to-one reducer, ten motor revolutions make one screw revolution, so the pulses per millimetre rise tenfold while the pulse ceiling delivers one-tenth of the feed speed. Include the ratio when you budget frequency, not after the axis runs slow.
Does a PLS2 move need a homed reference?
Only a move specified as an absolute position does. PLS2 outputs a set number of pulses, so the axis travels relative to wherever it already is. Home first and every position in the program is measured from the same repeatable place; skip homing and the counts still execute correctly, but the physical locations drift with each restart.
