MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you modify a program online in GX Works?
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 you modify a program online in GX Works?

An online modification (online write) changes part of the program inside the PLC while it stays in RUN and the machine keeps working. GX Works2/3 both support it, on the condition that the offline project matches the program inside the PLC and that you understand the risk of "write during RUN" taking effect instantly. The sections below cover the preconditions, the procedure and the risks.

1. Three preconditions for an online write

ConditionRequirementIf not met
Project consistencyThe offline project must match the PLC program exactly (or read the PLC program out first)The software reports a mismatch; you are pushed into a full write or a forced merge and may overwrite a colleague's changes
Compiled / convertedRun conversion (F4) after editing until there are no errorsThe write is refused, or old compiled results go in
Model supportFX3U and above, iQ-F / iQ-R support write during RUNOlder models require STOP, so the machine stops anyway

Before touching someone else's program: use "Read from PLC" first (program + parameters + device comments), confirm the read-back project compiles, and only then edit. That is the first rule of online modification.

2. The standard procedure

① Connect: Online menu → Current Connection Target, confirm the transfer setup (Ethernet uses the PLC's IP, USB selects the COM port), press "Communication test". ② Read: read the PLC program and compare with the local project. ③ Edit: change only the target network, add comments, convert (F4). ④ Write: Online → Monitor write mode (or tick "write program only / write during RUN" in the write dialog), and in the confirmation dialog tick only the modified step ranges. ⑤ Observe: monitor the edited network and confirm the outputs behave as expected.

GX Works3's monitor-write mode is the smoothest: monitor and edit at once, and after conversion the write range automatically targets the change.

3. Confirming the write range — the critical step

Read the range-confirmation dialog item by item: tick only the modified step ranges; if parameters were not touched, do not tick parameters. Ticking a whole segment equals a full overwrite — the parts a colleague changed online but has not archived yet will be gone. Immediately after writing, read the PLC program back and archive it (see the backup article) so that local project = live program.

4. Matching online edits to machine safety

Type of changeRecommended timingReason
Adding monitoring, comments, alarm logicAny time during RUNNo outputs are driven, no risk
Changing timer/counter setpointsDuring RUN, then verify the motion onceValues take effect instantly; confirm the new rhythm
Changing output interlock logicMachine idle or in manual modeNew logic takes effect the instant it lands; a missing interlock beat may cause false motion
Changing parameters (device settings, I/O assignment)STOP or machine down; most need a PLC restartParameters only take effect reliably after reset
Major restructuringFull write with machine stoppedLong writes during RUN are slow and risky

5. Common errors and how to answer them

"PLC and offline project do not match": read out and compare the differences first (project → difference list), and write only after confirming every difference is yours. "Write failed / communication error": check the cable and IP, and whether the USB driver is installed. "Write during RUN not supported": older A-series or some compact models — switch to STOP. "Key word / password protected": ask the program owner for the password; never bypass it.

6. Version discipline with multiple maintainers

The biggest risk of online editing is not technical, it is losing control of versions. Set three rules: ① whoever edits must read the PLC program back and archive it with a date and a change summary in the filename; ② only the latest version lives on the project server, local copies do not circulate; ③ any change touching a safety interlock must be followed by an E-stop and reset verification run.

7. Notes

Online modification is essentially "differential writing": the software compares the offline project with the PLC program by step range and writes only what differs. Once you see that, the reason "project consistency" is a precondition becomes obvious — with the wrong baseline, the wrong content gets written.

8. References

Operation follows the Mitsubishi GX Works3 Operating Manual and the MELSEC iQ-F FX5 User's Manual (Program Design) sections on write during RUN (SWriting); safety during commissioning follows GB 5226.1 / IEC 60204-1.

9. Cautions

⚠️ Three traps to avoid:
① Forcing a write while the project mismatches the PLC and overwriting a colleague's online changes;
② Ticking parameters in the write range — after the restart the I/O assignment has changed and the machine alarms;
③ Writing interlock logic during RUN without verifying the E-stop, at the very moment a cycle was running.

Any change involving safety interlocks is done with the machine stopped and the mode switch on "manual"; run an empty cycle before returning to automatic.

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