MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do Mitsubishi FX positioning modules work with an HMI to set positions?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do Mitsubishi FX positioning modules work with an HMI to set positions?

A positioning module does not store positions itself; the position values live in the PLC device area, and the HMI only writes numbers into those devices. "Working together" really means agreeing on which registers hold what, in what format the screen reads and writes them, and when writing is permitted. Once that chain is clear, the screen stops producing the classic fault where a value is entered but the machine still runs to the old position.

1. How the data gets from the HMI to the module

The HMI is normally linked to the PLC over a serial port or Ethernet, and what it reads is the PLC device area, not the buffer memory inside the positioning module. The usual approach is therefore to reserve a block of consecutive data registers in the PLC as a parameter area, let the HMI read and write only that block, and have the PLC copy the contents into the module buffer memory with a TO instruction at the right moment. Direct HMI access to the module buffer memory is possible on only a few models, and the word length and order are easy to get wrong. Drawing the chain - HMI, parameter area, TO instruction, module - into the design document saves a great deal of time later.

2. Units, multipliers and 32-bit data format

A position value often exceeds what a 16-bit register can represent, so it has to be built from two consecutive registers into a 32-bit word; the high/low order is per the manual for the specific model, and reversing it yields a completely wrong number. Units must also be kept apart: let the operator type millimetres on the screen, and convert to position units inside the PLC by a multiplier or scaling factor before sending to the module, rather than exposing the operator to raw pulse counts. Decimal places have to be consistent too - the number of decimals in the input field must match the scaling, otherwise a value with one decimal can be written as a whole number.

3. When writing is allowed, and the interlocks

Most positioning modules do not allow the target position or speed to be changed while the axis is moving. A mid-move write is either ignored or deferred to the next positioning block, and in the worst case raises a positioning error. Every writable field therefore needs a write condition: stop the axis, wait for the positioning-complete signal to return, confirm the module is in a state that permits changes, write the parameters, read them back to verify, and only then set the start bit. Keep start on its own button rather than bundling it with the parameter write. Put the interlock logic in the PLC; a greyed-out button on the screen is a hint, not a safety measure.

4. Retentive memory and managing the position table

The retentive area sits in different places on different models; on the FX3U the registers from D200 onward are commonly retentive, and the exact range is per the manual. Position points are usually arranged as a table by position number, each number occupying a fixed number of words. Once the screen offers the three-piece set of position-number selection, target position and speed, the operator only has to pick a number. Plan the backup of the table separately: parameters are lost after a battery change or a memory clear, so store the whole table as an HMI recipe or a save page and write it back as one block, which is far more reliable than re-keying each entry.

5. What a usable positioning screen needs

A workable positioning screen needs at least: target position, running speed, position number, start and stop, current-value display, positioning-complete and error indication, and soft-limit upper and lower bounds. Number input fields should carry range checks that reject values outside the machine travel and prompt the operator, rather than leaning on the PLC-side limits alone. Showing current value and target side by side makes it easy to tell whether the axis fell short or overshot. Error messages must distinguish not-yet-written parameters, positioning in progress, limit exceeded and drive alarm from one another instead of a vague "motion fault".

6. HMI fields and their register mapping

Screen fieldData typeTypical register formWhen and how to write
Target position32-bit signedTwo consecutive position-unit registersWhile stopped and after positioning completes; convert first
Running speed16-bitSpeed register, pulses per secondNot changed during a move; stop the axis first
Position number select16-bitPosition-number registerSet in a separate step from the start bit
Zero-point offset32-bitOrigin offset registerSet before homing; re-home after a change
StartbitStart bitSeparate from parameter enabling; own button
Stop and pausebitStop bit, pause bitMay be set at any time, no write condition
Jog speed16-bitJog speed registerUsed in manual mode, separate from auto speed
Current value display32-bitCurrent-value monitor registerRead-only, refreshed continuously
Positioning complete and errorbitComplete bit, error bitRead-only, used for screen status
Soft limit upper/lower32-bitTravel upper and lower registersWritten after travel is verified; re-check on change

7. Notes

The screen is separated from the positioning module by the PLC device area, so when debugging, first check that the numbers inside the PLC are written correctly, and only then involve the module; on the module side, first confirm the buffer memory received them, and only then look at whether the axis moved. This layered approach avoids endless fiddling with decimals and formats on the screen. For multiple axes, arrange each axis parameter area at a fixed offset and use one screen configuration with several addresses, which cuts the maintenance effort considerably.

8. References

The general requirements for programmable controllers and their I/O and communication functions follow GB/T 15969.2 and IEC 61131-2, and programming languages and function block semantics follow GB/T 15969.3 and IEC 61131-3. The electrical connection, protection and earthing of industrial machinery follow GB 5226.1 and IEC 60204-1. Electromagnetic compatibility for adjustable-speed electrical drive systems is covered by GB/T 12668.3 and IEC 61800-3. Graphical symbols and terminal designations follow GB/T 4728, and where emergency stop or safety gates are involved, the safety-related parts follow GB/T 16855.1 and ISO 13849-1. The exact device numbers and retentive ranges are per the manual for the specific model.

9. Points to watch

⚠️ Three common traps:
(1) Pointing the screen address straight at the module buffer memory, bypassing the PLC-side conversion and interlocks, so values jump during a move;
(2) Getting the high/low order of the 32-bit word the wrong way round, so the position is off by tens of thousands and the operator re-enters it without ever finding the cause;
(3) Treating the input-field validation on the screen as a safety measure, so a mistyped soft limit still allows a start and the axis hits the hard limit.

Change parameters only with the machine stopped, read them back to verify, and test at low speed. Emergency stop, safety gates and hard limits must work independently of the screen and the positioning parameters, not rely on a greyed-out button.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL