PLC programming
Controller programming in ladder, structured text and function blocks, faults, backups and migration.
Latest articles
Troubleshooting
Trace an HMI command that never reaches the PLC output
When the screen shows a command but the machine does not act, walk five boundaries in order: the screen object's tag binding, the communication connection and controller identity, the input interface, the ladder logic with its permissives, and the output interface. Because a PLC reads inputs once per scan and a scan is typically milliseconds, a brief command can be read and overwritten within one scan. The first boundary where indications disagree marks the fault.
How-to
How to program a sealed motor starter rung in STEP 7 ladder
Program the rung as Q0.0 = I0.1 AND I0.2 AND (I0.0 OR Q0.0): Start I0.0 in parallel with a seal-in contact on the output, Stop I0.1 and overload I0.2 in series, both normally closed field contacts sitting at logic 1. The seal-in contact holds Q0.0 on from the scan after Start is released; pressing Stop drops I0.1 to 0 and de-energizes the coil.
How-to
How to learn Siemens ladder logic programming step by step
Learn Siemens ladder logic as two skills, not one tutorial: read LAD contacts, coils and boxes through the PLC scan cycle, and turn the controlled process into an I/O list plus a stopped, running and faulted operating table before writing networks. Practice each skill one instruction at a time in a simulator or on an isolated training PLC, with manuals for the exact controller and STEP 7 you run.
Selection guide
How to choose a Delta DVP PLC family for an application
Match the machine to the family by scope: the SS2 is the fast 14-point base for small standalone stations, the ES2 line is the default for mainstream machines, SA2 and SX2 buy performance and high-speed headroom, and the SV2 is the integrated-motion family — any servo or stepper axis under PLC control lands there. Replace installed units like-for-like, and pull exact point counts, program capacity and module support from Delta's current catalog before ordering.
How-to
How to compare two CLICK PLC programs for differences
CLICK Programming Software has no built-in project compare, and the vendor has said none exists in the current release. The working method is to upload each machine's running program as a dated baseline, compare hardware, field assignments, configuration and logic in six passes, classify every mismatch, and load one merged program only after every difference has an owner.
How-to
How to read Factory I/O REAL and INT tags in CODESYS Modbus TCP
Factory I/O multiplies each Float sensor value by 100 and sends it as a 16-bit Word, and its Int tags cross as 32-bit values. In CODESYS, receive the Word, convert it to REAL, divide by 100.0, and declare each Int tag as a DInt; BOOL tags pass straight through the Modbus TCP slave mapping you already have.
How-to
Route an IO-Link master to a ctrlX CORE over EtherCAT
Install the AL1930 ESI in ctrlX I/O Engineering, set channel one to the sensor's documented bytes (4 for a TS2289, 2 for a TP3231), deactivate unused slots, and download until the master reports OP. Cyclic TxPDO bytes feed the PLC, CXA_EthercatMaster blocks read vendor and product ID over AoE with the master NetID, and EoE routing for ifm Moneo or LR clients depends on the master firmware.
Troubleshooting
Why S7-1200 timer ET never exceeds PT in ladder logic
No. On the documented S7-1200 IEC timer operation, ET stops when it reaches PT, so an ET greater than PT comparison is false on every scan and a P_TRIG fed by it never fires; the gated network is unreachable. Source the edge from the timer's Q bit, or change the test to ET >= PT, and verify the tag mapping online.
Explainer
How the ctrlX PLC license calculates I/O data and core use
The ctrlX PLC license sums the bits of I/O data the PLC program actually uses under the DataLayer_Realtime node and the CODESYS fieldbus add-ons, rounded up to whole bytes; one CPU core and up to 1 kByte fits the Standard license, and any program split across more than one core needs at least Advanced. The two-drive reference case counts 18 bits and lands on 3 bytes.
Comparison
How an HMI and a PLC divide the work in a control system
The PLC reads field inputs, executes the control logic, and drives the outputs; the HMI only reads selected PLC data for display and writes operator requests back for that logic to accept or refuse. Every screen symptom traces through four hops — tag binding, communication link, PLC data, field device — and the hop where it stops tells you which side owns the fault.
How-to
How to program belt feeder ratio blending control on a PLC
Program continuous ratio blending by gating the recipe on a 100% ratio sum, computing every feeder setpoint as total rate times its ratio, measuring each belt's flow as belt load times belt speed, and closing one PID loop per feeder onto its VFD speed reference. Verify the blend with accumulated mass per feeder over the same window before releasing product.
How-to
Write alternating lead lag pump logic in RSLogix Micro
Build the sequence as two layers: internal bits select the lead and time the assist, then one final rung per pump drives each physical output. Toggle B3:0/1 with a word-level XOR behind an OSR so it flips once per level cycle, and time the 30-second assist with one TON on the level input.