Controls Library
Earlier articles
Troubleshooting
Fix PLC-5 connection broken when polling ASCII scales via Digi IAP
Fix it at the encoding, not the wiring: run Digi One IAP firmware F or newer, read each scale with a "PLC-5 Typed Read to SLC" message, and prove ports 1 and 2 one transaction at a time. Firmware E rarely parses a real PLC-5's layered addressing; validate the poll write separately with a packet capture.
Selection guide
Using a MicroLogix 1100 as a remote I/O station over EtherNet/IP
Yes, when the station benefits from local logic and the LCD: you get 10 digital inputs, 6 digital outputs, two 10-bit voltage analog inputs and up to four expansion cards, reached over EtherNet/IP by explicit messaging one request at a time. Pick a conventional I/O adapter instead when you need cyclic implicit I/O or current inputs finer than about 19.5 µA per count.
How-to
How to control a GA500 drive over EtherCAT from Sysmac Studio
No download replaces the sequence: install the Yaskawa ESI file for your GA500's EtherCAT option in Sysmac Studio, point the drive's command and reference sources at the network, map control word, status word, target and actual velocity, then advance the CiA 402 state machine 0x06, 0x07 and 0x0F before any speed command is accepted.
Selection guide
Choosing a Modbus RTU bridge for an iQ-R DCS migration
Keep the DCS-facing Modbus RTU slave register contract frozen and bridge it with hardware that exists today: a retained Q-series PLC holding its QJ71MB91 link, or an external gateway that is CC-Link IE Field slave to the iQ-R side and Modbus RTU slave to the DCS. Do not schedule cutovers around an iQ-R native Modbus RTU slave module with no committed release date, and leave the OPC UA module for the SCADA layer that replaces the DCS.
How-to
Calculating SCL rate and offset for a 4-20 mA MicroLogix input
Rate 40 and Offset -25 put a 1762-IF4 live-zero current input on a 0-100% scale: SCL computes destination = (rate x source) + offset, with Rate entered as an integer divided by 10,000, so the slope 100 / (31207 - 6242) = 0.0040 becomes 40 and the offset 0 - (0.0040 x 6242) becomes -25. Check for 0, 50 and 100 at zero, mid-span and full scale; for new rungs, SCP with 6242, 31207, 0, 100 hits both endpoints exactly.
Explainer
How a REPEAT loop runs in PLC structured text
In IEC 61131-3 structured text, a REPEAT loop executes its body first and evaluates the UNTIL condition after it, so the body always runs at least once and the whole loop completes inside one task invocation. With i := 0 and UNTIL i >= 10, the body runs 10 times and i ends at exactly 10; the test position is what explains the off-by-one cases and when WHILE fits better.
How-to
Command a PowerFlex 525 from a Productivity PLC over Modbus
Yes: a Productivity P1-622 can start, stop, and speed-command a PowerFlex 525 over Modbus RTU. Set the drive's command source and speed-reference source to the communications port, then read and write the documented addresses with MRX and MWX. If the sources still point at the terminals or keypad, every write succeeds and the drive ignores it.
Troubleshooting
Why an industrial gateway locks up when used as a network hub
The lockup comes from topology, not tags: the gateway was wired inline, so every frame between plant devices had to cross its 10/100 Mb ports. Put it on one dedicated switch port as an endpoint, keep camera and PC traffic off its link, and prove the residual cause with managed-switch counters and a mirrored capture - three polled tags are about 13 kbps against the port's line rate.
Troubleshooting
Fix a VPN TAP adapter the WS safety tool lists as unknown
The Unknown TAP adapter in the WS configuration tool is a Windows driver problem, not a safety-PLC restriction: eCatcher 6.7.8 shipped TAP driver 9.24, which the WS tool cannot classify. Install TAP driver 9.23, reopen the tool, and the adapter becomes selectable for communication with the WS0-CPU320202 over the VPN. eCatcher 6.7.10 reverts to driver 9.21, so read the driver version, not the eCatcher version, when this fault appears.
Selection guide
Which IEC 61131-3 PLC language to use for each control task
Match each control task to the IEC 61131-3 language whose form shows its dominant data path: ladder for discrete interlocks, structured text for calculations and data handling, function block diagram for connected signal functions, SFC for phased sequences. Instruction List is deprecated, so new code uses the other four, and the controller's supported languages set the final limit.
Explainer
What a PLC does: scan cycle, applications and advantages
A PLC is an industrial computer that repeats a fixed scan — read inputs, solve logic, write outputs — typically every 1-20 ms. That determinism, plus reprogrammable logic and modular I/O, is why it replaces relay panels in manufacturing, process, motion and building control, while safety functions still need rated components.
Selection guide
How to Select PLC Inputs and Outputs From an I/O List
Build the I/O list from the field devices, not the PLC catalog: classify every point as DI, DO, AI or AO, match PNP sensors to sinking inputs and NPN to sourcing inputs, choose relay outputs for mixed loads near 2 A per point and transistor outputs for fast DC loads near 0.5 A, and give analog channels the range and resolution your smallest required change demands.