PLC programming
Earlier articles
Troubleshooting
TIA Portal v14 cannot go online with an S7-1500
Only a complete power cycle restores engineering access: a STOP-to-RUN transition or a port change leaves the failed download service in place. Power down under your site's procedure, confirm recovery with a read-only online session before any download, then capture CPU firmware, TIA Portal version and download details so the next occurrence can be classified as project-triggered or a software defect.
How-to
Structure dock door conveyor interlocks in Studio 5000
Run the conveyor on three explicit states — Ready, Running and Restart-required — with door-open, truck-present and curtain-clear as permissives. Truck departure mid-cycle stops the conveyor and latches a manual restart; the light curtain's protective stop stays in safety-rated equipment. Fix the door sensor before debouncing, then size the timer to the measured flicker — 600 ms against a 240 ms example.
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.
Troubleshooting
SLC 5/03 pulse sequence logic will not run
Your sequence logic is probably fine: the ladder file holding it is never called from File 2, and green highlighting on both OTL and OTU shows the bit's state, not that both rungs execute. Call the file, one-shot I:8.78 with OSR, latch a sequence bit, and clear it only after the last pulse on O:7.4.
Selection guide
Sizing a CompactLogix to Replace Four SLC 500 Processors
With all 35 I/O modules staying in the SLC chassis behind four 1747-AENTR adapters, the CompactLogix local-bus module limit never applies. Size the controller on CIP connection count and converted-code memory: the four adapters are four connections, a light load, so memory for the merged programs is the binding constraint. Start with a 1769-L30ER offline, verify the four-adapter configuration, and step up one size only if memory headroom falls short.
How-to
Siren ring count ladder logic with a timer and counter
Edge-detect each of the three signals, move its ring count into a stored tag once, and run the siren from two timers — one for sound, one for the pause between rings — while a counter totals completed rings. With the worked sound and pause presets, the three patterns sit 2.5 s apart, and a new request is accepted only while the sequence is idle.
How-to
Sequencer valve control with a table-driven PLC program
Write the sequence as data, not as rungs: one output command word per state in the binary file, a pointer word selecting it through an indirect MOV, and a second table of limit-switch patterns that proves each state before the pointer advances. A timer alone never advances a wash step; the feedback word must equal the commanded pattern or the step is a fault.
How-to
Scaling a 4-20 mA analog input to engineering units in CPM2 ladder
Scale with y = x × 120 / 9999 - 20: the raw analog word reads 0 at 4 mA and 9999 at the top of the loop, so DM1010 stores -20 °C and 100 °C at the ends of the loop. Multiply before dividing into a 32-bit-wide product that holds 1,199,880, drive the rung with the Always-On bit, and read the destination as signed. If DM1010 only needs 0-9999, MOVE the raw word and skip the math.
Troubleshooting
S7-1200 shows link lights but TIA Portal cannot connect
Green Link and blinking Rx/Tx on the S7-1200's PROFINET port prove cable and traffic only, never a working TIA Portal connection. The fault is almost always the wrong PC adapter or a subnet mismatch: select the cabled interface as the S7ONLINE (STEP 7) access point, scan Accessible devices, give the PC a unique address in the CPU's subnet, then go online. If the scan shows an unconfigured CPU, assign its IP address and PROFINET name first, then connect.
How-to
Run Logix 5000 PID loops in a periodic task
No. Thirty PID instructions in a FOR loop in a continuous task, with no timer, execute once per scan at a varying interval, so their loop update time setting never matches reality. Move the routine into a periodic task whose period equals the shared update time, and write that same period into every loop's .UPD.
How-to
Port a PLC-5 filter routine to ControlLogix structured text
The filter is a first-order lag whose only state is the previous filtered value. Give every filtered signal its own instance of one filter UDT that also holds the exponent and coefficient, translate the rungs to ordered assignments in a periodic task, and preload the state on the first pass. Prove the port with a step: 63.2% of the change after one time constant, about 95% after three.
Troubleshooting
PLC-5/80E loses scan list on remote I/O after power cycle
Auto-negotiate selected on Ethernet Channel 2 of a Series F Revision A PLC-5 clears the chassis scan list on the remote I/O scanner channels whenever the processor power cycles. Disable auto-negotiate and hard-set 100 Mbps full duplex, or flash Revision A.1 or newer; Auto-Config only rebuilds the list after each event.