IMDHMIControls LibraryShop main store

Troubleshooting

Troubleshooting a MicroLogix 1500 SCP that never updates

PLC programming Published 6 min read By IMDHMI controls team

Short answer

A MicroLogix 1500 SCP output that stays fixed while the raw input word moves is an execution fault: the processor is not in Run mode, or the rung sits in a ladder file that ladder file 2 never calls with a JSR. Fix the call first. Then the default raw endpoints, 6241 counts at 4 mA and 31206 counts at 20 mA, scale to 0 to 100 with Scaled Min 0 and Scaled Max 100.

On this page
  1. Why a frozen output points at execution, not scaling
  2. The SCP setup that maps 4-20 mA to 0-100 percent
  3. The checklist that finds the dead rung
  4. Scaling a 12 mA reading on I:1.2 to 50 percent
  5. Keeping a decimal place in an integer word
  6. When the raw word itself never moves
  7. Questions asked

A MicroLogix 1500 SCP output that never changes while the raw input word moves is not a scaling problem: the instruction is not being solved at all. Two causes cover nearly every case — the processor is not in Run mode, or the SCP rung sits in a ladder file that ladder file 2 never calls with a JSR. Correct whichever applies and the destination word follows the loop on the next sweep of your 4-20 mA simulator. The scaling itself is then four constants: with the input card's default raw data format, the instruction maps the word straight to percent. Below is the reason the symptom points at execution, the exact SCP setup, the checklist that finds the dead rung, and a worked mid-loop point.

Why a frozen output points at execution, not scaling #

Watch the two words online in RSLogix 500. If the input word changes as you drive the loop, the module, its channel configuration and the field wiring are already doing their job, because the data has reached the data table. An SCP that is being solved cannot hold one output while its input changes: the destination is recomputed from that word and four constants on every scan the rung is true. Moving input plus frozen destination has one meaning — the rung never executes.

Keep one hand on the pump while the word is stuck: if this level starts and stops a pump, do not let that logic run from the frozen word yet, because it reads as a believable tank level. Leave the hard-wired low-level cutout in the pump circuit until the scaling tracks again.

The SCP setup that maps 4-20 mA to 0-100 percent #

Enter the instruction with the raw channel word as the input and the destination in an integer file:

SCP
  Input       I:1.2
  Input Min   6241
  Input Max   31206
  Scaled Min  0
  Scaled Max  100
  Output      N10:2

I:1.2 is channel 2 of the first I/O card in this example; match the address to your own slot and channel. With the default raw data format the nominal word is 6241 counts at 4 mA and 31206 counts at 20 mA — 31206 divided by 5 is 6241.2, so the live zero sits one fifth of the way up a span that rises from zero current, and Input Min is where that 20 % offset gets removed. Where a program already uses SCL, the same mapping comes from a rate and an offset instead; the SCL rate and offset calculation for a MicroLogix input shows that arithmetic.

Check which data format the card is configured for before trusting those constants. Under the scaled-for-PID settings the same current arrives pre-scaled, and neither endpoint describes the word anymore:

Card data setting Word at 4 mA Word at 20 mA
Default raw counts 6241 31206
Current, two implied decimals 4000 20000
Percent, two implied decimals 0 10000

With the card set to a percent format the word already runs 0 to 10000 and needs only an implied-decimal convention, not an SCP; the scaled-for-PID percent range configuration notes cover how those words map.

The checklist that finds the dead rung #

Work in order; the first two items clear most cases.

  1. Put the processor in Run mode. Ladder logic is solved only in Run. In Program mode, or while a fault holds the CPU, the data table keeps whatever the last download left, so the destination cannot move however right the constants are.
  2. Make the SCP rung unconditional for the test. Any condition ahead of the instruction — a first-scan bit, a handshake from the operator panel, a pump-running bit — that evaluates false leaves the instruction unsolved even in Run. Strip it, test, then restore it.
  3. Watch both words together. Display the input word and the destination side by side and sweep a 4-20 mA simulator across the loop. A raw word that follows the simulator with the destination frozen confirms the execution fault; both words frozen sends you to the module checks in the last section.
  4. Locate the rung's ladder file. Ladder file 2 is the main program file, solved every scan. A rung in any other file executes only while a JSR calls that file.
  5. Add the missing JSR. In ladder file 2, on a rung with no conditions, enter a JSR whose file number is the ladder file holding the SCP — for example, a JSR to file 3 when the scaling lives in ladder file 3. This missing call is the classic cause of your exact symptom: the analog word moves, the file with the scaling never runs, and the output never changes.
  6. Prove it at the endpoints. Back in Run, sweep the simulator again: the destination should climb from about 0 at the low end to about 100 at the high end, passing 50 near mid-loop — the worked point below shows what the numbers should read.

Scaling a 12 mA reading on I:1.2 to 50 percent #

The case: your simulator parked at mid-loop, the default raw format, and the setup above.

Inputs:

  • Input Min 6241 counts — the nominal word at 4 mA, default raw data format.
  • Input Max 31206 counts — the nominal word at 20 mA, same format.
  • Scaled Min 0 and Scaled Max 100 — the percent range wanted at the output.
  • Applied signal 12.0 mA — mid-loop, half the span above the live zero.
  • Expected raw word 18724 counts — half the raw span above the low endpoint; the card delivers whole counts, so 18723 is equally acceptable.

The rule: SCP interpolates linearly — the input word minus Input Min, divided by Input Max minus Input Min, multiplied by Scaled Max minus Scaled Min, plus Scaled Min.

The arithmetic:

raw span      = 31206 - 6241     = 24965 counts
rise          = 18724 - 6241     = 12483 counts
scaled value  = 12483 x (100 - 0) / 24965 + 0
              = 1248300 / 24965
              = 50.0

The result: N10:2 reads 50 at 12 mA.

The decision: grade the scaling at all three points against one unit — one percent of span, about 250 counts. Readings within 1 unit of 0, 50 and 100 mean the constants and the execution are both good; stop there. A destination still frozen while the input word shows 18724 counts sends you back to the checklist, because the rung is still not being solved. Points that move but miss by more than 1 unit mean the nominal endpoints do not match your channel: record the actual words at both ends with the simulator and enter them as Input Min and Input Max.

Keeping a decimal place in an integer word #

N files hold whole numbers, so a 0 to 100 range moves in 1 % steps. For tenths, set Scaled Max to 1000 and read the word with one implied decimal: 254 stands for 25.4, and the loop's resolution stops hiding behind the integer format. Hold the convention everywhere — comparisons, the data table and whatever displays the value must all agree that the word is in tenths.

When the raw word itself never moves #

If the input word sits still while the simulator sweeps, no SCP setting can help, because the data never reaches the data table. That is the module-side fault — configuration, wiring or the card — and the troubleshooting steps for a 1769-IF8 that shows no readings on a MicroLogix 1500 walk through it. Clear that first; the checklist above only applies once the input word tracks the loop.

Questions asked

What does the JSR in ladder file 2 need to call the SCP rung's file?

One operand: the file number of the ladder file holding the SCP rung, placed on a rung of ladder file 2 that has no conditions. A subroutine executes only while its caller is active, so a JSR buried inside another file that file 2 never calls leaves the rung just as dead as before. After the download, open the program online in RSLogix 500, confirm the JSR rung and the SCP rung both show as true, and watch the destination word before adjusting any constants.

Can a PID instruction scale the analog input instead of SCP?

It can act as a scaler. Point the instruction's process variable at the raw input word, set its ranges so the scaled value spans 0 to 100, and use that scaled value rather than the control output. Programmers sometimes do this to reuse a loop that already exists in the file. For scaling alone, SCP is the cleaner tool: one instruction, four constants, and no tuning parameters left behind in the program.

How do I compare a pump start point against a value with one implied decimal?

Scale to 0 to 1000 and treat the word as tenths of a unit. A pump that must start at 35.0 percent is a compare of the SCP output against 350, and its stop point is entered the same way. Anything that displays the word divides by 10 so an operator reads 35.0, and the alarm setpoints follow the same convention so every consumer of the word agrees on the units.

Are the nominal raw endpoints exact on every channel?

They are nominal values for the default raw data format, and channel-to-channel tolerance can leave a real card a few counts off at each end. For a pump start-and-stop band several percent wide, the nominal constants are close enough. When the reading has to agree with a reference gauge or a tight alarm, drive both endpoints with a simulator, record the stable words, and enter those as Input Min and Input Max.

Keep reading

  • How-to

    Set up a CLICK PLC 4-20 mA pressure trip with a relay output

    Wire the two-wire loop into channel 1 of a C0-04AD-1, set that channel to 4-20 mA with 4 mA scaled to 0 PSI and 20 mA to 300 PSI in DF1, and drive relay output Y1 from Set and Rst coils that trip above 250 PSI and release below 230 PSI, with a loop-fault test below -10 PSI.

    PLC programming

  • Troubleshooting

    Troubleshooting S7-300 analog output stuck at 25 mA

    A 4-20 mA channel on a 6ES7332-5HD01-0AB0 converts 0-27,648 counts to 4-20 mA, so fixed readings of 25 mA and 3.2 mA cannot come from scaling arithmetic. Read the output word online: if it differs from the scaling block's result, a competing write owns the channel; if it matches, the downloaded configuration or the current loop is at fault. Check the block, then the word, then the loop, and stop at the first failure.

    PLC programming

  • Troubleshooting

    Troubleshooting SM1232 short circuit on 4-20 mA analog outputs

    A four-channel SM1232 output that reports Short circuit only after a second 4-20 mA actuator is connected has a loop-topology or configuration cause, not a defective module: measure negative-to-negative resistance between actuator pairs with the field wiring disconnected, set every channel explicitly to 4-20 mA current mode, and compare full-scale loop voltage demand with the module's datasheet load limit before replacing hardware.

    PLC programming

Why S7-1200 timer ET never exceeds PT in ladder logic