Controls Library
Earlier articles
Explainer
Can a PLC gateway replace a networked VFD with hardwired I/O
Yes to the wiring, no to the disguise: a small PLC can drive a 4-20 mA speed reference and run/trip signals, but an EtherNet/IP scanner checks vendor ID and product code and will not connect to a gateway posing as the drive, so the upstream controller must be reprogrammed to talk to the PLC as itself. Fixed installations get a network-native drive; OEM machines built around customer-supplied drives get a defined hardwired interface.
Troubleshooting
Fix SIMATIC NET OPC DA to an S7-1500 after a PLC swap
Yes, SIMATIC NET v16 keeps serving OPC DA to the CPU 1511-1 PN; nothing new is bought on the PC side. The fix is PLC-side: enable PUT/GET in the CPU, clear optimized block access on the DBs you address absolutely, and load an XDB compiled from a TIA Portal PC station. OPC UA only needs the CPU's own server enabled and certificates trusted from firmware V2.9.
How-to
Program a CODESYS assembly line sequence in ladder logic
Structure the line as one INT state variable with permissive-qualified station starts: TON timers of T#20s, T#40s and T#60s run the stations, Stop drops the run latch so everything pauses with the timers reset, and a CTU with a preset of 4 releases the vehicle on the fourth door. The Emergency Stop belongs in the safety circuit, with the PLC only monitoring it and clearing the sequence.
Selection guide
Choosing how an S7 PLC talks to a Mitsubishi Q or AnS PLC
Yes — the link exists on every generation. Put Modbus TCP (QJ71MT91) or Modbus RTU (QJ71MB91) against a Mitsubishi Q series PLC, PROFIBUS master or slave against an AnS or QnAS because those generations had no Modbus modules, and a protocol-converting gateway where the two sides share no interface.
How-to
Connect a TON output to a function block input in TwinCAT ladder
In TwinCAT ladder, the rung's power flow always lands on a block's first input, so with NT_GetTime it lands on NETID instead of START. Right-click the rung and choose Box with EN to create an enable path, then right-click the short line before START and use Insert at Block... to place a box there, replacing the default AND with TON by typing the name or using Input Assistant with F2.
Troubleshooting
Fix a GT1-DA04 analog output over a 1756-DNB scanner
Set the DRT1-COM polled connection to 14 input bytes and 10 output bytes, put the channel word at the right byte pair — analog output channel 0 is output bytes 2–3, word 1 of five — and scale 0–6000 counts across 4–20 mA, 375 counts per mA. When the DINT image shows the value and the terminal still reads 0 mA, the fault is the DIP range or module power, not the mapping.
Troubleshooting
Connecting InTouch to a CLICK PLC over Modbus RTU
Set the Modbus I/O Server to RTU, not ASCII: the CLICK PLC is an RTU-only slave and silently discards ASCII frames. Wire to an RS-232 port, copy the PLC port's baud and framing — 38400 only if the port is set to it — and keep the 584/984PLC topic only after one known register reads back exact.
Troubleshooting
Fix EtherNet/IP HMI access to an older SLC 5/05
The RSLinx Ethernet driver reaches the controller because early SLC 5/05 firmware speaks CSP, the AB Ethernet protocol that predates EtherNet/IP; an EtherNet/IP HMI driver cannot open a session with it. Update the processor: a 1747-L552 Series A at OS500 Series A FRN 1 accepted a ControlFLASH update to FRN 11 and then communicated with an EtherNet/IP HMI. Updated or not, a 5/05 never accepts EtherNet/IP I/O connections.
How-to
Program startup, flasher and digital-use analog inputs on an M172
Declare a BOOL, set it TRUE in an ST program assigned to the Init Task, compute the flasher as x1Sec := TO_BOOL((sysTimer/1000) MOD 2) in cyclic code, and convert each of AI5-AI8 with TO_BOOL before ladder accepts it as a contact. The object not found error means the example names were never declared.
Troubleshooting
Why a replacement 331-7KF02 shows a red SF LED
The solid red LED on a replacement 6ES7331-7KF02 is SF, the module's group fault. With the order number matching, no programming is needed — the CPU rewrites the stored parameters at every restart — so set each measuring range module letter to face the arrow marker on the housing (A for thermocouples) and read the CPU diagnostic buffer, which needs no program password.
Selection guide
Choosing a ControlLogix path to a Modbus TCP Schneider PLC
ODVA Volume 7 defines how Modbus devices integrate into CIP; it is not a ControlLogix feature, so no stock 1756 Ethernet module speaks Modbus TCP natively. Choose from four paths: an in-rack or standalone gateway, Modbus TCP written over generic sockets on a 1756-EN2T at firmware 5 with RSLogix 5000 v20 (or a 1756-EWEB), an OPC bridge on a PC, or EtherNet/IP on the Schneider side where the CPU supports it.
How-to
How to recover a SYSMAC S6 program before replacing the PLC
The SYSMAC S6 has no software upload path: its program reads out through the 3G2A3-PRO16 handheld console as a mnemonic listing. Capture that listing before you remove anything, rebuild the sequence rung by rung in the replacement PLC with every timer and counter preset confirmed, and prove the new program against the I/O wiring before the machine runs.