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
How-to
LatestRead 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.
Troubleshooting
Why stored PLC pointers break after an online change
An online change can relocate the variables a program already stored addresses for, and the stored pointer keeps the old address, so the next dereference touches the wrong memory. Re-evaluate every pointer with ADR after the change and before the next dereference, or avoid the online change and run a full download where pointers are stored permanently.
Explainer
Why CODESYS variables do not map to Neuron outputs like GPIO
A declared CODESYS variable drives a Neuron output only after you bind it to that channel in the device's I/O Mapping tab. The outputs are not GPIO: the licensed UniPi Neuron for CODESYS driver exposes them as device channels over Modbus TCP, and channels whose values span more than one register go through the bundled Neuron library.
Troubleshooting
Why an S7-1500 needs an adapter for PLC-5 remote I/O
An S7-1500 cannot scan Allen-Bradley Remote I/O directly: its ports speak PROFINET, Ethernet and, on some hardware, PROFIBUS DP — never the PLC-5-era Remote I/O protocol. Keep the existing I/O by swapping a FLEX I/O node adapter for the PROFIBUS DP adapter 1794-APB, or by adding a gateway with a Remote I/O scanner side, and verify every installed module first.