6 min read · Automation

An old packaging machine still produces well, but its HMI (the screen used to command the machine and view its status) is failing more often and spare parts cannot be found. The manager wants to replace the screen during a long holiday. But nobody knows where the original program files are, who last changed them, or whether, if the machine does not run after the change, it can be rolled back. In this kind of job, the cost of writing the program is the small part. What causes mistakes is what was not surveyed beforehand.
Survey the machine, documents and edit rights
Start by making a list of what exists. CISA (the US cybersecurity agency) guidance on asset inventory for OT systems (the control systems on a factory floor) says that without an inventory, an organization does not know what it has or what it must look after. It also recommends recording the firmware or software version, and how to back up each device.
- Model and version of the PLC (the machine's main controller), the HMI, the inverters and the servos
- Where the latest program file (source) is, who has it, and whether it matches what is actually running
- Passwords and edit rights for the program: who holds them, and whether the original contractor can still be reached
- The software and license used to open the program, including the version
- Electrical drawings, the I/O signal list and the machine manual
- Spare parts status: is there a direct replacement, and how many are left in stock
Back up and test the restore before you start
NIST SP 800-82 Rev. 3, the guide to OT system security, says that making, maintaining and testing backups is a key outcome of the recovery stage. It recommends keeping an inventory of what is backed up, including installation media, licenses and configuration data.
The same document recommends checking the integrity of backup files, keeping a copy in another location, testing the restore as part of the contingency plan, and putting the backup step in the change management process. In short, a backup that has never been restored does not count as a backup.
- Back up the PLC program, the HMI project, the inverter parameters and the values currently tuned on site, before every change
- Photograph the wiring and the wire number labels before disconnecting anything
- Name files with the date and version, and keep them in at least two places
- Rehearse the restore on a spare device or on a simulator if you have one
Set the work order and the rollback condition
NIST SP 800-82 Rev. 3 also recommends testing changes in a test environment before putting them into the live system, if possible. It notes that some changes can be made only during planned machine downtime, so the downtime window should leave room for rolling back.
- Agree the start and end of the downtime window with production
- Back up and check the files, then make the change
- Test the signals and operating modes against the list
- At the agreed decision time, if it has not passed, go back to the old system immediately, and do not keep trying more fixes until time runs out
- Once production runs, follow the results for the first period, and keep the new files in the same place as the old ones
Hypothetical example: a hypothetical factory replaces the HMI of a packaging machine during an 8-hour downtime. There are 40 related I/O signals and 3 machine modes: automatic, manual and jog. That means 40 × 3 = 120 items to check. At 1 minute per item, that is 120 minutes, or 2 hours. Time plan: check the backup files 1 hour + replace the screen 2 hours + test 2 hours = 5 hours. Set the decision point at hour 5. If it does not pass, go back to the old system, which has been rehearsed and takes about 1.5 hours. That is 5 + 1.5 = 6.5 hours, leaving a reserve of 8 − 6.5 = 1.5 hours. All figures are hypothetical, to show the way of thinking.
Training, handover and follow-up after production starts
- Train the machine operators on every shift, so they see the new screen and what has changed before the first production day
- Hand over the new files, the edited versions and a list of the changes
- Update the manual and the labels on the machine to match the new setup
- Follow up on faults in the first period, and schedule a review after startup
Checklist before the downtime day
- You know where the latest program file is, and it matches the machine that is running
- You have all the passwords and edit rights for the program
- Backups are in two places, and a restore has been rehearsed successfully
- The new spare parts and equipment have arrived and been inspected
- The signal and mode test list is ready, and someone signs off the results
- The rollback decision time and the rollback steps are set in writing
- Production knows the downtime window and the new restart time
Who it suits, and the limits
This kind of planning helps control the effect on production and makes the handover clear. It suits machines that are still worth using but whose controller or screen is getting hard to find parts for.
The limit is that some systems have no source or no direct replacement part. The machine must be surveyed on site before the work and time can be estimated. Sometimes the survey may say that replacing the whole set is better than fixing it piece by piece.
Talk to BT San about a machine survey
If you have an old machine you want to improve, prepare the machine model, photos of the control cabinet, any electrical drawings or manuals you have, and the downtime window the factory allows. Then talk with the BT San team to book a machine survey before assessing the approach.




