IMDHMI Controls Library
Build the logic. Keep the line running.
Practical answers for the engineers who program, wire and troubleshoot PLCs, I/O, industrial networks and drives.
Read the latest articlesLatest articles
Troubleshooting
LatestWhy an IM154-8FX says PROFINET IO module removed then returns
A 16#3951 loss followed within the same second by a 16#3854 return on an IM154-8FX is an intermittent availability fault, not a physically removed module. On plants where every loss lands during motor starter switching, treat it as a supply dip, grounding or cable-routing problem. Read the station number and input address from the buffer, record the control supply with a time-correlated instrument, and correct the demonstrated electrical cause before ordering hardware.
Explainer
Why a SINAMICS S120 digital output cannot carry PWM servo position
A SINAMICS S120 digital output is switched by the drive firmware's cyclic task, so any pulse train on it jitters by whole task cycles and cannot serve as a PWM or pulse/direction position command. Keep the precise axis on the S120 under the S7-1500, and command the gripper servo with a pulse-output module on the S7-1500, an S7-1200 pulse/direction positioner, or a stored motion task started by a 24 V level.
Troubleshooting
Why a CODESYS EtherCAT master loses synchronicity
An intermittent lost synchronicity fault on a CODESYS EtherCAT master is a missed cyclic deadline inside the controller, not a cable fault. In the reported case, a supervisory OPC UA client that opened and closed its channel on every transaction triggered the losses; keeping that channel open stopped them. Doubling the cycle to 10 ms and setting a static address changed nothing.
How-to
Read EtherNet/IP module register data with explicit messaging
The iR-ETN remote I/O adapter exposes each analog module's error code through its Module Register CIP object: class 112, instance set to the module's slot number, attribute 16. A Studio 5000 MSG explicit message reads it in 2 bytes; the cyclic I/O connection never carries this register.
Troubleshooting
Why a CLICK PLC DS register will not reset from a subroutine
The DS register keeps its value because rungs inside a CLICK PLC subroutine execute only on scans where the main program calls that routine; an uncalled routine leaves every register, coil and timer frozen at its last value. Move the reset Copy of constant 0 into the main program, placed after any rung that increments the register, or guarantee the call is scanned every cycle.
How-to
How CODESYS FBD accepts two box outputs on one box
Yes, CODESYS FBD accepts two outputs from separate boxes on different inputs of one box, but the wiring order decides whether the editor takes the branch. Connect the second source to the destination first, attach the first source to the second source's second input connector until the plus sign appears, or assign the shared result to an intermediate variable and feed that variable to both inputs.
Explainer
Why the S7-1500 uses distributed I/O instead of rack expansion
The S7-1500 has no IM 360/361-style central rack expansion. You grow it with distributed I/O over PROFINET or PROFIBUS: ET 200MP stations take up to 30 signal modules each, and the number of IO devices your CPU can address runs from 64 on a CPU 1511 to 512 on a CPU 1517 or 1518.
Explainer
Why a millivolt sensor reads zero on a 0-10 V PLC input
The sensor is not broken: 0-20 mV occupies 0.2% of a 0-10 V input, which a 10-bit converter expresses as roughly two counts, so the raw value parks at the bottom of the scale. Condition the signal to 4-20 mA or 0-10 V with a millivolt-input conditioner, or use an input documented for millivolt signals; rescaling counts or stepping up to 12 bits does not recover the measurement.
Selection guide
Choosing a Python 3 library for Modbus TCP reads from a PLC
For a Productivity 2000 or any PLC with a Modbus TCP server, read it from Python 3 with pyModbusTCP or pymodbus over port 502; a current cpppo release also runs on Python 3. Prove the TCP path, then verify one mapped register's area, offset, width and word order against the live value before polling the whole map.
Explainer
Why an S7-1200 does not need a second PLC to reach SCADA
No. An S7-1200 talks to the SCADA runtime directly over Ethernet through a native S7 driver or Modbus TCP, so no second PLC or gateway hardware sits between them. The Modicon M241 in the cabinet either runs its own machine or copies values; trace each SCADA tag's connection to the controller that owns it, then give the S7-1200 its own direct connection.
How-to
Read DP slave diagnostic addresses with SFC51 on an S7-300
SFC51 RDSYSST with SSL ID 0x00B4 selects a DP slave by its configured diagnostic address, and that address never comes from the 0x0092 station list: station numbers and diagnostic addresses live in separate addressing domains with no conversion between them. Read the address from the documented 0x00B status list family or from the hardware configuration, then call 0x00B4 once per address.
Explainer
How digital inputs reach a Modbus TCP SCADA read
A digital input reaches a Modbus TCP SCADA read through three matched pieces: the input module's on and off voltage thresholds fit the measured field signal, the rack's Ethernet I/O processor runs the Modbus TCP slave, and the SCADA driver's register reference lands on the channel's documented place in the slave's data map. Miss one and the read returns nothing, an exception, or the wrong channel.