IMDHMIControls LibraryShop main store

Troubleshooting

Why an A1SCPU24-R2 has no ladder PID instruction

PLC programming Published 6 min read By IMDHMI controls team

Short answer

The A1SCPU24-R2 is an AnS-series CPU, and that generation exposes no PID instruction for ladder or instruction list, which is why GX Developer's instruction help shows no PID entries. A hard-coded analog output on this CPU means the pressure loop never existed in the program. Recover it with an external PID controller fed from the analog output, move the loop to a Q-series CPU with documented PID instructions, or attempt the legacy 8086-assembler Microcomputer route only with the original source in hand.

On this page
  1. Confirm the family before you trust the empty help
  2. Trace what writes the analog output
  3. Separate a dead loop from a signal-path fault
  4. Worked example: a valve output frozen at 12 mA
  5. Choose the replacement path
  6. Verify the rebuilt loop before handback
  7. Questions asked

The answer is architectural: the A1SCPU24-R2 is an AnS-series CPU, and that generation exposes no PID instruction you can call from ladder or instruction list. An empty instruction help under PID in GX Developer is the expected result for this CPU, not a gap in your search. Mitsubishi provided PID on this generation only as a Microcomputer program: 8086-assembler code held outside the ladder and invoked as a subroutine from the main program, so a program that holds one constant on the analog output never contained a pressure loop. What your cross-reference finds picks between three recovery paths: an external PID controller, a newer CPU with documented PID instructions, or the legacy Microcomputer route only with the original source in hand.

Confirm the family before you trust the empty help #

The A1SCPU24-R2 belongs to the AnS generation of the A series, and the common programming manual for the A-mode CPU family covers the A1SCPU subset models. That generation's instruction set contains no PID instruction for ladder or instruction list; Mitsubishi documents PID control instructions, with programming examples, for the QnA, Q and L generations instead. The symptom is the specification: an AnS program has no PID entry for instruction help to find.

Check the identity anyway, because the A-form-factor chassis housed more than one CPU generation over its life. Read the model printed on the CPU module and the PLC type the loaded project reports in GX Developer. If that PLC type turns out to be a QnA-mode body, the diagnosis changes, because the QnA generation sits inside the documented PID instruction set.

Trace what writes the analog output #

  1. Read the output address off the rung that feeds the analog output channel, and note which channel on the card it lands on.
  2. Run a cross-reference or device search on that address and list every instruction that writes it.
  3. Classify each writer: a constant, a register some other routine computes, an operator entry, or a value received from another device.
  4. Monitor the address live in GX Developer while the process runs in a safe state, and compare the live value with the writer you identified.
  5. If the only writer is one constant, the takeover case, the program never modulated this output, and no GX Developer setting will change that.

If the writes you find sit in a subroutine, confirm the routine is actually called every scan; a subroutine that never executes leaves the output at its last written value, the same failure shape behind a Unity Pro subroutine SR section that never executes. A configured output card is only a signal path. It adds no control algorithm, and it cannot tell you whether a loop ever existed.

Separate a dead loop from a signal-path fault #

Before touching wiring, establish what the signal means to the rest of the machine. A direct command to a valve and a setpoint fed to a separate controller are different architectures, and the same constant means opposite things in them.

Observation Reading Next move
Output address never changes, and one constant writes it No loop ever existed in this program Take a replacement path
Output address changes but the field signal does not Channel range, wiring or module setup Check the card configuration and loop wiring
Field signal changes but pressure does not Receiver or actuator side Check the controller or valve the signal lands on
A separate controller modulates while the PLC output sits at a constant The constant is that controller's remote setpoint, and the loop lives outside the PLC Leave the PLC program alone and service the controller

The last row matters during a takeover: the PID control a customer remembers may have lived in a panel controller all along, with the PLC output doing nothing more than feeding its setpoint.

Worked example: a valve output frozen at 12 mA #

The inputs, with their sources:

  • the analog output card installed behind the A1SCPU24-R2, its channel set to 4-20 mA signaling — the range this example assumes, so read yours off the card configuration;
  • a GX Developer device monitor that shows the output address never changing while the process runs;
  • a cross-reference that finds exactly one write to the address, a constant loaded with the example value of 12 mA.

The rule in words: percent of span equals output minus zero, divided by span, times 100, where the signal's zero is 4 mA and its span is 20 - 4 = 16 mA.

(12 - 4) ÷ 16 × 100 = 50

The fixed output holds the valve at 50% of span. Because the only writer is a constant, the correction is 0 mA at every pressure error the process can produce — the term that should move the valve does not exist anywhere in the program.

The decision, with its threshold: a cross-reference that finds a single constant writer means there is no loop to recover on this CPU, because there is no ladder PID instruction to add one with — commit to a replacement path. A cross-reference that finds a computed writer sends you chasing that logic before any hardware purchase.

Choose the replacement path #

An external PID controller. Land the pressure transmitter on a stand-alone controller and let it drive the valve, with the PLC output demoted to a remote setpoint or retired. Take this path when the transmitter and valve can be re-landed and the controller accepts a setpoint from the PLC; the pairing to specify is exactly a remote setpoint the analog output can drive, and Selecting a PID controller with remote setpoint and PV retransmission works through that specification.

A newer CPU with documented PID instructions. Take this path when the loop must live in the PLC, or when more loops will follow. The Q series is the generation that succeeded this chassis and the first to evaluate; Selecting a Mitsubishi MELSEC PLC family for your application sets that choice out family by family. Plan for the migration details: I/O addressing and analog module setup change between generations, and the PID instruction there returns a real number that must land on the output card as counts — Scale a PID real output to analog output counts shows that conversion.

The legacy Microcomputer route. The original loop was 8086-assembler code assembled with a DOS-era toolchain and invoked as a subroutine from the main program. Take this path only when the original source, a toolchain that still targets this CPU generation, and someone able to maintain the code are all in hand; without the source the route is closed, because the code is invisible in GX Developer, which displays only the ladder.

Verify the rebuilt loop before handback #

  1. Confirm the controller or the new CPU sees the pressure measurement and the setpoint you intend.
  2. Step the setpoint a small amount with the process in a controlled commissioning state, and confirm the output moves and the valve follows in the correct direction.
  3. Watch pressure and output together, and confirm the loop corrects a deviation without saturating or cycling.
  4. Repeat the input-to-output walk-through after any CPU migration; a changing internal value alone proves nothing about the field signal.

One safety note belongs here: make the direction tests with the process in a controlled commissioning state and an operator able to stop it — never prove a loop's action on a running machine that depends on that valve.

The exit condition for every path is the same: measured pressure, setpoint, computed output, field signal and valve motion all agree before the process returns to normal service.

Questions asked

Can I build my own PID in ladder on this CPU instead?

You can assemble a crude loop from compare, add and scaling instructions, but nothing in the AnS instruction set integrates error over time the way a real PID instruction does, and hand-built loops on this generation are hard to tune and easy to leave unstable. Treat that as a stopgap for non-critical duty; take one of the three real paths for anything that modulates a process valve.

Could the constant on the analog output be a setpoint rather than a fault?

Yes, and settle that before buying anything. If a stand-alone controller receives that signal as its remote setpoint and closes its own loop around the pressure transmitter, the constant is intentional and the PLC never needed a PID instruction. Watch the controller's process value, setpoint and output while the process runs: if they modulate with pressure, the loop lives there and the controller is the thing to service.

What would it take to keep the A-series CPU and restore PID on it?

Three things must all be in hand: the original Microcomputer source, an assembler toolchain that still targets this CPU generation, and a working download path to the controller. GX Developer displays only the ladder, so the Microcomputer code cannot be reconstructed from it after the fact. Without all three, close that route and move the loop to an external controller or a newer CPU.

What should I match up when choosing the external controller?

Match the controller input to the pressure transmitter signal, the controller output to the valve actuator, and the remote setpoint input to whatever the PLC analog output can supply. The setpoint pairing decides whether existing wiring stays: a controller that accepts its setpoint on the same 4-20 mA signal the PLC already produces turns the constant into an adjustable setpoint instead of dead code.

Keep reading

  • Troubleshooting

    Start a PID ramp soak profile from ladder logic

    The profile never starts from ladder because the JMP stage handoff leaves the old stage on for three more scans, which swallows the one-scan PD pulse that must set the ramp/soak start bit. Replace the jump with SET and RST stage logic, then verify bit 11, the +33 octal control word and the +35 error flags before touching the PID instruction or table values.

    PLC programming

  • How-to

    Cascaded PID loops on a Do-more without a Cascade mode

    The Do-more PID has no Cascade mode and no setpoint pointer: cascade is built in ladder by moving the outer loop's Output into the inner loop's SP every scan while cascade is selected, writing the local setpoint only on change, interlocking the two loops' Auto/Manual states, and preloading the outer manual output before each transfer. The C-more reaches the values through native R memory, not the PID structure.

    PLC programming

  • Explainer

    How a ladder rung translates to Boolean logic

    A series rung with a normally open contact on Input_1 and a normally closed contact on Input_2 is the Boolean expression Output_1 = Input_1 AND NOT(Input_2): series contacts are AND, parallel branches are OR, and a normally closed contact tests the PLC input value for false, not the field switch's construction. Write the required behavior as a four-row truth table before drawing or changing any contact.

    PLC programming