IMDHMIControls LibraryShop main store

Troubleshooting

Why a ctrlX velocity command fails with ML_AXSVELOCITY

Drives and motion Published 7 min read By IMDHMI controls team

Short answer

ML_AXSVELOCITY is the ctrlX Motion diagnostic for a velocity command the axis cannot run while position moves still work. It comes down to two branches: the PLC project version does not fit the motion app (velocity mode is new in V1.14), or the axis configuration refuses velocity mode — one case cleared by setting the axis rotary with modulo enabled and the area cut from the default 3600000 to 360.

On this page
  1. What is the ML_AXSVELOCITY error on a ctrlX CORE?
  2. Where does the message appear: build, download or execution?
  3. Does the PLC project version fit the ctrlX Motion app?
  4. Does velocity mode run from the commissioning dialog?
  5. Why does a relative move work when the velocity command fails?
  6. Should the axis be changed from linear to rotary with modulo?
  7. Where do you find the velocity function block in the Input assistant?
  8. What order clears ML_AXSVELOCITY fastest?
  9. Questions asked

ML_AXSVELOCITY is a diagnostic from the ctrlX Motion app, and it shows up when the move-velocity function block from CXA_PLCopen cannot execute on an axis that still runs relative moves. Two causes cover the reported cases: the PLC project version does not fit the app version on the ctrlX CORE — velocity mode is new in V1.14 — or the axis configuration refuses velocity mode, which one case cleared by changing the axis from linear to rotary with modulo enabled and the modulo area reduced from the default 3600000 to 360. Record where the message appears first, because a download-time failure and an execution-time failure take different branches.

What is the ML_AXSVELOCITY error on a ctrlX CORE? #

ML_AXSVELOCITY is raised by the ctrlX Motion app when the move-velocity command cannot execute on the referenced axis, and the detailed cause sits in the diagnostic log on the CORE rather than in the PLC editor. When the motion app itself generates an error, the diagnostic log carries the details of the cause, so copy the matching entry — timestamp, axis and message text — before changing anything. It is an internal motion diagnostic, not a compile error and not a fieldbus fault code.

Keep the failure classes apart. A drive that never reaches operational state fails earlier and with different messages; that class is covered in why a CoE servo drive powers up but Motion reports an error. Here the axis moves on position commands, and only the velocity command is refused.

Where does the message appear: build, download or execution? #

The next check depends on where ML_AXSVELOCITY appears, so repeat the failing operation once and record whether the message comes at build, at download, or only when the velocity function block executes. ML_AXSVELOCITY alone does not name the stage. The reported description first tied the message to going online, then narrowed it to the velocity function block, with the relative move working throughout — an execution-time failure.

Where it appears What it points to Next check
Build or download fails Project references or a runtime that rejects the velocity call Project version against the installed app versions
Velocity block fails after download Axis mode or command prerequisites Velocity operation from the commissioning dialog
Velocity fails while a relative move runs A velocity-specific support or configuration gap Version match first, then axis configuration

Does the PLC project version fit the ctrlX Motion app? #

Velocity mode is new in V1.14, so a project calling the velocity command against an older motion app is the first cause to rule out, before any axis setting is touched. Work through it:

  1. Read the installed app versions on the ctrlX CORE; each app shows its version on its own page.
  2. Read the version the PLC project targets, including the resolved CXA_PLCopen version inside the project — not the one you remember installing.
  3. On a mismatch, update the project or the app to a matched combination and download again.
  4. On a match, build a new project from the installed target with a minimal velocity test on the same axis. If the new project runs, the original carries an inherited setting or library reference; compare the two. If both fail the same way, move on to the commissioning test.

A download stopped by a licensing exception is a different fault with its own fix, covered in fixing ctrlX PLC license invalid exceptions on download.

Does velocity mode run from the commissioning dialog? #

Command a velocity move from the commissioning dialog in the motion app, because if velocity fails there, no PLC change will fix it and the axis configuration is the branch you take. The test moves the axis under power: clear the travel area, keep a stop control within reach, and begin with a low velocity.

Select the same axis the PLC block references and command velocity explicitly — a position move through the app proves the command chain but says nothing about velocity support. Watch that the actual velocity follows the request. If the dialog refuses velocity, read the axis or drive diagnostic it shows and take the axis configuration branch. If it runs, stop the axis, confirm standstill, and return to the version check and the axis reference in the PLC block.

Why does a relative move work when the velocity command fails? #

A relative move runs in position mode, which every app version and axis type supports, while the velocity command needs velocity mode, which arrived in V1.14 and which the axis configuration must accept. Both commands travel the same path — PLC block, motion app, fieldbus, drive — so the working relative move proves the wiring, the bus, the drive enable and the axis reference. That proof includes the EtherCAT link, because the motion app commands only axes it reaches over that bus, the constraint explained in why ctrlX MOTION needs EtherCAT for third-party axes.

What the relative move leaves unproven is velocity-mode support. This symptom therefore narrows the fault to two places, in order: the project-to-app version match, then the axis configuration.

Should the axis be changed from linear to rotary with modulo? #

Yes, when the axis physically rotates: the reported case cleared when the axis was changed from linear to rotary with modulo enabled and the modulo area reduced from the default 3600000 to 360.

Setting Value that cleared the reported case Verify before applying
Axis type Rotary, previously linear The machine axis really rotates
Modulo Enabled Position should wrap once per revolution
Modulo area 360, down from the 3600000 default One revolution expressed in the axis position unit

Run the arithmetic before typing anything: 3600000 ÷ 360 = 10000, so with degrees as the axis position unit the default area spans ten thousand turns, and the corrected value makes the modulo cycle exactly one turn. The number follows the unit — with thousandths of a degree as the unit, one revolution is one turn times one thousand, or 360000 increments, and that is the area to enter, not the degrees value.

Understand what modulo does: a linear axis is a non-wrapping coordinate, a rotary modulo axis repeats within a cyclic range, and modulo changes the position representation without stopping anything at the range boundary. A wrong area therefore leaves velocity motion looking normal while displayed position and later position commands go misleading.

The decision: convert only axes that physically rotate. For a genuinely linear machine, keep the linear model and clear the fault through the version match and the command diagnostics; a linear axis switched to rotary trades a clear error for a wrong position model.

Where do you find the velocity function block in the Input assistant? #

In the PLC editor, open the Input assistant and follow Function blocks → CXA_PLCopen → Functionality → Single Axis → POUs → Command to reach the single-axis command blocks, the velocity command included. That node is where the reported project listed MC_Power, MC_STOP and MC_Absolute; take the move-velocity block and its input names from the same installed library instead of typing a declaration from memory.

Then confirm the binding. The axis reference in the PLC block must name the axis you tested in commissioning, the drive must be enabled, and no second motion block may hold command of that axis while the velocity call executes.

What order clears ML_AXSVELOCITY fastest? #

Work the branches in this order and stop at the first one that clears the message: record where it appears, match project and app versions, test velocity from the commissioning dialog, then correct the axis configuration.

  1. Repeat the failing operation and note whether ML_AXSVELOCITY comes at build, download or execution; copy the diagnostic log entry.
  2. Compare the PLC project version, with its resolved CXA_PLCopen version, against the motion app version on the CORE — velocity mode needs V1.14 or later.
  3. On a mismatch, update to a matched combination and download again; on a match, run a clean new project on the same axis to expose an inherited project setting.
  4. Command velocity from the commissioning dialog on the axis the PLC references.
  5. When the dialog also refuses velocity on a rotating axis, set the axis rotary with modulo enabled and the area equal to one revolution in the axis position unit, as in the arithmetic above.
  6. Re-test the velocity function block with the versions aligned and the axis reference corrected.

Both reported outcomes fit this order: the version mismatch clears at step 3, the axis configuration at step 5. A linear axis whose dialog test fails has a version or project problem, not an axis-type problem — take it back to steps 2 and 3.

Questions asked

Can I reproduce the fault on a virtual axis before changing the real axis?

Yes. A virtual axis on the same controller runs the same function blocks without drive hardware, and the reported virtual-axis test accepted the velocity command. When the virtual axis takes velocity and the real one refuses it, the project, library and app support are fine, and the difference to investigate is the real axis configuration.

Does ML_AXSVELOCITY mean the EtherCAT link to the drive is broken?

No. A broken link or a drive that never enables carries its own diagnostics and blocks position moves as well, and here the relative move runs. Position motion working while the velocity call is refused points at velocity-mode support or the axis configuration, so spend the first hour on the version match, not on cables.

What if the Input assistant shows no Function blocks branch at all?

Then the PLCopen motion library is not resolved in that project, so its function blocks are unavailable to the assistant. Repair the project's library references until CXA_PLCopen resolves without build errors, then open the Input assistant again from a programming context; the Function blocks branch appears only when the library is available to the project.

Is 360 the right modulo area for every rotary axis?

Only when the axis position unit is degrees, because 360 is one revolution in that unit. Read the configured unit first and enter one revolution expressed in it — with thousandths of a degree, that is 360000. An area of one revolution keeps displayed position wrapping once per turn and keeps later position commands truthful.

Will switching a linear axis to rotary break the position moves I already taught?

It changes the position model. Modulo wraps position once per cycle, so absolute positions and taught moves from the linear coordinate no longer mean the same thing and must be re-taught after the change. That price is right only for an axis that physically rotates; a linear machine should clear this error through the version match instead.

Keep reading

  • Troubleshooting

    Troubleshooting S7-1200 PROFINET servo motion control issues

    Fix an S7-1200 PROFINET servo project in order: compile the motion calls in FB1 first, set drive and TIA Portal to the same telegram — Telegram 3 on this pairing — then prove one axis holds enable and velocity through repeated scans. A first-generation CPU 1214C executes independent single-axis motion only; the flying shear's deterministic master-slave cut belongs in the drives or in a motion-class controller, and no telegram adds it.

    Drives and motion

  • Troubleshooting

    Why a CoE servo drive powers up but Motion reports an error

    When the slave holds OP and the statusword reaches operation enabled with the fault bit clear, the power error comes from the Motion app's evaluation, not the wiring. Set the Data Layer diagnostic units value to true to read the real message, compare the installed Motion app version with the 2.02 power-up fix and the 1.20.1 third-party drive improvement, or correct the drive firmware, which is what cleared the reported case.

    Drives and motion

  • Explainer

    Why ctrlX MOTION needs EtherCAT for third-party axes

    ctrlX MOTION addresses axes only as EtherCAT slaves through CoE (CiA 402) or SoE, so a PROFINET/PROFIBUS servo module like the Siemens F-TM cannot be declared as a native axis. Command it instead with CODESYS Fieldbus Communication plus CODESYS SoftMotion, which excludes the ctrlX MOTION feature set.

    Drives and motion