Troubleshooting
Why MpAxisBasicConfig resets digital input source to not used
Short answer
On mapp Motion 5.27.x, section DigitalInputs of MpAxisBasicConfigType does not carry the digital input source, so any read-write cycle through MpAxisBasicConfig writes the source back as not used. Confirm the write in single-cycle debug, then either upgrade to 5.28 or later, or stop writing the basic configuration and set the source through MC_BR_ProcessParam with the documented drive parameter.
On this page
- Confirm the symptom before rebuilding the configuration
- Catch the write that resets the sources
- Match the behavior to the installed mapp Motion version
- Example: deciding the fix on a 5.27.1 runtime that forces one input
- Apply the fix: upgrade, or replace the write with MC_BR_ProcessParam
- Checks that waste time on this fault
- Verify the fix across every write path
- Questions asked
The configuration file is not the fault. On mapp Motion 5.27.x, the MpAxisBasicConfigType structure has nowhere to carry a digital input source, so every read-write cycle through the MpAxisBasicConfig function block writes the drive's input sources back as not used. That is why the project sets Force by function block correctly at first transfer, and mappCockpit still shows not used after startup. Confirm the reset at that write in single-cycle debug, then take one of two fixes: upgrade to 5.28 or later, where section DigitalInputs of MpAxisBasicConfigType supports the source and its properties, or stay on 5.27.x, stop writing the basic configuration, and set the source through MC_BR_ProcessParam with the documented drive parameter.
Confirm the symptom before rebuilding the configuration #
Decide first which of two failures you have: the drive never received the setting, or it received it and a runtime write removed it.
- Transfer the project and restart through the normal startup sequence, then read the source of every digital input channel in mappCockpit.
- Toggle the physical electrical input and watch the logical input in the program. If the logical value follows the wire, the forced source is not active in the drive, whatever the project file says.
- Set one channel to Force by function block by hand in mappCockpit and drive it with MC_BR_ForceHardwareInputs. If the commanded state now reaches the input, the drive and the function block work, and the fault lives in configuration persistence.
- Note when the setting is lost: correct immediately after startup and gone later points at a runtime write; never present at all points at transfer or deployment.
In the reported case, mechanical-element changes from the same configuration file applied correctly, the axes ran as intended, and neither the logger nor mappCockpit showed an error. Only the digital input sources were lost, which already narrows the fault to the input source fields alone.
Catch the write that resets the sources #
Run the application one PLC cycle at a time from a cold start, with mappCockpit open on the input sources.
- Watch the sources while the axis initializes.
- Stop the application at the read, where it loads the live axis configuration into an MpAxisBasicConfigType variable, and record what that variable holds for the digital inputs.
- Advance to the write through MpAxisBasicConfig without touching any other field.
- Read the sources again the moment the write completes.
In the reported sequence, the initial configuration reached the drive correctly and the sources flipped to not used exactly at the write operation of MpAxisBasicConfig, although the code never edited the digital inputs. Setting a single channel to Force by function block was enough for the write to reset every channel. A correct initial write, a reset timed to the write-back, and an empty error list is the signature of a field the structure cannot carry, not of a bad file or a failed transfer. If single-cycle stepping never catches the change, save a drive log from mappCockpit after the axis reaches Disabled and keep the generated axis configuration file (ashwac.br, in the project binaries): drive support asks for exactly those two artifacts when it investigates this fault.
Match the behavior to the installed mapp Motion version #
Check the installed technology package version before changing any logic. The reported installation ran mapp Motion 5.27.1, and the limitation covers the whole 5.27.x family: MpAxisBasicConfig does not support digital input sources there. The version information for 5.28 carries an entry headed Extended support for section Digital inputs for MpAxisBasicConfig: from that release, section DigitalInputs of MpAxisBasicConfigType carries the digital input source and all associated properties.
- On 5.27.x, treat every MpAxisBasicConfig write as destructive to the input sources and keep Force by function block out of that path.
- On 5.28 or later, populate the DigitalInputs members deliberately before any write; the structure now preserves them.
- If the component versions the deployed runtime reports differ from the versions the project was built against, align them before retesting. A mixed-version install can reproduce the fault even after the upgrade.
Example: deciding the fix on a 5.27.1 runtime that forces one input #
Inputs, each from the fault report or the version documentation:
- Installed technology package: mapp Motion 5.27.1.
- First version whose MpAxisBasicConfigType carries section DigitalInputs: 5.28.
- Application trigger: one digital input channel set to Force by function block.
Rule: an MpAxisBasicConfig write preserves the digital input source only when the runtime is at least the version that added section DigitalInputs to MpAxisBasicConfigType. Below that boundary the structure has nowhere to keep the source, so the write-back stores the structure's default, which mappCockpit displays as not used.
Arithmetic: compare the installed version against the boundary. 5.27.1 is below 5.28, so the structure cannot represent the source. With 1 of the channels forced, the next write-back resets every channel to not used.
Result: every MpAxisBasicConfig write on this runtime destroys the source settings, and it does so silently, with no logger entry and no motion error while the axes stay otherwise healthy.
Decision: on 5.27.1, keep the source out of the basic-configuration write path entirely. Set it once through MC_BR_ProcessParam with the documented drive parameter, or upgrade the runtime to the boundary version or later and populate the DigitalInputs members before any write. The upgrade is the better choice when the application must change sources at runtime; if it sets them once at startup, the parameter write is the smaller change.
Apply the fix: upgrade, or replace the write with MC_BR_ProcessParam #
On 5.27.x, replace the write path:
- Find every call that can write through MpAxisBasicConfig: startup, recipe change, commissioning and service routines all count.
- Remove the write, or narrow it to the fields the application truly manages on that version. A read-modify-write cycle through a structure that omits the sources keeps resetting them no matter what the project sets.
- Set the source where the application needs it with MC_BR_ProcessParam, taking the digital input source parameter for the installed ACOPOS from that drive's parameter documentation, never a number carried over from another drive generation. How this parameter path differs from the configuration path is laid out in the ProcessConfig versus ProcessParam setup guide.
- Re-transfer the motion configuration that contains Force by function block, restart, and confirm in mappCockpit that the source survives until the axis sits in Disabled.
Once upgraded: move the runtime to the boundary version or later, fill the DigitalInputs members of MpAxisBasicConfigType deliberately before any write, and check that every deployed runtime component matches the versions the project was built against.
Checks that waste time on this fault #
- Forced initial initialization. It rewrites the configuration files cleanly, which helps a stale or partial deployment, but it cannot add a section the installed structure lacks. In the reported case a clean reinstall changed nothing. If the source starts correct and dies at the write, stop reinstalling.
- Re-transferring the project. The configuration file was written correctly the first time; the file is not the fault.
- Waiting for an error. A structurally valid write completes without a drive fault even when it carries not used for a field the version cannot represent. An empty logger here is expected, not a sign you are looking in the wrong place.
- Hand-editing mappCockpit as the fix. Keep it as a diagnostic: it proves the drive accepts the mode and that MC_BR_ForceHardwareInputs works once the mode is active. The next MpAxisBasicConfig write removes the manual setting again.
Verify the fix across every write path #
Forcing a hardware input disconnects the channel from its physical wire while the axis can still move: run these checks only with the machine fenced and ready for motion, and never let a forced input stand in for a wired stop, guard or limit function.
- Cold-start the controller and drive through the production initialization sequence.
- Before enabling the axis, confirm mappCockpit reports Force by function block on every forced channel.
- Toggle the physical input: the logical value must no longer follow the wire.
- Drive the input with MC_BR_ForceHardwareInputs and confirm the commanded state arrives.
- Run every remaining configuration read and write in the application, startup through service routine, and recheck the source after each one.
- Restart once more and recheck.
The fix passes only when the source survives startup, the transition to Disabled, every configuration write the application performs, and a second restart. Review the logger and drive log afterward for unrelated initialization or motion errors, so the next fault does not hide behind this one.
Questions asked
Can two projects on the same mapp Motion version behave differently?
Yes, if their write paths differ. The reset needs a write-back through MpAxisBasicConfig, so a project that never calls that block keeps its digital input sources on a version where another project loses them. When comparing installations, compare the runtime component versions each one reports, not just the technology package version, and compare which function blocks touch the axis configuration during startup.
What does Force by function block change on the drive?
It detaches the channel's logical input from the physical electrical input so a function block such as MC_BR_ForceHardwareInputs can set the state from the program. The drive diagnostics still show the physical signal arriving, which is why an unset channel looks alive while the motion functions never see a forced state. With the source correctly active, toggling the wire leaves the program-controlled value unchanged.
Will a project transfer or forced initialization clear the fault?
No. In the reported case the configuration file and the transfer were correct: the drive received the right sources first, and the loss happened later at the write operation of MpAxisBasicConfig. Forced initial initialization rewrites the configuration files from the same project data and cannot add a section the installed structure lacks. After an upgrade past the version boundary, one forced initialization is still worth running to clear stale generated files.
Which parameter do I write with MC_BR_ProcessParam?
Take the digital input source parameter from the parameter documentation for the installed ACOPOS generation, not from another drive family, and check the documented access mode before writing. Drive each channel with its own call and place the writes where the program controls them, so the source is set deliberately instead of being carried through a broad configuration write.