IMDHMIControls LibraryShop main store

Explainer

What converting an unknown PRG3 file to ladder logic needs

PLC programming Published 7 min read

Short answer

A PRG3 file converts to ladder logic only after you establish which software and version created it. Gather the complete listing, the variable and I/O lists and the instruction descriptions, map each documented operation to ladder, verify against the machine's operating sequence, and leave anything undocumented unresolved rather than guessing.

On this page
  1. What the letters PRG3 do not identify
  2. The five inputs and what each settles
  3. A worked mapping, arithmetic shown
  4. Run the conversion as a documented translation
  5. Verify against the machine's sequence, not the file
  6. The decision for each case
  7. Questions asked

A file labeled only as PRG3 will not convert to ladder logic, and no utility will change that: the extension names no documented format, so no tool can know which instruction set, scan model, data types or retention behavior the bytes carry. Conversion becomes possible once five inputs sit on the bench: the software and version that created the file, the complete program listing, the variable and I/O lists, a description of each instruction's meaning, and the machine's documented operating sequence. With those, converting is a mapping job with checkable arithmetic. Without them, it is guessing against a machine that will obey whatever the rungs actually say. This page sets out what each input settles, one worked mapping with the arithmetic shown, and the decision for each case.

What the letters PRG3 do not identify #

Three letters in a filename are not a format specification. Nothing in PRG3 states the processor family, the instruction list, the file structure or the scan model, and unrelated tools can use the same project extension for incompatible things. The consequence shows even inside one vendor's toolchain: in a reported case, GX Works 2 would not recognize a file whose type showed as FX Source as a project at all, and the fix ran through establishing the file's true origin, not through renaming it.

Import paths exist only where both sides are documented. GX Works3 documents an open-project feature for GX Developer-format projects, and that works because one vendor documents both formats and the mapping between them. No documented pair covers a file identified only as PRG3, which is why the decision begins with the creating software and version rather than with a converter.

The destination side does have a standard. IEC 61131-3 defines ladder diagram as one of its programming languages: rungs evaluate against the scan, and contacts energize or de-energize coils according to that evaluation. The standard defines the language your converted logic has to land in; it defines no file exchange between proprietary formats, so it cannot rescue an unidentified source file.

The five inputs and what each settles #

Input What it settles
Creating software, name and version What PRG3 means in this case, which export formats exist, whether a documented import path already covers the file
Complete program listing Every routine, branch, jump and dependency the converted logic must reproduce
Variable and I/O lists The basis for mapping source operands to real terminals on the destination
Instruction descriptions Whether each operation has a ladder equivalent, and what state it keeps through power loss
Documented operating sequence The acceptance reference the converted logic is verified against

The software name and version come first because they decide everything downstream: which export formats the tool offers, whether your destination toolchain already documents an import, and which manual describes each instruction. Versions matter as much as names, because file handling and instruction behavior change between releases of the same tool. The other four inputs come from the toolchain's manual set and the machine builder's documentation: the panel I/O drawing, the commissioning sequence, and the operator's account of normal and fault operation. A printed listing taped inside the panel door is worth more than a clean file nobody can open.

A worked mapping, arithmetic shown #

The mapping below is a worked example, not a recovered program. Suppose the source listing documents an agitator delay: a timer starts when the fill-complete input goes true, and the discharge valve output energizes from the timer's done bit. The listing gives the timer a constant of 80 on a 100 ms time base, so the intended delay is 80 × 0.1 s = 8.0 s.

The destination is an SLC 500, whose on-delay timer counts on a documented time base of 0.01 s. The preset follows from the intended time: 8.0 s / 0.01 s per count = 800 counts; checked backwards, 800 × 0.01 s = 8.0 s, exactly the documented delay. Copying the source constant instead of doing that division sets 80 × 0.01 s = 0.8 s, so the discharge valve would open 7.2 s early and nothing in the rung would look wrong.

Two documented facts travel with the number. If the listing marks the timer's accumulator as retentive through power loss, the destination element must be chosen and configured for the same retention, because a resetting timer turns one power blip into a skipped discharge step. And addresses come from the panel I/O drawing, not from the listing's convenience: in this example the fill-complete limit switch lands on I:0/3 and the discharge solenoid on O:0/4, with the timer at an element such as T4:2 — example assignments that only the drawing can confirm.

Converted timers are exactly where translated programs misbehave; the account of why converted CompactLogix timer ACC values jump after SLC migration is worth a read before trusting any translated timing element. The same operand discipline covers every constant in the listing — counter presets, compare limits, analog scaling values — and the knowledge-base page why DL-205 programs must match each operand's data format records how a mismatched data format corrupts a translated element that draws correctly.

Run the conversion as a documented translation #

  1. Inventory the listing: every routine, variable, I/O reference and state-dependent operation gets a line in a mapping worksheet.
  2. Describe each operation in implementation-neutral words — enabling condition, result, retained state, interaction with the sections around it — before drawing any rung.
  3. Confirm the destination hardware against the panel I/O drawing, then assign destination addresses; never derive them from the source listing's numbers alone.
  4. Implement section by section, keeping the traceability line from each source operation to the rung or rungs that realize it.
  5. Mark every operation whose meaning cannot be established as unresolved in a written exception list; an unresolved item blocks the cutover until documentation or a safely staged functional test settles it.

Do not translate by symbol resemblance. Two tools can draw a normally open contact identically while differing in how jumps, scan order and nested branches evaluate, and only the instruction descriptions settle which behavior the source actually had.

Verify against the machine's sequence, not the file #

The acceptance reference is the documented operating sequence: walk every input condition, output response, transition, interlock and retained state from the source documentation and watch the converted logic reproduce each one. Work in sections, and keep the safety boundary firm: before any test that energizes real outputs, disconnect or lock out the loads those rungs drive, because the worked example above shows a single time-base slip opening a discharge valve 7.2 s early — on a connected machine that is not a rounding error. Check the logic on the simulator and the module's output indicators while the loads are isolated, then re-check on real inputs before the machine returns to service.

Plan the cutover the way a migration is planned: scope what moves, test it, and keep a rollback path that can run the old program until the converted logic has passed its sequence test. Logic that reached you by translation rather than your own keystrokes deserves the same skepticism either way; the checklist for how to verify AI-generated PLC code before you trust it transfers to translated code unchanged.

The decision for each case #

Software and version identified, listing obtainable: convert by mapping. Assemble the five inputs, run the worksheet, apply the division shown above to every timed, counted and compared value, and clear the exception list to zero before cutover. The conversion succeeds because every element has a documented meaning to map.

Only the file, creator unknown: no conversion happens, and no tool should be trusted to attempt one on an undocumented format. The file becomes cross-reference material and the program is re-engineered from the machine's documented sequence and observed behavior. If the original controller still runs, read the program out with its own manufacturer software first — the approach in how to recover a SYSMAC S6 program before replacing the PLC is the pattern — and where even that road is closed by lost tooling, how to get PLC-5 logic out without an RSLogix 5 license covers the adjacent problem of getting legacy logic out at all.

Both formats documented: import through the vendor's documented path, in the GX Developer-to-GX Works3 pattern, then verify anyway. The import translates syntax; time bases, retention flags and data formats still take the per-element check.

The common thread: a PRG3 file converts exactly as far as its documentation reaches, and the exception list — not the file — tells you where that line sits.

Questions asked

Is there a utility that converts a PRG3 file to ladder logic automatically?

No documented utility imports a format identified only as PRG3, because no public format specification exists under that name. Conversion utilities work only where both the source and destination formats are documented, typically inside one vendor's toolchain. Establish which software and version created the file first, then look in that toolchain's manual set for an import path.

The original controller still runs its program. Do I still need to convert the PRG3 file?

No. Read the program out of the running controller with its own manufacturer programming software: that gives a complete, internally consistent listing with every operand and retention flag intact, which is stronger evidence than a stray file. Keep the read-back copy as the working master, treat the PRG3 file as cross-reference material, and secure that backup before any controller is replaced or powered down.

What should I do with instructions whose meaning I cannot establish?

List them in a written exception list and let each one block the cutover until it is settled. Close the gaps from the machine builder's documentation or from a functional test staged with the loads isolated so nothing can move. Never fill the gap with a rung that merely looks plausible; untranslated gaps fail at the worst moment, usually during a fault-recovery sequence nobody documented.

Does a vendor import tool remove the need for the per-element arithmetic check?

No. A documented import translates syntax and structure, but the destination still has its own timer and counter time bases, retention behavior and operand data formats. Run the same division on every timed, counted and compared value after the import, and check retentive flags element by element. The import shortens the mapping; it does not shorten the verification.

Keep reading

  • Selection guide

    Migrating a MicroLogix 1500 machine to a current PLC

    Quote CompactLogix as the baseline for the rebuild: Rockwell's migration reference gives the MicroLogix 1500 two documented destinations, MicroLogix 1400 or CompactLogix 5370 (L1/L2), and a low-volume machine rebuild does not justify the Micro850 route. Take the Micro850 only for high build volume, after the 11 uncovered inputs, serial Modbus, the drive interface and a trial CCW import are verified.

    PLC programming

  • Troubleshooting

    Opening a Micro/WIN 2.11 project in Micro/WIN V4.0

    Open the project in a Micro/WIN 2.1 editor, deselect Symbolic addressing, switch to the STL view and save; Micro/WIN 2.0 cannot read the 2.11 format, so its ERROR OPENING PROJECT message means the editor predates the file, not that the project is damaged. Then open the saved file in Micro/WIN V4.0 with PRJ selected as the file type and save it as a V4.0 project.

    PLC programming

  • How-to

    How to get RSLogix 500 through official channels

    Get RSLogix 500 or RSLogix Micro only from Rockwell Automation or an authorized distributor: sign in to the Product Compatibility and Download Center, download the release your controllers need, and activate it with a current license. File-sharing copies carry no entitlement and no verifiable signature, so they never reach a production workstation.

    PLC programming